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

QML Namespacing incompatible with built in enums

    XMLWordPrintable

Details

    Description

      If Qt is imported into a namespace, built in Qt enums seem to be no longer accessible.

      Running the flickr example with the attached patch:

      QObject::setParent: Cannot set parent, new parent is in a different thread
      created new network access manager for QDeclarativeImageRequestHandler(0x2599f40)
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:16: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:5: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:16: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:5: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:16: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:5: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:16: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:5: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:19: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:18: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:17: TypeError: Result of expression 'Qt.Text' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:16: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.
      file:///home/kde-devel/kde/src/qt/demos/declarative/flickr/mobile/ListDelegate.qml:5: TypeError: Result of expression 'wrapper.ListView' [undefined] is not an object.

      Attachments

        1. flickr.patch
          2 kB
        2. qmlnamespace.patch
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aakenned Aaron Kennedy
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes