SplitView in Rows in QML

31 Views Asked by At

A qml having many rowlayouts, I want to add splitter between the rowlayouts in QML

Rowlayout{

}

Rowlayout{

}

//Add splitter between these two rows

1

There are 1 best solutions below

0
Stephen Quan On

Be sure:

  1. Your SplitView is appropriately positioned/sized (e.g. anchors.fill: parent)
  2. At least one of your SplitView children has a non-zero size (e.g. SplitView.preferredWidth: 100)
    SplitView {
        anchors.fill: parent
        RowLayout { 
            SplitView.preferredWidth: 100
        }
        RowLayout { 
        }
    }

You can Try it Online!