[Qt-interest] setFullScreen and behavior difference between primary/secondary monitor

Paul Miller paul at fxtech.com
Thu Jul 28 23:39:40 CEST 2011


I have a QDialog that I set to full-screen mode. I also have a 
contextMenuEvent() handler that pops up a context menu, with an option 
to turn on/off full-screen mode.

When the dialog is parked on a second screen, all works properly.

When the dialog is parked on the primary monitor, once I make it 
full-screen the contextMenuEvent() never triggers again. I have to hit 
ESCAPE (which closes the dialog), but then the next time I display it, 
it goes full-screen again, so I can never turn full-screen mode off.

I don't want to add any other widgets to the dialog.

Is there a way to work around this?

This is on Windows.



More information about the Qt-interest-old mailing list