CODE: > import QtQuick 2.2 > import QtQuick.Controls 1.2 > Rectangle { > id: plugin > width: 800; height: 600 > OpacityAnimator on opacity { > from: 0; to: 1; duration: 1000 > running: true > } > Column { > id: option > anchors.right: parent.right > anchors.top: parent.top > anchors.margins: 10 > spacing: 10 > Grid { > columns: 2 > spacing: 5 > Label { text: "ax:" } > TextField { > id: ax > width: 99 > } > Label { text: "ay:" } > TextField { > id: ay > width: 99 > } > } > } > Row { > id: control > anchors.bottom: parent.bottom > anchors.right: parent.right > anchors.margins: 10 > spacing: 5 > height: 30 > Button { > id: start > text: "start" > focus: true > onClicked: { > start.enabled = false > } > } > Button { > id: pause > enabled: !start.enabled > text: "pause" > focus: true > } > Button { > id: restore > text: "restore" > focus: true > enabled: !start.enabled > onClicked: { > start.enabled = true > } > } > Button { > id: quit > text: "quit" > onClicked: Qt.quit(); > } > } > states: [ > State { > name: "hide" > when: !start.enabled > PropertyChanges { target: option; visible: false } > } > ] > transitions: [ > Transition { > from: "*"; to: "hide"; reversible: true > OpacityAnimator { duration: 500 } > } > ] > }
Could some one help does am I missing something? Thanks! -- Best Regards Yuchen
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest