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
-