Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个用 Qt 编写的 UI 部分的项目。它有表单文件,我清楚地看到它们是用 Qt Designer 生成的,但是没有 .ui 文件。是否可以从 .cpp 和 .h 文件生成 .ui 文件,以便在 Qt Designer 中修改此表单?
不,这绝对不可能。.cpp 和 .h 文件中的信息不足,无法生成 .ui 文件。
看看 QFormBuilder::save()
“save() 处理将 UI 格式的小部件详细信息保存到任意 QIODevices。”