Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31078

Bogus warning in Qt Creator / TableModel / Delegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 13.0.0
    • Quick / QML Support
    • 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:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes