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

StackViewDelegate getTransition

$
0
0
Hello, i would like to use a property from the StackView in the StackViewDelegate function getTransition. Here is a sample code:     StackView {         id: pageStack         anchors.fill: parent           property string transitionType: "Goto"           delegate: StackViewDelegate {             function getTransition(properties)             {                 switch(transitionType) {                     case "Up": return upTransition                     case "Down": return downTransition                     default: return gotoTransition                 }             }      ... In the above code the variable transitionType in Line 10 is not defined. The idea is to change the transition type from extern. How can i do this? Thanks

Viewing all articles
Browse latest Browse all 4972

Trending Articles