想写很炫的 UI ,V 友们说用 QML 写更方便。
1
enki0423 2022-03-29 22:13:40 +08:00 via iPhone
渲染咋可能是 js ,build 之后肯定还是 cpp 代码
|
3
ian19znj 2022-03-29 22:45:16 +08:00
https://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html
这里讲的很清楚 Like a browser or server-side JavaScript environment, the QML runtime implements the ECMAScript Language Specification standard. This provides access to all of the built-in types and functions defined by the standard, such as Object, Array, and Math. The QML runtime implements the 7th edition of the standard. |
4
enki0423 2022-03-29 23:02:16 +08:00 via iPhone
只是 implement 这个 standard 啊,你可以用 js+css 的方式写界面,并不是说 build 之后用 js 跑,如果是这样 qml 还有什么必要?直接上 qtwebengine 不就好了?
|
7
missdeer 2022-03-30 09:30:57 +08:00 1
|
8
nonwill 2022-03-30 10:51:21 +08:00
绝知此事要躬行
问的不够累嘛,拜托,看官方的 Help 或 assistant 文档是对 OP 主的最佳帮助 |