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

ApplicationWindow attached property not available in Popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 5.7.0 Beta
    • 5.6.0, 5.7.0 Beta
    • Quick: Controls 2
    • None
    • 5ea88122a7442c49d2262c95a6b0cd32c5b5b541

    Description

      ApplicationWindow attached property available in usual items, but not in popups:

      import QtQuick 2.6
      import Qt.labs.controls 1.0
      
      ApplicationWindow {
          width: 300;
          height:300
          visible: true
      
          Item {
              Component.onCompleted: console.log("item:", ApplicationWindow.window)
          }
      
          Popup {
              Component.onCompleted: console.log("popup", ApplicationWindow.window)
      
              Rectangle {
                  Component.onCompleted: console.log("popup content", ApplicationWindow.window)
              }
          }
      }
      

      Output:

      qml: popup null
      qml: popup content null
      qml: item: QQuickApplicationWindow(0x21bc0e0)
      

      Attachments

        For Gerrit Dashboard: QTBUG-51991
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            krnekit Nikita Krupenko
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes