推荐学习书目
› 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
patrick1989
V2EX  ›  Python

PyQT5 中,为啥设置程序图标不显示呢?

  •  
  •   patrick1989 · Feb 5, 2020 · 4128 views
    This topic created in 2437 days ago, the information mentioned may be changed or developed.

    app = QApplication(sys.argv)

    app.setWindowIcon(QIcon('panda.ico'))

    试了一下,在 macOS catalina 中,任务栏显示图标没问题。 但是在 windows10 1909 版本,只有标题栏显示图标,任务栏却只是一个空白的文件图标。

    各位大大们知道怎么解决否?

    fuchunliu
        1
    fuchunliu  
       Feb 6, 2020 via Android
    揣测 ico 文件中找不到对应分辨率的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5734 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 08:47 · PVG 16:47 · LAX 01:47 · JFK 04:47
    ♥ Do have faith in what you're doing.