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

Sender from signal with private callback is None

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.0
    • 5.13.2
    • PySide
    • None
    • Linux/Wayland, Windows
    • 5b5cb391c (dev)

    Description

      Hi,

      We have noticed a bug on our project with new changes we did while testing PySide2 (instead of PyQt5).

      It appears that self.sender() is None in some circonstancies.

      I join a small test file (test.py) to reproduce the problem.

      Here is the output on my machine:

       

      == Base ==
      __callback OK
      callback OK
      == Inherited ==
      __callback ERROR: None
      callback OK
      == End ==
      

      As you can see, if we execute the base class directly or the inherited class (which only inherit the base class), the result is not the same.

      Attachments

        1. test.py
          0.6 kB
        2. pyside1295.py
          1 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-1295
          # Subject Branch Project Status CR V

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              vvalls V Valls
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes