qskinny/examples/glabels/glabels.qml
Uwe Rathmann c6fd012fa0 Qt 6.2 workaround added - once
https://github.com/uwerat/qskinny/issues/131 is in place we hopefully
can remove it again
2021-10-07 12:29:42 +02:00

45 lines
1.0 KiB
QML

import QtQuick 2.0
import Skinny 1.0 as Qsk
import "qrc:/qml"
Qsk.Window
{
visible: true
width: 600
height: 600
color: "Beige"
Qsk.LinearBox
{
orientation: Qt.Horizontal
dimension: 3
//margins: 10
margins { left: 10; top: 10; right: 10; bottom: 10 }
spacing: 20
Repeater
{
model: [
"image://shapes/rectangle/royalblue",
"image://shapes/triangleright/thistle",
"image://shapes/ellipse/khaki",
"image://shapes/ring/sandybrown",
"image://shapes/star/darkviolet",
"image://shapes/hexagon/darkslategray"
]
Qsk.GraphicLabel
{
source: modelData
sourceSize.width: 100 // width according to aspect ratio
fillMode: Qsk.GraphicLabel.PreserveAspectFit
alignment: Qt.AlignCenter
//mirror: true
}
}
}
}