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

TableModelColumn supports only "display"-role

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

        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
            tobiasb Tobias Bräutigam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes