Customizing PathView animation
-
I'm writing a sort of "carousel". Qt 6.2.0 under Ubuntu 20.04.
So far this is my code:Component { id: delegate Item { id: item width: 864 * 0.6; height: 1536 * 0.6 Image { width: parent.width * 0.95 height: parent.height * 0.95 source: modelData sourceSize: Qt.size(parent.width, parent.height) visible: true clip: false } } } PathView { id: view anchors.fill: parent anchors.bottomMargin: 150 anchors.topMargin: 50 pathItemCount: 3 preferredHighlightBegin: 0.5 preferredHighlightEnd: 0.5 highlightRangeMode: PathView.StrictlyEnforceRange highlightMoveDuration: 3000 snapMode: PathView.SnapToItem rotation: -90 model: [ base_path + "Resized80 03.png", base_path + "Resized80 04.png", base_path + "Resized80 05.png", base_path + "Resized80 06.png", base_path + "Resized80 08.png", ] delegate: delegate path: Path { startX: 0; startY: view.height / 2 //PathAttribute { name: "iconScale"; value: 0.4 } //PathAttribute { name: "iconOpacity"; value: 0.0 } //PathAttribute { name: "iconOrder"; value: 0 } PathLine {x: view.width/2; y: view.height / 2 } //PathAttribute { name: "iconScale"; value: 1 } //PathAttribute { name: "iconOpacity"; value: 1 } //PathAttribute { name: "iconOrder"; value: 8 } PathLine {x: view.width; y: view.height / 2 } } } Timer { interval: 5000; running: true; repeat: true onTriggered: view.incrementCurrentIndex() }
I didn't find a way to customize the animation. I would like to use the easing features for example, but I don't understand how to specify them. I only find the duration:
highlightMoveDuration
-
Have you solved the current problem? I have the same problem but don't know how to fix it.
@xinyangme Unfortunately, I still have this problem and apparently nobody knows how to solve.
-
@xinyangme Unfortunately, I still have this problem and apparently nobody knows how to solve.
-
@xinyangme sorry I don't understand your last question.