Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.0
- Rectangle {
- width: 400
- height: 300
- color: "lightyellow"
- Item {
- id: page
- }
- Item {
- id: window
- anchors.fill: parent
- Item {
- id: windowRect
- objectName: "windowRect"
- anchors.fill: parent
- property string current: ""
- onCurrentChanged: setOpacities();
- function setOpacities() {
- console.log("w_length: " + stack.children.length);
- }
- Item {
- id: stack
- objectName: "stack"
- width: window.width
- anchors.fill: parent
- function printChildren() {
- console.log("s_length: " + children.length)
- }
- }
- }
- Component.onCompleted: {
- page.parent = stack
- stack.printChildren()
- windowRect.current = "page"
- stack.printChildren()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement