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

QML nested namespaces can't be used to define a property type

XMLWordPrintable

      import QtQuick 2.4 as QQ
      
      QQ.Rectangle {
        property QQ.Rectangle fooobar
      
        width: 100
        height: 100
        color: "yellow"
      }
      

      I'm using a nested namespace for importing a component, so I was guessing that I could use a type defined there also as a property type... But it's not possible while I'm getting this output

      file:///tmp/qq.qml:4 Unexpected token `.'
      file:///tmp/qq.qml:4 Expected token `:'

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

            Unassigned Unassigned
            3v1n0 Marco Trevisan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes