Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.0
-
None
-
Windows 10
-
-
4aa0bcf5f5266b33faf236e8c914fcf5379abf5b (qt/qtbase/5.12)
Description
When creating a QSystemTrayIcon object it becomes directly visible when calling setIcon() even is setVisible(false) is directly set. This not even unwanted but also a regression to at least Qt 5.9.
This is because sendTrayMessage(NIM_ADD) is called in QWindowsSystemTrayIcon::ensureInstalled() regardless of the visible state.
int main(int argc, char *argv[]) { QSystemTrayIcon tray; tray.setIcon(QIcon::fromTheme("document-new")); }
Attachments
For Gerrit Dashboard: QTBUG-73185 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
250619,4 | Windows QPA: Fix tray icon becoming visible before show | 5.12 | qt/qtbase | Status: MERGED | -2 | 0 |