Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 137

QML ListView section works in 6.5.1 but not in 5.15.2

$
0
0

The following code works as expected in 6.5.1 but not in 5.15.2

import QtQuick 2.15import QtQuick.Window 2.15Window {    width: 640    height: 480    visible: true    title: qsTr("Hello World")    ListView {        anchors.fill: parent        model: fakeModel        delegate: Text {            text: modelData.name        }        section.property: "blockName"        section.criteria: ViewSection.FullString        section.delegate: Text {            text: section            color: "red"        }    }    property var fakeModel: [{"blockName": "ABC","name": "Lorem Ipsum"        }, {"blockName": "ABC","name": "Front Raises"        }, {"blockName": "ZXC","name": "Band Tall "        }, {"blockName": "ZXC","name": "Overhead"        }]}

I'm using EndeavourOS Linux 6.1.55-1-lts

in 5.15.2:

in 5.15.2

in 6.5.2:

in 6.5.2

Does anyone know if there is any work around for making the listview sections work with qt5?

Thanks


Viewing all articles
Browse latest Browse all 137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>