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

ApplicationWindow.window attached property not available due to component versioning

    XMLWordPrintable

Details

    Description

      import QtQuick 2.9
      import QtQuick.Controls 2.3
      
      ApplicationWindow {
          id: window
          visible: true
      
          Button {
              id: button
              focus: true
              // Works
      //        Component.onCompleted: print(ApplicationWindow.window.activeFocusItem)
              // ".onActiveFocusItemChanged" is not available due to component versioning.
              ApplicationWindow.window.onActiveFocusItemChanged: print("activeFocusItem", activeFocusItem)
              // Works
      //        ApplicationWindow.onActiveFocusControlChanged: print("activeFocusControl", activeFocusControl)
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes