Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Typo in attached property scoping example?

Typo in attached property scoping example?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 492 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chrisdolan
    wrote on last edited by
    #1

    On the "Scope and Naming Resolution" page (http://qt-project.org/doc/qt-5/qtqml-documents-scope.html) there's an example using "PathView.scale" that has me confused. Shouldn't the "id: root' be on the delegate (Component) instead of on its child (Rectangle)? I thought that attached properties were only reachable on direct children, not on their descendants, so "root.PathView.scale" shouldn't work and it should instead need to be "root.parent.PathView.scale". Or have I misunderstood the example?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved