Created
November 27, 2012 22:22
-
-
Save dridk/4157558 to your computer and use it in GitHub Desktop.
qml repeater exemple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Container { | |
horizontalAlignment: HorizontalAlignment.Fill | |
verticalAlignment: VerticalAlignment.Fill | |
leftPadding: 30 | |
topPadding: 30 | |
rightPadding: 30 | |
Repeater { | |
// Use a simple number (N) as model -> the delegate will be repeated N times | |
model: 5 | |
Label { | |
text: qsTr ("Hello World") | |
textStyle { | |
base: SystemDefaults.TextStyles.BodyText | |
color: Color.White | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment