PageIndicator and wrapping



  • 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.