QtCreator6.2项目模板文件解析学习之使用json文件动态创建界面

吴城
2023-12-01

QtCreator6.2中,项目创建的模板文件位置在安装目录的template目录下,譬如我的如下所示:
E:\Qt6.2\Tools\QtCreator\share\qtcreator\templates\wizards\projects\qtwidgetsapplication\wizard.json

可以看到,这是一个json文件,Qtcreator通过读取这个json文件去创建widzard引导窗口。

"version": 1,
    "supportedProjectTypes": [ "MesonProjectManager.MesonProject","CMakeProjectManager.CMakeProject", "Qt4ProjectManager.Qt4Project", "Qbs.QbsProject" ],
    "id": "C.QtWidgets",
    "category": "D.ApplicationQt",
    "trDescription": "Creates a Qt application for the desktop. Includes a Qt Designer-based main window.\n\nPreselects a desktop Qt for building the application if available.",
    "trDisplayName": "Qt Widgets Application",
    "trDisplayCategory": "Application (Qt)",
    "icon": "../../global/guiapplication.png",
    "feature
 类似资料: