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

qmllint dislikes properties with types from import namespaces

    XMLWordPrintable

Details

    • All

    Description

      If you have a C++ type Document which is made available via a module FooBar, you can use it as a property type and this qmllints fine:

      import FooBar
      Item {
          property Document document: null 
      
      

      If you however namespace the import like so:

      import FooBar as FB
      Item { 
          property FB.Document document: null 

      then qmllint does not like this at all:

      Warning: Test.qml:10:5: FB was not found. Did you add all import paths?
          property FB.Document document: null
          ^^^^^^^^ 

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            rgriebl Robert Griebl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes