Quantcast
Channel: Active questions tagged listview - Stack Overflow
Viewing all articles
Browse latest Browse all 611

QML: Attach scrollbar to ListView

$
0
0

I'm having an issue with ListView. ListView is too long and part of it appears outside of the window but I can't attach a scrollbar. I tried many different combination. I think that problem lies in height parameter but if remove it ListView displays only first entry.

Column{    anchors.fill: parent    Row{        id: buttonsRow            Button{                text: "Open dump file"                onClicked: fileDialog.visible = true            }            Button{                text: "Copy raw data to clipboard"            }    }    ListView{        id: listView        anchors.top: buttonsRow.bottom        height: contentHeight        //clip: true        flickableDirection: Flickable.VerticalFlick        boundsBehavior: Flickable.StopAtBounds        interactive: true        model: ListModel{            id: listModel        }        delegate: MDelegate{}    }}

Is there any way to make it scrollable?


Viewing all articles
Browse latest Browse all 611

Trending Articles



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