Changing the taskbar icon
-
I want to change the default python icon in the Windows taskbar to a custom icon. I've seen multiple ways people did it in the past, but none seem to work on Windows 11 anymore
-
I want to change the default python icon in the Windows taskbar to a custom icon. I've seen multiple ways people did it in the past, but none seem to work on Windows 11 anymore
Why the default python icon?! If you are running a Python script, it shows the icon of your python interpreter executable, if I'm not mistaken.
-
You're right it is the icon of my python interpreter. But I still want to change it through code
-
You're right it is the icon of my python interpreter. But I still want to change it through code
@TolleTafel
You need to set one or both of QApplication::setWindowIcon() and QWindow::setIcon(). See also https://doc.qt.io/qt-6/appicon.html.If by any chance you mean change the icon for every Python script, nothing to do with Qt or your applications, that would be by changing the icon for
python.exe
.