[Interest] Linux and Windows 7. Full screen widget.
Alexander Syvak
alexander.svk at gmail.com
Tue Jul 30 23:10:02 CEST 2013
Hello,
here's the snippet of the code used
auto const full_screen_rect = QApplication::desktop()->screenGeometry(); //
N.B. !!! Returns the geometry of the screen with index\ screen. // The
default screen is used if screen is -1.
ptrn_qualifier_wdg->setGeometry(full_screen_rect); // resize the
widget to the whole screen
ptrn_qualifier_wdg->showFullScreen();//showMaximized(); // make it visible
ptrn_qualifier_wdg->raise(); // put it onto the stack top
ptrn_qualifier_wdg->activateWindow(); // set the focus to the widget
ensured it's on the stack top
When the showMaximized() is used in Windows 7, it indeed takes the whole
screen, but on OpenSUSE, e.g. it shows the taskbar.
When showFullScreen() is called, it works. Can anybody explain it step by
step in details?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130730/44b78c44/attachment.html>
More information about the Interest
mailing list