Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QQuickItem from C++ to Item in QML

$
0
0
That is what I’m trying to do. I now have this in my root qml Component {     id: viewToShow     MyView     {         width: stackView.width         height: stackView.height     } }   onShowMyObject {         stackView.push( { item: viewToShow, properties: { topColor: view.topColor, bottomColor: view.bottomColor } } ) } This does work, but the problem is that there is no binding between properties so when I update colors in C++ there are not in QML..

Viewing all articles
Browse latest Browse all 4972

Trending Articles