C
Qt Quick Ultralite layouts Example
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial import QtQuick Rectangle { id: root width: 800 height: 480 Column { spacing: 4 anchors.fill: parent LayoutSelector { id: layoutSelector width: root.width height: 30 } Loader { id: loader source: { switch (layoutSelector.currentIndex) { case 1: return "ColumnLayout.qml" case 2: return "RowLayout.qml" default: return "GridLayout.qml" } } } } }