Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
20fb997fe (dev), 37a19f5d3 (6.8)
Description
Reported on PySide6-stubs initially
QListItem.setItemWidget(item, None) will do what the user expects, remove the widget from the item. This works probably because Qt accepts NULL pointer for a widget.
Should you support this by default ? Not sure, but people cared enough to report it on PySide6-stubs
Attachments
Issue Links
- is cloned by
-
PYSIDE-3057 typing: QTreeWidget.setItemWidget() accepts None
-
- Closed
-
- relates to
-
PYSIDE-2440 Type hints should indicate optionality
-
- Closed
-
For Gerrit Dashboard: PYSIDE-3042 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
630860,2 | type hints: add explicit optional to setItemWidget | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
631905,2 | type hints: add explicit optional to setItemWidget | 6.8 | pyside/pyside-setup | Status: MERGED | +2 | 0 |