本页内容

C++ API 参考

Qt Creator 的核心基本上仅由plugin loader 构成。所有功能均通过基于C++的插件或基于Lua的扩展实现。Qt Creator 的基础功能由Core插件实现。插件管理器通过为其他插件提供挂钩,使插件之间能够协同工作。

库

核心库

Qt Creator 的许多部分都使用了一些核心库。

库名称描述
Aggregation添加了将不同类型的 QObject 相互关联的功能,从而允许在它们之间进行类型转换。
ExtensionSystem实现了插件加载器框架。为插件提供了一个基类,并提供了插件交互的基本机制,例如对象池。
UtilsQt Creator 代码中许多地方都重复使用的有用类。Layouting 命名空间包含一些类,允许使用声明式风格来构建图形用户界面。

插件

如前所述,Qt Creator 基本上仅是一个插件加载框架,其 IDE 功能通过基于 C++ 的插件和基于 Lua 的扩展实现。最重要的插件是 Core 插件,它提供了后续集成编辑器或模式窗口等所需的所有基本功能。

插件名称描述
Core核心插件。提供主窗口以及编辑器、操作、模式窗口和文件的管理器,这里仅列举其中最重要的几项。

该插件还包含用于挂接Locator 所需的类,并支持在任意控件中搜索文本。

解决方案

Qt Creator 使用的是独立于任何Qt Creator 特定代码的对象库,因此已准备好成为Qt的一部分。

解决方案名称描述
Spinner渲染一个循环、无限动画的进度指示器,可作为叠加层附加到任何小部件上。

参考

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.