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

Type hinting of Property and Signal does not match

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future version
    • 6.5.0, 6.4.3
    • Type hints
    • None
    • Windows
    • f1fecbc6b (dev), 9a04ef292 (6.5)

    Description

      The example on https://doc.qt.io/qtforpython-6/PySide6/QtCore/Property.html with QML Properties does not work as expected when enabling type checking in Python. The Signal class or the notify parameter seem to have the wrong signature. See attached screenshot:

      Attachments

        1. image-2023-04-24-09-26-33-290.png
          38 kB
          Sven Wanzenried
        2. image-2023-04-24-11-40-10-838.png
          30 kB
          Sven Wanzenried
        3. image-2023-04-24-12-34-58-240.png
          41 kB
          Sven Wanzenried

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              sven.wanzenried Sven Wanzenried
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes