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

typing: connect() and disconnect() do not accept SIGNAL() and SLOT() values

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.9.1, 6.10.0
    • 6.8.2
    • Type hints
    • None
    • 00686a7ed (dev), d5b180c5d (6.9), 63badebc1 (6.8)

      SIGNAL() and SLOT() are declared as returning strings. However, many methods who are expecting arguments as result from SIGNAL and SLOT accept only byte-like input.

      This applies to :

      • QObject.connect
      • QObject.disconnect
      • QObject.receivers
      • SignalInstance.connect
      • SignalInstance.disconnect

      I have an example code to check this but it's quite long as it checks all possibilities and return values.

      This fix rather simple, all above methods should accept string instead of byte-like object

       

        1. signal_slot2.py
          4 kB
          Philippe Fremy
        For Gerrit Dashboard: PYSIDE-3059
        # Subject Branch Project Status CR V

            ctismer Christian Tismer
            bluebird75 Philippe Fremy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes