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

Bogus warning in Qt Creator / TableModel / Delegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8
    • None
    • All

    Description

      If a TabelModel is referenced in a delegate choice (e.g. by model.display), the Qt Creator code model launches the warning

      "Unqualified access: model is implicitly injected into this delegate. Add a required property instead."

      The warning is confusing, because it doesn't specify where a required property should be added. It's wrong, because the QML code works as expected. Using e.g. model.display in a delegate is also explicitly encouraged in the documentation.

      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
            axelspoerl Axel Spoerl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes