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

Mac, QML: focus attribute seems to be broken

    XMLWordPrintable

Details

    • macOS
    • 94b1c07c31ab84d30b198cb23291a48f98164827

    Description

      In the simple example below, the 'root' rectangle ends up always having focus (event when explicitly set to false). It didn't work like this before the summer...

      import Qt 4.7
      
      Rectangle {
          id: root
          width:300; height:200
          border.width: 50
          focus: false
      
          states: [
              State {
                  when: root.focus
      
                  StateChangeScript {
                      script: console.debug("Got focus");
                  }
      
                  PropertyChanges {
                      target: root
                      color: "brown"
                      border.color: "blue"
                  }
              }
          ]
      }
      
      

      Attachments

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

        Activity

          People

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes