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

Can't use namespaced types in property declarations

XMLWordPrintable

      The following QML file has the following parse error

      import QtQuick 2.0 as QtQuick
      import QtQuick.Window 2.0

      Window {
      property QtQuick.Item item: ii
      QtQuick.Item

      { id :ii }

      }

      file:///home/alan/tmp/test2.qml:5 Unexpected token `.'
      file:///home/alan/tmp/test2.qml:5 Unexpected token `identifier'

      As expected, just property Item item leads to an error that Item is not a type. So there appears to be no way of using namespaced types in property declarations.

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

            martinj Martin Jones
            416365416c Alan Alpert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes