QHelpEngineCore Class

The QHelpEngineCore class provides the core functionality of the help system. More...

Header: #include <QHelpEngineCore>
qmake: QT += help
Since: Qt 4.4
Inherits: QObject
Inherited By:

QHelpEngine

This class was introduced in Qt 4.4.

Properties

Public Functions

bool autoSaveFilter() const
QString collectionFile() const
void setAutoSaveFilter(bool save)
void setCollectionFile(const QString &fileName)

Detailed Description

Before the help engine can be used, it must be initialized by calling setupData(). At the beginning of the setup process the signal setupStarted() is emitted. From this point on until the signal setupFinished() is emitted, is the help data in an undefined meaning unusable state.

The core help engine can be used to perform different tasks. By calling documentsForIdentifier() the engine returns URLs specifying the file locations inside the help system. The actual file data can then be retrived by calling fileData().

The help engine can contain any number of custom filters. The management of the filters, including adding new filters, changing filter definitions, or removing existing filters, is done through the QHelpFilterEngine class, which can be accessed by the filterEngine() method.

Note: QHelpFilterEngine replaces the older filter API that is deprecated since Qt 5.13. Call setUsesFilterEngine() with true to enable the new functionality.

The help engine also offers the possibility to set and read values in a persistent way comparable to ini files or Windows registry entries. For more information see setValue() or value().

This class does not offer any GUI components or functionality for indices or contents. If you need one of those use QHelpEngine instead.

When creating a custom help viewer the viewer can be configured by writing a custom collection file which could contain various keywords to be used to configure the help engine. These keywords and values and their meaning can be found in the help information for creating a custom help collection file for Assistant.

Property Documentation

autoSaveFilter : bool

This property holds whether QHelpEngineCore is in auto save filter mode or not.

If QHelpEngineCore is in auto save filter mode, the current filter is automatically saved when it is changed by the QHelpFilterEngine::setActiveFilter() function. The filter is saved persistently in the help collection file.

By default, this mode is on.

This property was introduced in Qt 4.5.

Access functions:

bool autoSaveFilter() const
void setAutoSaveFilter(bool save)

collectionFile : QString

This property holds the absolute file name of the collection file currently used.

Setting this property leaves the help engine in an invalid state. It is important to invoke setupData() or any getter function in order to setup the help engine again.

This property was introduced in Qt 4.5.

Access functions:

QString collectionFile() const
void setCollectionFile(const QString &fileName)