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

QTreeWidgetItemIterator does not iterate over all items of TreeWidget if sorting is enabled.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0
    • 4.7.4, 4.8.4
    • Widgets: Itemviews
    • None
    • Windows7
    • 05751a7e75da5e4634afccee23076c0dac2ce8b0 aa2d10750ad8cdb6a86d519063664c2924b2a635

    Description

      If QTreeWidgetItemIterator is used to loop through all the items of a tree widget having sorting enabled, the iterator does not point to all individual treewidget item uniquely rather it points to some item multiple time.

      Attached example reproduce the behavior.
      Run the application and see the output it prints same item twice.

      Attachments

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

        Activity

          People

            smd Jan Arve
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes