Details
Description
Adding QtCore.Slot() decorator to base class function influences which thread executes slot in a derived class.
See attached example.
Executing it as-is will show that the DerivedClass's triggered() function is executed in the MainThread (see logging output).
Commenting out the @QtCore.Slot() decorator in line 13 and executing again will show that the slot is now executed in the Dummy-1 thread, as expected.
Also tried this with PyQt4, this shows the expected bahavior: there, the triggered() method is always executed in the Dummy-1 thread.
Attachments
Issue Links
- is duplicated by
-
PYSIDE-1354 Slot executing in wrong QThread
- Closed