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

Documentation should mention ListView TableView attached properties limitation

    XMLWordPrintable

Details

    • All

    Description

      ListView/GridView/TableVIew's delegates attached properties like index, row, column are not accessible outside of the delegate, for example in case of drag and drop, drag.source.index is undefined same with any of the roles.
      The reason is that row/column/index/model roles properties are "injected" into the context of the delegate item from the model classes, in a bit weird way. And this context is only available from inside the delegate item, and not when they are accessed into the item from the outside.
      This is a know limitation, so the documentation should mention it.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            karimpinter Karim Pinter (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes