[Interest] Loader QML Transitions

Jereme Lamothe jlamothe at docboxinc.com
Thu Nov 6 15:24:12 CET 2014


Have a look at the StackView control as a replacement for your use of
a Loader (Documentation at
http://qt-project.org/doc/qt-5/qml-qtquick-controls-stackview.html).
The transition between items is animated.

On Thu, Nov 6, 2014 at 9:16 AM, rpzrpzrpz at gmail.com <rpzrpzrpz at gmail.com> wrote:
> Does anybody have a comment about the Loader QML component.
>
> I would like to support a IOS like Segue where the current QML file has
> a graphic transition to another QML file
>
> When I set the source of a loader component, obviously it dumps the
> current QML OpenGL objects and loads the new QML objects.
>
> But is there a way to define a transition between the QML source so that
> the appearance of an IOS Segue when the entire screen flies away and
> rolls away.
>
> Loader QML Snippet:
>
> import QtQuick 2.2
> import QtQuick.Windows 2.1
>
> Window {
>
>         id: topwindow
>         visible: true
>
>         width: Screen.width
>         height: Screen.height
>         color: "black"
>         title: "test"
>
>         Loader
>         {
>                 id: genload
>                 anchors.fill: parent
>                 source: "startup.qml"
>                 onLoaded:
>                 {
>                         item.focusinit()
>                 }
>
>         }
>
>         function setsource(srcqml)
>         {
>                 genload.source = srcqml
>         }
>
> }
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list