Problem when calling setWindowState(Qt::WindowFullScreen);
-
Hello!
I have been having trouble when calling this slot:
@
void QWwindow::maximizeWindow()
{
qDebug() << "SLOT: QWwindow::maximizeWindow() STATUS: Called";
this->setWindowState(Qt::WindowFullScreen);
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?Thanks!
-
hm...indeed, just tried that on my Mac (10.6.8) and it does not work (qt-4.7.4).
looks like bug.
https://bugreports.qt-project.org/browse/QTBUG-28891
https://bugreports.qt-project.org/browse/QTBUG-34629 -
Maybe this will give you an idea:
http://www.qtforum.org/article/520/mac-os-x-full-screen.htmlIt's carbon based workaround, you have to find out how to call cocoa api and hide menu bar (and show it again).