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

Types imported into namespace cannot be used as property type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 13.0.0-beta1
    • Quick / QML Support
    • None
    • Linux/X11

    Description

      Hi.

      Types imported into namespace using import <ModuleIdentifier> [<Version.Number>] [as <Qualifier>] format cannot be used as types in property decleration (property <type> <name>: ...).

      QML does exectue, but autocomplete shows properties from namespace instead of type. Also, qmllint does not check these types.

      If importing into global namespace, type is properly identified. Linter still does not report errors.

      Additional info:
      I've rechecked and found following scenarios:

      • Qt Creator does not understand namespaced typed property
      • qmllint does understand namespaced typed property
      • runtime does understand namespaced typed property

      It seems problem is with Qt Creator.

      Note for future reader, qmllint verifies only when attribute is bound to other's object attribute. In JavaScript code, type check is ignored.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            gogo Gregor Kališnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes