Hi Hamish,

Yes, you are right.
Link Tipp: https://wiki.qt.io/New_Signal_Slot_Syntax

Best regards,

Johannes


Mit freundlichen Grüßen - Distinti saluti - Best regards
​
Johannes
Lochmann
Head of Software Development
​​
Tel:
Fax:
Email:
+39 0471 319 999
+39 0471 319 990
[email protected]

​

​Enzenbergweg 24/A - Via Enzenberg 24/A
I-39018 Terlan - Terlano (BZ)
www.topcontrol.it
 Driving efficiency in food processing

Caution: The unauthorized use of this message is prohibited and may be 
prosecuted by law. Anyone who receives this communication in error is requested 
to inform us immediately and then delete the message.
​The information on the processing of personal data of customers and suppliers 
made pursuant to the art. 13-14 GDPR is available at the link: 
https://www.topcontrol.it/en/privacy

-----Original Message-----
From: Interest <[email protected]> On Behalf Of Hamish Moffatt
Sent: Tuesday, March 10, 2020 06:27
To: [email protected]
Subject: [Interest] Qt5 connect signal to signal

In the old syntax one could:

connect(source, SIGNAL(readProgress(int)), SIGNAL(progress(int)));


In the new syntax, is it equivalent to use

connect(source, &SourceClass::readProgress, this, &ThisClass::progress);

... assuming that all of this is on a single thread?


I'm not quite clear what thread context the first is using when repeating the 
signal?


Hamish

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to