17 lines
352 B
QML
17 lines
352 B
QML
import QtQuick
|
|
import QmlBench
|
|
import QtQuick.Controls
|
|
|
|
CreationBenchmark {
|
|
id: root
|
|
count: 20
|
|
staticCount: 2000
|
|
delegate: AbstractButton {
|
|
x: QmlBench.getRandom() * root.width - width
|
|
y: QmlBench.getRandom() * root.height - height
|
|
checkable: index % 2
|
|
checked: index % 2
|
|
down: index % 3
|
|
}
|
|
}
|