qt6-bb10/qtdeclarative/tests/benchmarks/quickcontrols/qmlbench/creation/delegates_popup.qml

27 lines
600 B
QML

import QtQuick
import QmlBench
import QtQuick.Controls
CreationBenchmark {
id: root
count: 20
staticCount: 500
delegate: Item {
x: QmlBench.getRandom() * root.width - width
y: QmlBench.getRandom() * root.height - height
width: popup.width
height: popup.height
Popup {
id: popup
visible: true
modal: (index % 100) === 0
width: parent.width
height: parent.height
Item {
implicitWidth: 100
implicitHeight: 100
}
}
}
}