How to replace the event handler used in c# in qt?
-
wrote on 14 Sept 2021, 06:54 last edited by
Hello~~
How to replace the event handler used in c# in qt?
A. class
event EventHandler event_ConnectionB.class
A_Class.event_Connection += event_comn -
Hello~~
How to replace the event handler used in c# in qt?
A. class
event EventHandler event_ConnectionB.class
A_Class.event_Connection += event_comnwrote on 14 Sept 2021, 08:33 last edited by@LISP
Basically declare a Qtsignals: ...
for a C#event
, declare a Qtslots: ...
for a slot, and use Qtconnect()
to connect instances of the signal & slot objects. This appends the connection to any existing connections on the signalling object, just like C#'s+=
.
1/2