PropagateComposedEvents to ComboBox not work

  • I know that documentation mentions propagateComposedEvents events works for MouseArea. But What If I want it to work for combo box or another Qt Quick Component? Is there any work around?

    Following sample code doesn't trigger Combo Box click event.
    width: 800
    height: 600

        ComboBox {
            id: combo
            anchors.centerIn: parent
            model: ListModel{
                ListElement { text: "Banana"; color: "Yellow" }
                ListElement { text: "Apple"; color: "Green" }
                ListElement { text: "Coconut"; color: "Brown" }
            anchors.fill: parent
            hoverEnabled: true
            propagateComposedEvents: true
            onContainsMouseChanged: {
                console.log("mouseArea containsMouse:" + mouseArea.containsMouse);

Log in to reply

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