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

Documentation should mention ListView TableView attached properties limitation

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.2, 5.13.0 Beta 1
    • Fix Version/s: None
    • Component/s: Documentation
    • Platform/s:
      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

            • Assignee:
              docteam Qt Documentation Team
              Reporter:
              karimpinter Karim Pinter
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes