Solved Signals with more parameters
-
Hello, I use into project QT/QML/WebEngine
How many parameter i can put into call of signals ??I can do this call ??
emit nameSignals(parameterMapp1_Barray, parameterMapp2_Barray, parameterMapp3_Barray, . . ., parameterMappNR_Barray);
Or I put only one parameter type string ?
Thanks for your help.
-
@elicat You can put as many as you want but in cases when I have more than a couple I tend to wrap them up in the QMap or something.
-
@artwaw So I can send signl into javascript function an object type QByteArray ??
-
@elicat yes. it Qml Engine, if memory servers, will convert it to JS Array
-
thanks, i have ty pass a QJsonObject and is all right