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

Window disappears when exiting fullscreen mode with WindowStaysOnTopHint set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15
    • 5.5.0 Beta
    • GUI: Window management, QPA
    • None
    • Mac OS X 10.10.3
    • macOS

    Description

      Window disappears when exiting fullscreen mode if using WindowStaysOnTopHint flag. Without this flag it works, but the zoom animation is a bit strange. I'm not sure if this is also a bug.

      Attached is a simple test project. Click "Show second window" button. When the window appears, click fullscreen button at top left corner, then exit fullscreen mode. The window will disappear and cannot be shown again.

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      import QtQuick.Window 2.2
      import QtQuick.Dialogs 1.2
      
      ApplicationWindow {
      	title: qsTr("Hello World")
      	width: 640
      	height: 480
      	visible: true
      
      	ApplicationWindow {
      		id: secondWindow
      		title: qsTr("Second Window")
      		width: 200
      		height: 200
      		Component.onCompleted: {
      			flags = flags | Qt.WindowStaysOnTopHint
      		}
      	}
      
      	Button {
      		anchors.centerIn: parent
      		text: "Show second window"
      		onClicked: secondWindow.show()
      	}
      }
      

      Attachments

        1. StayOnTopBug.zip
          2 kB
          Andrey Fidrya
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            zmeyc Andrey Fidrya
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes