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

Attached 'model' property in the TableView delegate points to the model object instead of model item's data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.1.0
    • Quick: Controls 1
    • None
    • Windows 7, x86, msvc2010, ANGLE
    • 9bdbff5a14f340b6b12f1fcd84608d17bdc67d70

    Description

      In the TableView delegate model data points to the model object, but should point to the model element data for models like ListModel. Though, modelData points to the model element data for models like JavaScript Array.
      Executing attached program results in following output:

      JS Array	model: [[object Object]] modelData: [object Object]
      ListModel	model: QQmlListModel(0xf80350) modelData: test
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-33107
          # Subject Branch Project Status CR V

          Activity

            People

              bachewii Jens
              krnekit Nikita Krupenko
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes