examples/qrc/data/qrc_example.qml
raw| 1 | import QtQuick 2.0 |
| 2 | import io.thp.pyotherside 1.3 |
| 3 | |
| 4 | Rectangle { |
| 5 | width: 100 |
| 6 | height: 100 |
| 7 | |
| 8 | Python { |
| 9 | Component.onCompleted: { |
| 10 | addImportPath(Qt.resolvedUrl('.')); |
| 11 | importModule('qrc_example', function (success) { |
| 12 | console.log('module imported: ' + success); |
| 13 | addImportPath(Qt.resolvedUrl('below')); |
| 14 | importModule('qrc_example_below', function (success) { |
| 15 | console.log('also imported: ' + success); |
| 16 | }); |
| 17 | }); |
| 18 | } |
| 19 | } |
| 20 | } |