Execute QML 8 - Dynamic create QML object from JavaScript

preview_player
Показать описание
Introduction
This video is a part of series "Execute QML" that will introduce some way to execute QML component

In this video, we will discover how to dynamic create QML object from JavaScript

Source code
Рекомендации по теме
Комментарии
Автор

Anh ơi xem giúp em với. Em muốn mở một cửa sổ từ một cửa sổ chính em search trên mạng code như thế này:
@
import QtQuick 2.3
import QtQuick.Controls 1.2

ApplicationWindow {
id: root
width: 200; height: 200

Button {
anchors.centerIn: parent
text: qsTr("Click me")

onClicked: {
var component =
var window = component.createObject(root)
window.show()
}
}
}
@
Trên windows thì nó chạy thành công còn trên android nó không chạy được :((

huuvo
welcome to shbcf.ru