想写很炫的 UI ,V 友们说用 QML 写更方便。
1
enki0423 2022 年 3 月 29 日 via iPhone
渲染咋可能是 js ,build 之后肯定还是 cpp 代码
|
3
ian19znj 2022 年 3 月 29 日
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 年 3 月 29 日 via iPhone
只是 implement 这个 standard 啊,你可以用 js+css 的方式写界面,并不是说 build 之后用 js 跑,如果是这样 qml 还有什么必要?直接上 qtwebengine 不就好了?
|
7
missdeer 2022 年 3 月 30 日 |
8
nonwill 2022 年 3 月 30 日
绝知此事要躬行
问的不够累嘛,拜托,看官方的 Help 或 assistant 文档是对 OP 主的最佳帮助 |