Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- import com.nokia.meego 1.0
- Page {
- tools: commonTools
- state: screen.orientationString
- Label {
- id: label
- anchors.centerIn: parent
- text: screen.orientationString
- visible: false
- }
- Button{
- anchors {
- horizontalCenter: parent.horizontalCenter
- top: label.bottom
- topMargin: 10
- }
- text: qsTr("Click here!")
- onClicked: label.visible = true
- }
- states: [
- State {
- name: "Portrait"
- PropertyChanges { target: object; width: 100}
- },
- State {
- name: "Landscape"
- PropertyChanges { target: object; width: 200}
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement