Is it possible in QML to smoothly open in a new window
Solved
QML and Qt Quick
-
import QtQuick 2.4 import QtQuick.Window 2.0 import QtQuick.Controls 2.5 Window { id: window width: 400 height: 400 visible: true Loader { id: loader anchors.fill: parent onSourceChanged: animation.running = true NumberAnimation { id: animation target: loader.item property: "x" from: -width to: 0 duration: 1000 easing.type: Easing.InExpo } } Button { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: 5 text: qsTr("Click me") onClicked: { loader.source = "MyRectangle.qml" } }