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

Clicking outside a Window whose flags are Qt.Popup should close that window

XMLWordPrintable

      import QtQuick 2.0
      import QtQuick.Controls 1.1
      import QtQuick.Window 2.1
      
      Rectangle {
          width: 400
          height: 400
      
          Button {
              text: "Show popup"
              onClicked: window.visible = !window.visible
          }
      
          Window {
              id: window
              width: rect.width
              height: rect.height
              flags: Qt.Popup
      
              Rectangle {
                  id: rect
                  width: 200
                  height: 160
                  color: "grey"
              }
          }
      }
      

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

            srutledg Shawn Rutledge
            mitch_curtis Mitch Curtis
            Votes:
            10 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes