2
votes

I would like to disable dragging in gridview using qml. This is what I have right now

GridView {
        id: appGridView
            anchors.fill: parent
        cellWidth: (appGridView.width / 2) ; cellHeight: 210
        focus: true
        model: proxyModel
        delegate: AppGridDelegate{}

        clip: true
    }

Please note that dragging property of flickable is read-only.

UPDATED:

I dont want the gridview to b moved when i press the mouse and drag the view up/down. the movement should be only when you flick the gridview. Basically why i want this is because when i select an item , i refresh the model to show the changes to the UI. Now, when the model is refreshed the current contentY position is changed and the view moves up.

1

1 Answers