qtquick: Allow to use the MDI feature from QML

No need to use low level C++ API anymore
This commit is contained in:
Sergio Martins
2022-06-25 11:45:01 +01:00
parent 74a1520382
commit 95d711ece7
7 changed files with 183 additions and 5 deletions

View File

@@ -18,9 +18,22 @@ ApplicationWindow {
width: 1000
height: 1200
KDDW.DockingArea {
KDDW.MDIDockingArea {
id: dockingArea
anchors.fill: parent
uniqueName: "MyMainLayout"
options: KDDW.KDDockWidgets.MainWindowOption_MDI
}
KDDW.DockWidget {
id: greenDock
uniqueName: "greenDock"
Rectangle {
color: "green"
anchors.fill: parent
}
}
Component.onCompleted: {
dockingArea.addDockWidget(greenDock, Qt.point(200, 200));
}
}