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. Flickable contentY alias in views
Forum Updated to NodeBB v4.3 + New Features

Flickable contentY alias in views

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
flickableproperty aliasmvc
1 Posts 1 Posters 303 Views
  • 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.
  • 0 Offline
    0 Offline
    0...-5
    wrote on last edited by
    #1

    I need to expose vertical scrolling position to the C++ side of my application. If I make a property alias like this

    TreeView {
      property alias verticalScrollPosition: flickableItem.contentY
      onDoubleClicked: console.log(flickableItem.contentY)
    }
    

    I get the following error: Invalid alias reference. Unable to find id "flickableItem". But if I comment out property declaration and double click any item I get current vertical scrolling printed to a console. What is the reason of this behavior?

    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