I am having below elements in QML A and B in a Rowlayout1 C and D in Rowlayout2
A and B is already Splitted horizontally using SplitView C and D is already Splitted horizontally using SplitView
No I need to Split A and C as VERTICAL and B and D as VERTICAL IS that POSSIBLE?
ColumnLayout {
anchors.fill: parent
spacing: 20
SplitView{ //THis is not working properly, I need to split VERICALLY the layouts
Layout.fillWidth: true
Layout.fillHeight: true
orientation: Qt.Vertical
RowLayout {
spacing:20
Layout.preferredHeight: 500
SplitView {
Layout.fillWidth: true
Layout.fillHeight: true
orientation: Qt.Horizontal
Rectangle {
SplitView.preferredWidth: 200
SplitView.fillHeight: true
color: "lightblue"
Text {
anchors.centerIn: parent
text: "View A"
}
}
Rectangle {
SplitView.fillWidth: true
SplitView.fillHeight: true
color: "lightgreen"
Text {
anchors.centerIn: parent
text: "View B"
}
}
}
}
RowLayout {
spacing:20
Layout.preferredHeight: 500
SplitView {
Layout.fillWidth: true
Layout.fillHeight: true
orientation: Qt.Horizontal
Rectangle {
SplitView.preferredWidth: 200
SplitView.fillHeight: true
color: "lightblue"
Text {
anchors.centerIn: parent
text: "View C"
}
}
Rectangle {
SplitView.fillWidth: true
SplitView.fillHeight: true
color: "lightgreen"
Text {
anchors.centerIn: parent
text: "View D"
}
}
}
}
}
}
I am having below elements in QML A and B in a Rowlayout1 C and D in Rowlayout2
A and B is already Splitted horizontally using SplitView C and D is already Splitted horizontally using SplitView
No I need to Split A and C as VERTICAL and B and D as VERTICAL IS that POSSIBLE?
You could create a row and column headers and just put the
SplitViewin the headers. In the following diagram, we place oneSplitViewforC1andC2and anotherSplitViewforR1andR2.Here's an example QML:
You can Try it Online!