[Interest] Annoying ApplicationWindow Error
Jason H
scorp1us at yahoo.com
Tue May 13 05:50:08 CEST 2014
QtQuick 2.x project.... I'm getting this error:
"""
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.
"""
using this source file:
"""
import QtQuick.Controls1.1
ApplicationWindow{
width:640
height:1080
}
"""
However I am given this example from "Qt Quick Controls Overview"
"""
import QtQuick.Controls 1.1
ApplicationWindow {
title: "My Application"
Button {
text: "Push Me"
anchors.centerIn: parent
}
}
"""
Why am I getting an error that I should not be getting by reason and according to the example?
More information about the Interest
mailing list