Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29252

QWindow::setFullScreen() to use current screen instead of screen()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.0.0
    • GUI: Window management
    • None

    Description

      In virtual desktop environment call to QWindow::showFullScreen() will expand window onto screen returned by QWindow::screen() rather than current screen as QWindow is not aware it had been moved onto a different one.

      A workaround with detecting current screen by iterating through QScreen::virtualSiblings() with assumption that top-left screen will be at [0] and bottom-right at [count()-1]; and calling setScreen before showFullScreen() has to be applied to get window shown on non-primary screen. This is rather annoying and there is no guarantee about screen order in QScreen::virtualSiblings().

      This bug seems to be similar to https://bugreports.qt-project.org/browse/QTBUG-4365 , but is for QWindow rather than QWidget.

      Also I reported connected suggestion: https://bugreports.qt-project.org/browse/QTBUG-29251

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            eliseev Sergey Eliseev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes