equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
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 } |