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

typing: QListWidget.setItemWidget() accepts None

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.9.0, 6.8.3
    • None
    • Type hints
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes