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

Help me to make an Animation :-(

$
0
0
I want to animate ui when the view will be changed… Here is my code —> import QtQuick 2.2 import QtQuick.Controls 1.1   ApplicationWindow {     visible: true     width: 640     height: 480     title: qsTr("Hello World")       Loader {         id: pageLoader         anchors.centerIn: parent     }       MouseArea {         anchors.fill: parent         onClicked: {             if(pageLoader.source == "") {                 pageLoader.source = "Page1.qml"             } else {                 pageLoader.source = ""             }         }     }       menuBar: MenuBar {         Menu {             title: qsTr("File")             MenuItem {                 text: qsTr("Exit")                 onTriggered: Qt.quit();             }         }     } } I want something like when the Page1.qml will come, It’ll come from left side with a “Linear” animation… How can I do that ?

Viewing all articles
Browse latest Browse all 4972

Trending Articles