chenage positoin of listelement in gallery example



  • Hi dear friends , I am new at QT and QML.
    I want costume the gallery example in the qt creator , I could change the drawer open from right side and now I want to change the position of listelement titles to the right drawer , but I don't know how I can do it.
    is there any one here to help me?
    Drawer {
    id: drawer
    edge:Qt.RightEdge
    width: Math.min(window.width, window.height) / 3 * 2
    height: window.height
    interactive: stackView.depth === 1

        ListView {
            id: listView
            focus: true
            currentIndex: -1
            anchors.fill:  parent
            delegate: ItemDelegate {
                width: parent.width
                text: model.title
                highlighted: ListView.isCurrentItem
                 onClicked: {
                    listView.currentIndex = index
                    stackView.push(model.source)
                    drawer.close()
                }
            }
    
    
            model: ListModel {
    
                ListElement { title: "BusyIndicator"; source: "qrc:/pages/BusyIndicatorPage.qml" }
                ListElement { title: "Button"; source: "qrc:/pages/ButtonPage.qml" } 
    

    }

             ScrollIndicator.vertical: ScrollIndicator { }

Log in to reply
 

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