Error: Empty property assignment?
-
Hello,
is it possible to use QML folders that are stored in a different folder? I am trying to use a composite ("screens/splashscreen.qml") in a file that is one folder up ("main.qml")?
I tried import "screens" but get the error: _qrc:/main.qml:8:5: Empty property assignment _
main.qml:
@
import Qt 4.7
import "screens"Rectangle {
width: 640
height: 480splashscreen { }
}
@screens/splashscreen.qml:
@
import Qt 4.7Rectangle {
width: 640
height: 480
color: red}
@Cheers
Tom[EDIT: code formatting - please use @-tags, Volker]
-
Just resolved the problem myseld. Apparently the file Splashscreen.qml must be written with a capital. Some kind of QT magic.
Cheers
Tom -
For reference, the documentation regarding component naming is at http://doc.qt.nokia.com/4.7-snapshot/qml-extending-types.html#defining-new-components. The error message isn't very helpful in this case; I'll try to see if it can be improved.
Regards,
Michael