I have the following PathView:
PathView {
id: projectView
anchors.fill: parent
model: carProjects
delegate: projectEntry
pathItemCount: 3
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
path: Path {
startX: -parent.width / 10
startY: parent.height/2
PathAttribute { name: "iconScale"; value: 0.3 }
PathLine { x: parent.width/2; y: parent.height/2 }
PathAttribute { name: "iconScale"; value: 1 }
PathLine { x: parent.width*1.1; y: parent.height/2 }
PathAttribute { name: "iconScale"; value: 0.3 }
}
}
It renders fine if there are 1, or 3 or more items in carProjects.
With 2 items, only one is visible, flicking is required for the second
one to be visible.
With 3 or more items, 3 are visible at the same time, as expected.
I suppose I could add an "invisible" bogus item if there are precisely 2
items, but that feels ugly. Any other suggestions?
Thanks,
Harri
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest