Problem when calling setWindowState(Qt::WindowFullScreen);
I have been having trouble when calling this slot:
qDebug() << "SLOT: QWwindow::maximizeWindow() STATUS: Called";
qDebug() << "SLOT: QWwindow::maximizeWindow() STATUS: Completed";
Whenever I call this slot, nothing happens.
I am getting output from both qDebugs, leading me to think that there is something wrong with the code itself. Any ideas on how I fix it?
Have your tried to call showFullScreen() instead of setting state ?
Then something else is wrong with your code. That should work.btw. What OS is that ?
OS X 10.9
hm...indeed, just tried that on my Mac (10.6.8) and it does not work (qt-4.7.4).
looks like bug.
Maybe this will give you an idea:
It's carbon based workaround, you have to find out how to call cocoa api and hide menu bar (and show it again).