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

QtQuick::Item based elements require literal 'import QtQuick 2.x'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.5.1
    • None

      Even if one doesn't use any elements in the QtQuick namespace one has still to import the namespace if an element from another namespace is based on QQuickItem.

      Example:

      //import QtQuick 2.3
      import QtQuick.Window 2.2
      import QtWebEngine 1.0
      
      Window {
          visible: true
          width: 1024
          height: 860
      
          WebEngineView {
              anchors.fill: parent
              url: "http://www.qtworldsummit.com"
          }
      }
      

      hits a debugging assert on startup

      QQmlPropertyCache: QQuickItem has FastProperty class info, but has not installed property accessors
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kkohne Kai Köhne
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes