Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeqt / data / createComponent.qml
1 import QtQuick 1.0
2
3 QtObject {
4     property bool emptyArg: false
5
6     property string relativeUrl
7     property string absoluteUrl
8
9     property QtObject incorectArgCount1: Qt.createComponent()
10     property QtObject incorectArgCount2: Qt.createComponent("main.qml", 10)
11
12     Component.onCompleted: {
13         emptyArg = (Qt.createComponent("") == null);
14         var r = Qt.createComponent("createComponentData.qml");
15         relativeUrl = r.url;
16
17         var a = Qt.createComponent("http://www.example.com/test.qml");
18         absoluteUrl = a.url;
19     }
20 }