QML plasmoid, pageStack.pop() doesn't work
Daker Fernandes Pinheiro
dakerfp at gmail.com
Thu Jul 12 13:51:47 UTC 2012
Hi Gao,
Actually the initialPage property holds 'the' initial page.
It doesn't works with an ordered lists of pages.
Just put initialPage: c to get your expected behaviour.
Br,
Daker Fernandes Pinheiro
2012/7/12 Gao Xiang <qasdfgtyuiop at gmail.com>
> The sample qml is easy:
> ======================================================
> import QtQuick 1.1
> import org.kde.plasma.components 0.1 as PlasmaComponents
> Item {
> PlasmaComponents.PageStack {
> id: pageStack
> anchors.fill: parent
> initialPage: [ c, b, a ]
> }
> PlasmaComponents.Page {
> id: a
> anchors.fill: parent
> PlasmaComponents.Label{ text: "a" }
> onStatusChanged:
> if(status==PlasmaComponents.PageStatus.Active)
> pageStack.pop();
> }
> PlasmaComponents.Page {
> id: b
> anchors.fill: parent
> PlasmaComponents.Label{ text: "b" }
> onStatusChanged:
> if(status==PlasmaComponents.PageStatus.Active)
> pageStack.pop();
> }
> PlasmaComponents.Page {
> id: c
> anchors.fill: parent
> PlasmaComponents.Label{ text: "c" }
> }
> }
> ======================================================
> I wish to get a "c" in screen. But I got a "b". What's wrong? Why the
> second pageStack.pop() doesn't work?
>
> Thanks.
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120712/4616eca1/attachment.html>
More information about the Plasma-devel
mailing list