Do you have instructions on how to use your JS and integrate with ready-made elements?
//создание компонента
import QtQuick 2.6
Item {
id: myComponent // идентификатор
// это переменная текстовая
// вот так в нее мы получаем значения из пары "ключ: значение"
property string terms: contentUi.getValueByKey("MyKey")
// это переменная целочисленная
property int i: 0
Component.onCompleted: {
... тут Ваш код
}
}
// так можно создавать фигуры
import QtQuick 2.6
Item {
id: myComponent
Rectangle {
color: "lightsteelblue"; width: 505; height: 362
focus: true
}
Component.onCompleted: {
}
}