Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QML PathView and Pages control
QtWS25 Last Chance

[Solved] QML PathView and Pages control

Scheduled Pinned Locked Moved General and Desktop
qmlindexpathviewpage navigation
1 Posts 1 Posters 867 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yakov Eremin
    wrote on last edited by Yakov Eremin
    #1

    Hello!

    I trying to create Pages control via PathView, but changing currentIndex shows incorrect page. What I'm doing wrong?

        path: Path {
            startX: - root.width * itemModel.count / 2 + root.width / 2
            startY: root.height / 2
            PathLine {
                x: root.width * itemModel.count / 2 + root.width / 2
                y: root.height / 2
            }
        }
    

    Test project

    UPD: Path is incorrect, I'm add first stub element and use X from -root.width / 2 to root.width * mainScreensModel.count - root.width / 2

    (If startX is positive, at currentIndex showing page with correct index, but page changing visually incorrect)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved