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 <qasdfgtyu...@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@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel