Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Tableview, listview or gridview?

$
0
0
Awesome! Setting ‘clip:true’ solved it! And for the spacing of the header I now modified the header…thank you for the great hints! No I have two final questions: Is there a way to make the header fixed? So only the delegates move and the header remains always visible/at the same position? How can I add a scrollbar within the flickable? I tried to put a scrollview around the listview, however I got a ‘binding loop error’ with the following code: ScrollView{     id: id_scrollView     anchors.left: parent.left     anchors.right: parent.right     //implicitHeight: 200     implicitHeight: id_listView.height // binding loop :(         ListView {         id: id_listView           anchors.left: parent.left         anchors.right: parent.right         anchors.margins: 4         height: headerItem.height //180         spacing: 10         orientation: Qt.Horizontal         interactive: true         //boundsBehavior: Flickable.StopAtBounds                 focus: true         clip: true                         header: id_header         //footer: id_footer         delegate: id_delegate         model: id_xmlModel           } } I noticed that the bouncing behavior disappears when the listview is embedded in a scrollview. My goal is to create a list with a fixed header and a small scrollbar for the delegates. I am looking forward to your great advices!

Viewing all articles
Browse latest Browse all 4972

Trending Articles