Unsolved Emit Signal once but getting the slot twice
-
I created a signal from a c++ (keyButtonAction) and the slot is in the QML as
Connections {
target: my_display
ignoreUnknownSignals: true
onKeyButtonAction: {
console.log("KeyButton press");
}
}When I emit the signal keyButtonAction() the code invoke the slot twice?
Any idia why? -
Hi @FlacoDanziger,
May be you are trying to change the propertyKeyButtonAction
somewhere which in turn triggers the change signal ? -
From Qt docs: "Every connection you make emits a signal, so duplicate connections emit two signals."