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

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2, dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Environment:
      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

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            reddish Sidney Cadot
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes