My close event works perfectly. There is something about minimize that appears to force the application to appear on the task bar. I will see if something in your setVisible() method will get it to work correctly, but I have my doubts.
My close event works perfectly. There is something about minimize that appears to force the application to appear on the task bar. I will see if something in your setVisible() method will get it to work correctly, but I have my doubts.
Does isMinimized() returns true in your change event?
I am not sure if the window is yet minimized when it gets this event. It shouldn't be, since you have the option to ignore it.
regards
event() seems to get it before it minimizes, changeEvent() seems to get it after it minimizes. Either way, ignoring the event still makes it appear in the task bar after returning from those methods. That is why I think it is a bug... I just wanted to see if you guys had some obvious magical answer before I bothered the trolls.
I contacted Trolltech and they gave me this gem:
Qt Code:
{ { if (isMinimized() == true) { m_oSysTray.ShowIcon(); e->ignore(); return; } } }To copy to clipboard, switch view to plain text mode
QTimer::singleShot(0, this, SLOT(hide())); instead of hide()
Bookmarks