Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import Ubuntu.Components 0.1
- MainView {
- objectName: "test"
- applicationName: "test2"
- id: root
- width: units.gu(60)
- height: units.gu(80)
- property real margins: units.gu(2)
- property real buttonWidth: units.gu(10)
- Button {
- text: "Send"
- onClicked: testLabel.text = "clicked text-only Button"
- anchors {
- top: parent.top
- left: parent.left
- topMargin: units.gu(15)
- leftMargin: units.gu(15)
- }
- }
- Item {
- Slider {
- function formatValue(v) { return v.toFixed(2) }
- minimumValue: -3.14
- maximumValue: 3.14
- value: 0.0
- live: true
- anchors {
- top: parent.top
- left: parent.left
- topMargin: units.gu(5)
- leftMargin: root.margins
- }
- }
- }
- Item {
- Switch {
- checked: true
- }
- }
- Label {
- id: testLabel
- text: "test"
- anchors {
- top: parent.top
- left: parent.left
- topMargin: units.gu(30)
- leftMargin: root.margins*2
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement