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

Missing signals in stubs

    XMLWordPrintable

Details

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

    Description

      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) 

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes