Debian Codegraph @

examples/atexit_example.qml

raw
1 import QtQuick 2.0
2 import io.thp.pyotherside 1.0
3
4 Rectangle {
5 width: 200
6 height: 200
7 color: 'red'
8
9 Python {
10 Component.onCompleted: {
11 // Add the directory of this .qml file to the search path
12 addImportPath(Qt.resolvedUrl('.'));
13
14 importModule_sync('atexit_example');
15 }
16
17 onError: console.log('error in python: ' + traceback);
18 }
19 }