1

问候。目前,我在 OS X 10.5 中使用 Eclipse (Galileo) 和 CDT 和 Boost 库。我已经开始了学习 Qt 的冒险,我已经安装了免费版的 Qt SDK。我已经习惯了 Eclipse,但不幸的是,还没有为 OS X 中的 Eclipse 开发集成。

因此,我的问题是我是否可以设置 Qt Creator 为我的头文件和源文件加载模板文件(例如,头文件中的 Doxygen 注释和源文件中的 C++ 注释)。在 Eclipse 中,我可以在 Preferences > C/C++ > Code Styles > Code templates 中完成此操作。

谢谢。

4

2 回答 2

1

在最新版本的 Qt Creator 中,您可以在选项(OS X 上的首选项)-> C++ -> 许可证模板中添加标题(即用于许可证和版权声明)。您还可以修改项目的某些 Qt 特定方面,例如如何集成 UI 文件(选项 -> 设计器)。需要更复杂的设置(请参阅https://bugreports.qt.io/browse/QTCREATORBUG-126),但尚未实现。

于 2010-01-16T18:25:23.373 回答
0

I believe you because Qt Creator 1.3 touted the idea, but whenever I load the preferences, I do not see License Template available. I have downloaded Qt Creator at various times and even attempted to compile it from source code, but I still have not found this option. I might be overlooking the option (perhaps in a different menu location), but I certainly have not found it where you suggested.

EDIT I may have found the option. I assumed it was a separate subsection under C++, but it is actually a line edit box accepting a filename. Thanks for your help.

于 2010-01-19T18:24:52.257 回答