Set qml to be precompiled
This commit is contained in:
@ -1,22 +1,48 @@
|
||||
import QtQuick 2.3
|
||||
Item {
|
||||
Row {
|
||||
anchors.right: parent.right
|
||||
spacing: 4
|
||||
|
||||
Rectangle {
|
||||
color: "gray"
|
||||
Flickable {
|
||||
width: parent.width;
|
||||
height: parent.height
|
||||
contentWidth: 2500; contentHeight: 1500
|
||||
flickDeceleration: 10000
|
||||
leftMargin: Math.max((width - contentWidth)/2,0)
|
||||
topMargin: Math.max((height - contentHeight)/2,0)
|
||||
clip: true
|
||||
|
||||
Rectangle {
|
||||
height: 100
|
||||
width: 100
|
||||
color: "green"
|
||||
Text {
|
||||
text: "Hello, World!"
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
height: 100
|
||||
width: 100
|
||||
color: "red"
|
||||
Text {
|
||||
text: "Hello, World!"
|
||||
color: "white"
|
||||
id: contentRect
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
transform: Scale {yScale: 1; xScale: 1}
|
||||
transformOrigin: Item.TopLeft
|
||||
|
||||
Row {
|
||||
x:0
|
||||
y:0
|
||||
spacing: 4
|
||||
|
||||
Rectangle {
|
||||
height: 100
|
||||
width: 100
|
||||
color: "green"
|
||||
Text {
|
||||
text: "Hello, World!"
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
height: 100
|
||||
width: 100
|
||||
color: "red"
|
||||
Text {
|
||||
text: "Hello, World!"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user