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

QWizardPage.registerField expects bytes, needs a str, but should accept a SignalInstance as its changedSignal argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.6.0
    • 6.3.0, 6.3.1, 6.3.2, 6.4.0, 6.4.1, 6.4.0.1, 6.5.0, 6.5.1, 6.4.2, 6.4.3, 6.5.1.1
    • PySide, Type hints
    • None
    • c53b45868 (dev), eaa57f89e (6.5), 65e48138e (dev), 942768a87 (dev), dde6245d5 (dev), 0c4a5d249 (dev), 3320bd181 (6.5)

    Description

      The signature of QWizardPage.registerField in QtWidgets.pyi is

      def registerField(self, name: str, widget: PySide6.QtWidgets.QWidget, property: Optional[bytes] = ..., changedSignal: Optional[bytes] = ...) -> None
      

      However, the function accepts

      def registerField(self, name: str, widget: PySide6.QtWidgets.QWidget, property: Optional[str] = ..., changedSignal: Optional[str] = ...) -> None
      

      And why is changedSignal a string at all? QTBUG-44276 is 8.424 years old. In PyQt5/6, QWizardPage.registerField accepts a SignalInstance there just fine.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              stsav012 Anton Yablokov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: