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

Find item in Stackview that has been pushed onto it as URL

$
0
0
Hello, is there a possibility to address an item in a stackview that has been pushed onto it as URL? I used the following code: stackView.push( {item:  Qt.resolvedUrl("Test.qml")} ); In my application, I push a lot of qml-files onto the Stackview with this method. Now I want to unwind the stack to certain positions or find certain items in the stack, but I don’t know the item names. The following code does not work: stackView.pop( {item:  Qt.resolvedUrl("Test.qml")} ); Is there a solution for this? I don’t want to work with the index because when my program changes, the index of an item in the stack could also change. Thank you.

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images