Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.0
- Rectangle {
- width: 360
- height: 360
- id: container
- Text {
- id: text
- //anchors.centerIn: parent
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
- text: "Hello World"
- }
- MouseArea {
- id: area
- anchors.fill: parent
- }
- states: State {
- when: area.pressed
- PropertyChanges {
- target: text
- anchors.verticalCenter: undefined
- anchors.bottom: text.parent.bottom
- }
- /*AnchorChanges {
- target: text
- anchors.verticalCenter: undefined
- anchors.bottom: container.bottom
- }*/
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement