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

QML PathView: change current index of pathview via mouse wheel

$
0
0
I have created a path view with a delegate and model. Is it possible to change current index of the PathView via mouse wheel instead of mouse click drag? Following is my PathView code: PathView {     id: pathView;     anchors.fill: parent;     model: sampleModel;     delegate: delegate;     path: Path {         startX: 45; startY: 100         PathAttribute { name: "iconScale"; value: 0.3 }         PathAttribute { name: "iconOpacity"; value: 0.1 }         PathQuad { x: 45; y: 300; controlX: 45; controlY: 200 }         PathAttribute { name: "iconScale"; value: 1 }         PathAttribute { name: "iconOpacity"; value: 1 }         PathQuad { x: 45; y: 500; controlX: 45; controlY: 400 }     } }

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images