Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Row {
- anchors {
- top: parent.top
- topMargin: Theme.paddingLarge
- horizontalCenter: parent.horizontalCenter
- }
- spacing: Theme.paddingMedium
- Button {
- text: "Scale UP"
- onClicked: {
- container.scale = container.scale + 0.2
- }
- }
- Button {
- text: "Scale DOWN"
- onClicked: {
- container.scale = container.scale - 0.2
- }
- }
- }
- Rectangle {
- id: container
- anchors {
- centerIn: parent
- }
- color: "green"
- width: 200
- height: 200
- Rectangle {
- anchors {
- fill: parent
- margins: Theme.paddingLarge
- }
- color: "blue"
- Text {
- anchors.centerIn: parent
- text: "Some text"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement