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

Types imported into namespace cannot be used as property type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.6
    • 6.4.2
    • QML: Tooling
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: