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

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

    XMLWordPrintable

Details

    Description

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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes