VirtualBox

Changeset 61491 in vbox


Ignore:
Timestamp:
Jun 6, 2016 12:57:43 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Qt5 migration consequences: Something is not so easy now with multi-screen full-screen support on Qt5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r61490 r61491  
    353353
    354354#if   defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
     355# if defined(VBOX_WS_WIN) && QT_VERSION >= 0x050000
     356    /* On Windows you can't just resize/move Qt5 QWidget to required host-screen
     357     * because for simple normal QWidget maximum possible window size is limited
     358     * by the available geometry and Qt5 bumps it out to the main host-screen in
     359     * such case, need to tell window it will be full-screen without showing it. */
     360    setWindowState(Qt::WindowFullScreen);
     361    /* If there is a mini-toolbar: */
     362    if (m_pMiniToolBar)
     363        m_pMiniToolBar->setWindowState(Qt::WindowFullScreen);
     364# endif /* VBOX_WS_WIN && QT_VERSION >= 0x050000 */
     365
    355366    /* Set appropriate geometry for window: */
    356367    resize(workingArea.size());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette