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?

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to