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. There are the difference between StackView of 5.1 and 5.2.0RC1?
Forum Updated to NodeBB v4.3 + New Features

There are the difference between StackView of 5.1 and 5.2.0RC1?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 765 Views 1 Watching
  • 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.
  • _ Offline
    _ Offline
    _dmp
    wrote on last edited by
    #1

    I compile and run my source at Qt5.1 and Qt5.2.0RC1. I have working StackView at 5.1 and dont working at 5.2.0RC1.
    Dont work "push".
    Was made any changes in this item?
    An animation of hide Desktop.qml is working, but DialogYesNo.qml dont showing.

    My source:

    @Item{
    ------skipped-----

    StackView { 
        id: pagestack_ID
        x:0
        y: 0
        height: 768
        width: 1024
    
        delegate: StackViewDelegate {
            function transitionFinished(properties)
            {
                properties.exitItem.x = 0
                properties.exitItem.opacity = 1
            }
    
            property Component pushTransition: StackViewTransition {
                SequentialAnimation {
                    ScriptAction {
                        script: { enterItem.opacity = 0; }
                    }
                    PropertyAnimation {
                        target: exitItem
                        property: "x"
                        from: 0
                        to: -exitItem.width
                    }
                    ParallelAnimation {
                        PropertyAnimation {
                            target: enterItem
                            property: "opacity"
                            from: 0
                            to: 1
                        }
                        PropertyAnimation {
                            target: enterItem
                            property: "scale"
                            from: 0.6
                            to: 1
                        }
                    }
                }
            }
            property Component popTransition: StackViewTransition {
                SequentialAnimation {
                    ScriptAction {
                        script: enterItem.x = -enterItem.width
                    }
                    ParallelAnimation {
                        PropertyAnimation {
                            target: exitItem
                            property: "opacity"
                            from: 1
                            to: 0
                        }
                        PropertyAnimation {
                            target: exitItem
                            property: "scale"
                            from: 1
                            to: 0.6
                        }
                    }
                    PropertyAnimation {
                        target: enterItem
                        property: "x"
                        from: -enterItem.width
                        to: 0
                    }
                }
            }
        }
    }
    
    Component.onCompleted: {
        pagestack_ID.initialItem = {item : Qt.resolvedUrl("Desktop.qml"), properties:{}};
    }
    

    }@

    push to stack
    @.......skipped...........
    pagestack_ID.push({item:Qt.resolvedUrl("DialogYesNo.qml"), destroyOnPop:true});@

    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