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

Allow qml GridView to query for model columns (or QAbstractTableModel)

    XMLWordPrintable

Details

    Description

      I currently have a use case where I need to display dynamic data in a grid like display, and where data positioning in each cell is important.

      Currently GridView (and TableView. Nothing dynamic about having to hardcode specific columns) only supports a singular list (ListModel, QAbstractListModel, etc.). I need a view to be able to refer to the model with an index that has a column > 0 so to get a correct rowCount(). The data shouldn't have to be completely linear in a grid when my data places data using specific coordinates on a grid.

      If this isn't possible, another suggestion would be to allow a Repeater to handle column referencing in a model, and add a function/variable to place an item in a specific row/column in a QML Grid object.

      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
            atemple03 Adam Temple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes