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

QTableView with custom datamodel doesn't update on insert rows (on linux)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.0
    • Widgets: Itemviews
    • None
    • Ubuntu 10.04.2 LTS (x86_64 GNU/Linux) with the libqt4-dev
      packages (the 4:4.7.0-0ubuntu2~lucid1~ppa1 backports).

    Description

      I tried extending the Simple Tree Model Example to include a nice
      decoration icon and allowing for updates to the data. I think I have
      done this correctly however... If I connect a QTableView before populating the model,
      the newly added data isn't displayed. A QListView, QtreeView and even a QComboBox work
      as expected. I attached a screenshot of the output displayed on my screen.
      I also attached a minimal example.

      I'm running a 64bit linux system, a quick post on the qt-interest maillinglist gave as feedback that it also fails on 32 bits ubuntu but works on XP (Qt 4.7.1)

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            david_heremans David Heremans
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes