[Interest] PySide2 signal argument name?

Jérôme Godbout godboutj at amotus.ca
Fri Mar 6 17:52:55 CET 2020


Hi,
how does one emit a signal with argument from python and access them on the qml side?

in python:
mySignal = Signal(int, str)  // the following cannot be made Signal(int foo, str bar), maybe I got the syntax wrong?

in qml:
onMySignal: {
// ???, how does one access the argument if they do not have any name???
}

There is no explanation on this from the doc: https://wiki.qt.io/Qt_for_Python_Signals_and_Slots
They only show connection to slot where they get named.

Thanks,
Jerome


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200306/ec9c982a/attachment-0001.html>


More information about the Interest mailing list