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

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes