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

Sender from signal with private callback is None

XMLWordPrintable

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

      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.

        1. test.py
          0.6 kB
        2. pyside1295.py
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes