From 29b5bafe16ba82773da97c77951309d585bc9a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Feb 2023 20:41:27 +0800 Subject: Shorten names Use something like import "qeduport" as Eduport --- GridMinimal.ui.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 GridMinimal.ui.qml (limited to 'GridMinimal.ui.qml') 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 {} + } +} -- cgit v1.2.3