Qt 6.11 is out! See what's new in the release
blog
qml代码缩进问题
-
貌似是老毛病 :
https://qt-project.atlassian.net/browse/QTCREATORBUG-30463可以被最新的Qt Creator 19确认,比如:
Item { onXChanged: function() { console.log("Hello") } onXChanged: ()=> { console.log("Hello") } }两种函数定义方法,使用builtin的code style(Preferences->Qt Quick->Code Style),写完之后Ctrl + I,结果就是这样。问题可能不是参数而是箭头函数本身。