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

switching from fullscreen to windowed mode not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux Mint 18.3
      Qt Creator 4.7.0
    • Platform/s:
      Linux/Other display system

      Description

      Hello,

      i have a Window which is configured to be fullscreen.

      Window
      {
          visible                 : true
          visibility              : Window.FullScreen

      ...

      }

      if the CommandLineParser-Option "window" is set i want to change to windowed mode.

          engine->load(QUrl(QStringLiteral("qrc:/main.qml")));

          if (engine->rootObjects().isEmpty())
              return false;

          if (true == parser.isSet("window"))
          {
              engine->rootObjects().first()->setProperty("visibility", QWindow::Windowed);
          }

       

      When i do so the application window switches back to fullscreen magically. The debug output in the window.onVisibilityChanged handler says:

      qml: window running in fullscreen mode
      qml: window running in windowed mode
      qml: window running in fullscreen mode

       

      Very strange - why is that ????

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              paeglis Gatis Paeglis
              Reporter:
              tristan74656 Tristan Heitzinger
              PM Owner:
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes