From 46dca623ce9926acce0a546a772a4a3fcaff4211 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: Wed, 16 Nov 2022 16:44:18 +0800 Subject: Using Flickable works --- DefaultHome.ui.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DefaultHome.ui.qml b/DefaultHome.ui.qml index 36689bf..607f6f4 100644 --- a/DefaultHome.ui.qml +++ b/DefaultHome.ui.qml @@ -2,9 +2,8 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 -ScrollView { +Flickable { property alias popularCourseTabsContent: popularCourseTabsContent - contentWidth: counter.width contentHeight: counter.height + popularCourseTabsContent.height GridView { @@ -128,9 +127,9 @@ ScrollView { height: width < 576 ? cellHeight : width < 768 ? cellHeight * 2 : width < 992 ? cellHeight * 3 : cellHeight * 4 anchors { + top: counter.bottom left: parent.left right: parent.right - bottom: parent.bottom } } } -- cgit v1.2.3