QSystemTrayIcon hide() crash on mac while I use QTimer to change the icon of QSystemTrayIcon
-
there is a wiki page explaining how the editor works :
"Using the editor :":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9 -
ok , guys , thanks very much , I have changed them now ~~anyone could give me solution ?thanks
-
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. -
thanks Volker , you are always the best problem solver for me . Great Appreciation ~~~
-
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 ~~ -
I'll have a look into this later.
-
thanks very much , I have read the guide to ask questions , it is very helpful for me , thank you very much , I will do this better ~~
-
I didn't forget you but I was terribly busy the last week and am off for vacation soon, so please be a bit more patient.
-
thanks Volker ~~just have a look when you have time , 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.