我们在编写QML时可以考虑哪些标准?

Which standard can we consider when writing QML?

对于编写PHP代码,程序员通常使用PSR。为了 在QML中编程,我们应该考虑哪个标准统一了QML程序员编写的代码。

这不是标准,但据我所知,实现您所追求的目标的最佳方法是使用 Qt Creator。它使用的规则可能只能在其源代码中找到,但如果您注意它产生的警告并使用 Tools > QML/JS > Reformat File 功能,您应该不会有任何问题。

built-in编码风格来自Tools > Options > Qt Quick > Code Style

QML 编码约定http://doc.qt.io/qt-5/qml-codingconventions.html

我猜你在编写 QML 时可以遵循 JavaScript 标准。