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

QStandardItem::appendRow does not update model recursively

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • Widgets: Itemviews
    • None

    Description

      See sample `main.cpp` below for more details.

      If a tree model is laid out as follows:

      topItem
      -> midItem
       -> bottomItem,

      then after removing midItem and inserting it back as a child of topItem, `bottomItem ->model()` returns `nullptr` even though `bottomItem` is now in the model (as a child of `midItem`).

      Attachments

        1. main.cpp
          2 kB
          Marcus Leivo
        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
            marcusle Marcus Leivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes