PDA

View Full Version : isMinimized() not working in QHideEvent on X11 ?



andyp
28th May 2010, 09:29
When I minimize a QMainWindow (via the minimize button), my hideEvent() handler gets called successfully on QT4.6.2.
However, a call to isMinimized() within hideEvent() incorrectly returns false on X11 (Linux), but successfully returns true on Windows and MAC.
Do I need to flush X events somehow before I can get a correct answer from isMinimized() ? If so how ?