QSystemTrayIcon hide() crash on mac while I use QTimer to change the icon of QSystemTrayIcon
-
If you start and end your code section in your post with an 'at' sign ('@') it will look much nicer. That is what the others are asking for.
I have just added in the post above these two signs in the begin at the end. And voila it looks much better.
Sorry, had to do two posts ;-)
-
there is a wiki page explaining how the editor works :
"Using the editor :":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9 -
It may be caused by some internal objects that are no longer available after you hide the icon. I can reproduce the crash on my Mac box.
As a workaround you can replace the call to hide with a single shot timer in your slot like this
@
fSystemTrayTimer->stop() ;
//fSystemTrayIcon->hide();
QTimer::singleShot(0, fSystemTrayIcon, SLOT(hide()));
@This way the call to hide is delivered after you have left the slot.
EDIT:
I've added this as a doc not to [[Doc:QSystemTrayIcon]] too. -
hi Volker , I also meet the same problem as the following link
http://svn.netlabs.org/qt4/ticket/201
do you have some solution for that ?thanks ~~ -
[quote author="brucewuu" date="1309959197"]hi Volker , I also meet the same problem as the following link
http://svn.netlabs.org/qt4/ticket/201
do you have some solution for that ?thanks ~~[/quote]That's out of scope for me. I don't know the internal workings for the OS/2 port, sorry.