推荐学习书目
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 · 3819 views
    This topic created in 2288 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   ·   Solana   ·   3339 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 86ms · UTC 13:06 · PVG 21:06 · LAX 06:06 · JFK 09:06
    ♥ Do have faith in what you're doing.