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

QtTreePropertyBrowser: editor won't close

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.6.1
    • Widgets: Itemviews
    • None
    • Windows 8.1

    Description

      In our project we use a QtTreePropertyBrowser to display/edit properties of a selected item. When clicking a property in the view an editor (QSpinBox, QLineEdit, etc...) opens. Sometimes these editors don't get closed when selecting another property.

      After some debugging this seems to be caused by QAbstractItemViewPrivate::persistant containing dead editors. Everytime i select another item in our project, the view gets rebuild and persistent gets bigger and bigger, containing the addresses of old (destroyed) editors (the data-pointer contains values like 0xdcdcdcdcd).
      It seems that sometimes new editors will reuse these addresses and will get identified as a persistent editor. Those editors won't get closed when selecting another property.

      A workaround is to call QAbstractItemView::reset() which clears the set. It would be better though, if the dead editor would be removed automatically.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jkleemann Jan Kleemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes