blob: 6dd714d41cfcf7a3319060ad5bccca735be537ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import Qt 4.7
Item {
id: qtLogo
property alias fillMode: image.fillMode
property alias label: labelText.text
width: ((window.width - 20) - ((grid.columns - 1) * grid.spacing)) / grid.columns
height: ((window.height - 20) - ((grid.rows - 1) * grid.spacing)) / grid.rows
Column {
anchors.fill: parent
Rectangle {
height: qtLogo.height - 30; width: qtLogo.width
border.color: "black"; clip: true
Image {
id: image
anchors.fill: parent; smooth: true; source: "qt-logo.png"
}
}
Text {
id: labelText; anchors.horizontalCenter: parent.horizontalCenter
height: 30; verticalAlignment: Text.AlignVCenter
}
}
}
|