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

TableModelColumn supports only "display"-role

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.6.0, 6.6.1
    • None
    • Linux/X11

      Quote from documentation:

      TableModelColumn supports all of Qt's roles, with the exception of Qt::InitialSortOrderRole.

      If I try to use e.g. 

      TableModelColumn { display: "checked"; decoration: "fruitType" } 

      I get log messages like: 
      QML TableModel: setData(): no role named decoration at column index 1. The available roles for that column are: QList("display")

      This used to work but as I haven't noticed this until using 6.6.x so I cannot say which version introduced this change.

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tobiasb Tobias Bräutigam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes