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

typing: QListWidget.setItemWidget() accepts None

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.9.0, 6.8.3
    • None
    • Type hints
    • None
    • 20fb997fe (dev), 37a19f5d3 (6.8)

      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

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

            ctismer Christian Tismer
            bluebird75 Philippe Fremy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes