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

FullScreen window can't be hidden

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.11
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      1. Set window to fullscreen mode by clicking the appropriate button.
      2. Try to change its visibility to Hidden (in my sample code click on window's close button for this).
      3. Result: black screen is show, the user is not able to return to Desktop.

      Sample code:

       

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window 
      {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Component.onCompleted: flags |= Qt.WindowFullscreenButtonHint    
          onClosing:
          {
              if (visibility == Window.FullScreen)
              {
                  visibility = Window.Hidden;
                  close.accepted = false;
              }
          }
      }
      
      

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vhilshei Volker Hilsheimer
              Reporter:
              alervd Alexander Dyagilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes