Qt Creator 下载地址(含历史版本):https://download.qt.io/official_releases/qtcreator/
症状
Qt Creator 目前最新版为12.0.1,安装后打开.qml
文件发现设计工具图标为禁用状态。
原因及解决方案
根据官网材料(Qt Creator 6 Released)显示,自2021年12月2日发布的Qt Creator 6.0 版本之后Qt Quick Designer设计模式为默认禁止状态,需要在帮助
-关于插件
中载入并开启QmlDesigner
,重启后再次打开.qml
文件即可正常显示设计模式可切换状态。
原文:
The integrated Qt Quick Designer is now disabled by default. Qt Creator will open .ui.qml files in Qt Design Studio. This is a step towards a more integrated workflow between Qt Design Studio and Qt Creator (video). Qt Quick Designer is still there, you can manually enable it again by checking the QmlDesigner plugin in Help > About Plugins.
参考网址
升级到Creator6之后,设计模式不能用了