Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10199

Qt Quick 2 Wizard Template should support ApplicationWindow root element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 2.8.1
    • Quick / QML Support
    • None
    • OSX 10.8.5

    Description

      This short piece of code causes an strange error message:

      code:

      import QtQuick 2.1
      import QtQuick.Controls 1.0

      ApplicationWindow {
      width: 800
      height: 400
      title: "My Title"
      }

      error message:

      Starting /Users/standerovi/Desktop/QT_TESTS/build-TEST06-Desktop_Qt_5_1_1_clang_64bit-Debug/TEST06.app/Contents/MacOS/TEST06...
      QML debugging is enabled. Only use this in a safe environment.
      QQuickView only supports loading of root objects that derive from QQuickItem.

      If your example is using QML 2, (such as qmlscene) and the .qml file you
      loaded has 'import QtQuick 1.0' or 'import Qt 4.7', this error will occur.

      To load files with 'import QtQuick 1.0' or 'import Qt 4.7', use the
      QDeclarativeView class in the Qt Quick 1 module.

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            standera Miroslav Štandera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes