I don't see anything in there about serialization...but here's a thread which 
shows some examples and says "don't do it" referring to pass by reference.
https://stackoverflow.com/questions/8455887/stack-object-qt-signal-and-parameter-as-reference

Mike 

    On Thursday, January 24, 2019, 5:22:36 PM CST, Bill Somerville 
<g4...@classdesign.com> wrote:  
 
 On 24/01/2019 23:07, Black Michael via wsjt-devel wrote:
> And where does this serialization take place?  Are you saying it's a 
> default condition of Qt to serialize across event boundaries?
>
> de Mike W9MDB
>
Mike,

you need to read up on the Qt signal/slot mechanism and how queued 
signals are processed:

http://doc.qt.io/qt-5/signalsandslots.html

The serialization is done by the Qt meta-type system. Since the Qt 
meta-type system uses run-time refection it can determine if the 
receiver of a signal is running in another thread, in which case the 
connection is made by creating an event on the target thread event queue 
which includes serialized copies of the signal arguments. Anyway, not 
relevant here as the compiler resolves same thread non-queued signal to 
slot connections as function calls by some C++ template magic and the 
moc pre-compiler tool that augments QObject classes.

73
Bill
G4WJS.



_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
  
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to