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

Missing signals in stubs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 6.4.3
    • 6.4.2
    • PySide
    • None
    • Python 3.11
      PyCharm 2022.3.1
    • macOS
    • 2c3943696 (6.4)

      Using PySide 6.4.2, PyCharm does not provide autocomplete for nor does it understand signals.

      button = QPushButton("Click Me")
      button.clicked.connect()

      clicked.connect does not autocomplete, and "connect" shows the warning "Cannot find reference 'connect' in 'function'".
       
      Looking at this comment, it appears that the problem is related to how the pyi files are generated.
       
      The following referenced signals are not present in the QtWidgets.pyi file:

      clicked : ClassVar[Signal] = ... # clicked() 
      pressed : ClassVar[Signal] = ... # pressed() 
      released : ClassVar[Signal] = ... # released() 
      toggled : ClassVar[Signal] = ... # toggled(bool) 

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

            crmaurei Cristian Maureira-Fredes
            brettvitaz Brett Vitaz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes