Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55118

ComboBox text errors after modifications of underlying list model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • b172b30368bafc839b92f767324496a509267fc7

    Description

      When using the ComboBox with a list model (for instance a QAbstractListModel) then modifications of the underlying model do not correctly reflect in the combo box. Modifications can be append, remove, and also renaming of elements (see example code).

      Problems:

      • When removing the selected element then the text does not update.
      • When removing an element then there is some wired drawing of the first element (it looks like the deleted element's text is drawn as well).
      • When renaming a selected element then the text is not updated.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            DanielSt Peter Staab
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes