-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.4.0
-
None
-
OS X 10.10, Qt Creator 3.3 + Qt 5.4 recently downloaded from qt-project.org
I have an app that does (simplified) the following (MyApp inherits QSystemTrayIcon):
setContextMenu(&menu);
connect(&contextMenu, &QMenu::aboutToShow, this, &MyApp::setActiveIcon);
connect(&contextMenu, &QMenu::aboutToHide, this, &MyApp::setInactiveIcon);
MyApp::setActiveIcon()
{ setIcon(activeIcon); }MyApp::setInactiveIcon()
{ setIcon(inactiveIcon); }When I click the icon the first time after starting the app, these warnings are shown twice:
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted
The app was working fine in Qt5.3.