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

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

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Labels:
      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

            • Assignee:
              aalpert Alan Alpert
              Reporter:
              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