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

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.2
    • Type hints
    • None

    Description

      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

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes