Код: Выделить всё
import QtQuick 2.14
import QtQuick.Window 2.14
TextEdit {
width: 240
text: "Hello"
focus: true
}
Код: Выделить всё
auto view = new QQuickView();
view->setSource(QUrl("qrc:/qml/example.qml"));
auto qmlWrapper = this->createWindowContainer(view);
layout.addWidget(qmlWrapper);
Подробнее здесь: https://stackoverflow.com/questions/793 ... qquickview
Мобильная версия