File: qrc_example.qml

package info (click to toggle)
pyotherside 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: cpp: 2,869; python: 475; makefile: 152; sh: 35
file content (20 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.0
import io.thp.pyotherside 1.3

Rectangle {
    width: 100
    height: 100

    Python {
        Component.onCompleted: {
            addImportPath(Qt.resolvedUrl('.'));
            importModule('qrc_example', function (success) {
                console.log('module imported: ' + success);
                addImportPath(Qt.resolvedUrl('below'));
                importModule('qrc_example_below', function (success) {
                    console.log('also imported: ' + success);
                });
            });
        }
    }
}