Creating Plugins

At its very core, Qt Creator consists of a plugin loader that loads and runs a set of plugins, which then actually provide the functionality that you know from Qt Creator the IDE. So, even the main application window and menus are all provided by plugins. Plugins can use different means to provide other plugins access to their functionality and to allow them to extend certain aspects of the application.

For example the Core plugin, which is the very basic plugin that must be present for Qt Creator to run at all, provides the main window itself, and API for adding menu items, modes, editor types, navigation panels and many other things.

The TextEditor plugin provides a framework and base implementation for different text editors with highlighting, completion and folding, that is then used by other plugins to add more specialized text editor types to Qt Creator, like for editing C/C++ or .pro files.

After reading this guide you will know what a basic plugin consists of, how to write a plugin specification file, what the lifecycle of a plugin is, what the general principles for extending existing plugins' functionality and providing interfaces for other plugins are, and will be able to write your first plugin.

Basics

Topics

Design Principles

© 2024 The Qt Company Ltd. 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.