Access QQuickItem anchors from C++?



  • I need to return a QQuickItem's anchors from a C++ method for binding in QML. However, QQuickItem does not have any method even remotely connected to this functionality. I took a quick look through the source files and it would seem that the methods I need are encapsulated in a QQuickItemPrivate class, but I wasn't able to find the member that holds it nor the line where it is initialized.

    Any suggestions?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.