diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 20:41:27 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 20:41:27 +0800 |
| commit | 29b5bafe16ba82773da97c77951309d585bc9a6b (patch) | |
| tree | 57978d3e0196d57a8f31f515d6d93be5bfb21916 /GridMinimal.ui.qml | |
| parent | 896960e9a507c671f685b0536a10d7dc554c9451 (diff) | |
Shorten names
Use something like
import "qeduport" as Eduport
Diffstat (limited to 'GridMinimal.ui.qml')
| -rw-r--r-- | GridMinimal.ui.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/GridMinimal.ui.qml b/GridMinimal.ui.qml new file mode 100644 index 0000000..860e37c --- /dev/null +++ b/GridMinimal.ui.qml @@ -0,0 +1,16 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +StackView { + property alias grid: grid + + id: stack + initialItem: GridView { + id: grid + cellWidth: width < 576 ? stack.width : width < 768 + ? stack.width / 2 : width < 992 ? stack.width / 3 + : stack.width / 4 + cellHeight: cellWidth * 1.3 + ScrollBar.vertical: ScrollBar {} + } +} |