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

switching from fullscreen to windowed mode not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.11.1
    • None
    • Linux Mint 18.3
      Qt Creator 4.7.0
    • 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

        1. sample.qml
          0.5 kB
        2. QTBUG69888.zip
          2 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tristan74656 Tristan Heitzinger
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes