Details
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
- duplicates
-
PYSIDE-1603 Missing signals in stubs
- Closed
-
PYSIDE-1318 Wrong or incomplete type stubs for signals/slots
- Closed
- relates to
-
PYSIDE-1603 Missing signals in stubs
- Closed
For Gerrit Dashboard: PYSIDE-2197 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
455363,5 | signals: Generate signals into pyi files as attributes | 6.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |