- Extending Qt Creator Manual
- QtCreator
- ICore
- Extending Qt Creator Manual 13.0.0

# ICore Class

class Core::ICore

The ICore class allows access to the different parts that make up the basic functionality of Qt Creator. More...

Header: | #include <coreplugin/icore.h>

- List of all members, including inherited members

## Public Functions

void | contextAboutToChange(const QList<Core::IContext *> &context)
void | contextChanged(const Core::Context &context)
void | coreAboutToClose()
void | coreOpened()
void | saveSettingsRequested(Core::ICore::SaveSettingsReason reason)

## Detailed Description

You should never create a subclass of this interface. The one and only instance is created by the Core plugin. You can access this instance from your plugin through instance().

## Member Function Documentation

### void ICore::contextAboutToChange(const QList<Core::IContext *> &context)

Indicates that a new context will shortly become the current context (meaning that its widget got focus).

### void ICore::contextChanged(const Core::Context &context)

Indicates that a new context just became the current context. This includes the context from the focus object as well as the additional context.

### void ICore::coreAboutToClose()

Enables plugins to perform some pre-end-of-life actions.

The application is guaranteed to shut down after this signal is emitted. It is there as an addition to the usual plugin lifecycle functions, namely `IPlugin::aboutToShutdown()`, just for convenience.

### void ICore::coreOpened()

Indicates that all plugins have been loaded and the main window is shown.

### void ICore::saveSettingsRequested(Core::ICore::SaveSettingsReason reason)

Signals that the user has requested that the global settings should be saved to disk for a reason.

At the moment that happens when the application is closed, and on Save All.