Files
KDDockWidgets/examples/qtquick/mdi/main.qml
Sergio Martins 95d711ece7 qtquick: Allow to use the MDI feature from QML
No need to use low level C++ API anymore
2022-06-25 11:45:01 +01:00

40 lines
885 B
QML

/*
This file is part of KDDockWidgets.
SPDX-FileCopyrightText: 2020-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
Author: Sergio Martins <sergio.martins@kdab.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
Contact KDAB at <info@kdab.com> for commercial licensing options.
*/
import QtQuick 2.6
import QtQuick.Controls 2.12
import com.kdab.dockwidgets 2.0 as KDDW
ApplicationWindow {
visible: true
width: 1000
height: 1200
KDDW.MDIDockingArea {
id: dockingArea
anchors.fill: parent
uniqueName: "MyMainLayout"
}
KDDW.DockWidget {
id: greenDock
uniqueName: "greenDock"
Rectangle {
color: "green"
anchors.fill: parent
}
}
Component.onCompleted: {
dockingArea.addDockWidget(greenDock, Qt.point(200, 200));
}
}