0
votes

well i implemented a image carousel using QML with PathView seeing some examples. I had a doubt about how to define the number of items than i wanted visible and i got my answer here My answered question.

Right now, i'm using pathItemCount property, but i have another problem. I saw than when i define pathItemCount property the QML PathView shows just next items, but as i using that component like a image carousel, i need to show next and previous items of the current item.

Someone know how i do it?

Sorry, i'm really newbie in QML, searching somethings about this but no success until now.

Thanks a lot and sorry my english.

1

1 Answers

1
votes

Try to set these properties in your PathView:

PathView {
    // ...
    preferredHighlightBegin: 0.5
    preferredHighlightEnd: 0.5

    pathItemCount: 5
    // ...
}

You can read about it here