推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chenche
V2EX  ›  Python

求助,为什么 qt 窗体里面无法弹出文件下载窗口?

  •  
  •   chenche · Jun 15, 2019 · 2411 views
    This topic created in 2528 days ago, the information mentioned may be changed or developed.
    求问一下,我用 echarts 进行图表绘制,需要对图表进行下载,使用浏览器打开 html 页面,点击下载按钮的时候就可以正常的弹出文件下载窗口,但如果把 html 页面放到 qt 窗体中后,点击按钮后文件下载窗口没办法正常弹出,没有反应,也没有报错信息,想请问一下这是为什么呢?有没有什么解决办法呀?
    4 replies    2019-06-16 09:56:22 +08:00
    chenche
        1
    chenche  
    OP
       Jun 15, 2019
    使用的 Python 模块是 pyqt5
    Yorwba
        2
    Yorwba  
       Jun 15, 2019 via Android
    Qt 虽然可以显示 HTML,但是又不是浏览器,没有文件下载窗口,需要这类的功能,就得自己弄,或者用浏览器打开
    ysc3839
        3
    ysc3839  
       Jun 15, 2019 via Android   ❤️ 1
    你用的是 QtWebkit 之类的吧?这种是裁剪过的嵌入式内核,会少一些功能的。
    JayHawel
        4
    JayHawel  
       Jun 16, 2019 via Android
    楼上的老哥们说的对,想要下载功能得自己弄,QWebEngine 不带下载功能。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3664 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 04:52 · PVG 12:52 · LAX 21:52 · JFK 00:52
    ♥ Do have faith in what you're doing.