Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. PageIndicator and wrapping
Forum Update on Monday, May 27th 2025

PageIndicator and wrapping

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 216 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.
  • G Offline
    G Offline
    GIS_1985
    wrote on last edited by
    #1

    So just using the standard example provided from
    https://doc.qt.io/qt-5/qml-qtquick-controls2-pageindicator.html

    SwipeView {
        id: view
        currentIndex: pageIndicator.currentIndex
        anchors.fill: parent
    
        Page {
            title: qsTr("Home")
        }
        Page {
            title: qsTr("Discover")
        }
        Page {
            title: qsTr("Activity")
        }
    }
    
    PageIndicator {
        id: pageIndicator
        interactive: true
        count: view.count
        currentIndex: view.currentIndex
    
        anchors.bottom: parent.bottom
        anchors.horizontalCenter: parent.horizontalCenter
    }
    

    Eventually if you add enough page objects the page indicator will fill the width and either start cutting off if you turn clip on or if its false it will go on forever(and not be visible)

    Is there a method to include some wrapping to the page indicator so that it doesn't get cut off and goes to a new line?

    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