Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

SwipeView Push Properties ?



  • Hello how can I push properties to page in SwipeView?

    mail.qml

       property string data: "tmpData"
    
        .....
        SwipeView {
            id: resultDetailsView
            anchors.fill: parent
    
            LiveCenterPage {
                eventData: data
            }
        }
    

    LiveCenterPage .qml

    Page {
        property var eventData
    
        Component.onCompleted: {
            console.log(eventData)
        }
    }
    
    
    qml: undefined
    


  • LiveCenterPage.qml

    Page {
        property var eventData
    
        Component.onCompleted: {
            //console.log(eventData)
            console.log(data) // Work
        }
    }
    

Log in to reply