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

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

    XMLWordPrintable

Details

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

    Description

      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
      

      Attachments

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

        Activity

          People

            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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes