Help me to make an Animation :-(
-
I want to animate ui when the view will be changed...
Here is my code -->@import QtQuick 2.2
import QtQuick.Controls 1.1ApplicationWindow {
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 ?