Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-249

Adding QtCore.Slot() decorator to base class function influences which thread executes slot in a derived class.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 5.15.14
    • 1.2.2
    • PySide
    • Debian Linux, python 3.4.1, PySide 1.2.2. But reproducible in Windows.

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            reddish Sidney Cadot
            Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes