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

FullScreen window can't be hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.12.11
    • GUI: Window management
    • None
    • macOS

      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;
              }
          }
      }
      
      

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes