02-13-2013 04:42 AM
I want to connect a signal (with parameter) in QML. I emit the signal from my cpp and I am able to get that in QML, when I use signals that has no parameter.
I want to connect to signals that takes parameter.
I do emit mySignal(), works fine.
Want to do something like emit mySignal(int) and acess that in QML
Solved! Go to Solution.
02-13-2013 04:49 AM
02-13-2013 07:24 AM
your signal is:
then you connect it to a function like that (in qml)
console.log("my string is: "+mystring)
if you have multiple parameters you have to be careful with the order, and best use descriptive names, as there are no types in the function definition.