PageLoader and effects
-
Is there a way to have an effect on lading page for example right to left?
-
Hi @mrdebug,
Which PageLoader are you talking about ? -
Sorry. I'm talking about the loader qml object.
-
@mrdebug Ok. You can animate the Component which the
Loader
loads. -
Have you got an example?
-
@mrdebug Is this what you are trying to do ?
import QtQuick 2.4 Item { width: 100 height: 120 Loader { id: loader anchors.fill: parent sourceComponent: component } Component { id: component Rectangle { id: rect width: parent.width height: parent.height color: "red" NumberAnimation { running: true target: rect from: -100 to: 0 property: "x" duration: 600 easing.type: Easing.InOutQuad } } } }