ImagingTools Core SDK
List of all members
imtqml::CStaticQmlModuleRegistratorComp

This component registers dummy Qt modules in order to ensure QML compatibility with Qt5 and Qt6 applications simultaneously for QQmlEngine. More...

#include <CStaticQmlModuleRegistratorComp.h>

Inherits icomp::CComponentBase.

Detailed Description

This component registers dummy Qt modules in order to ensure QML compatibility with Qt5 and Qt6 applications simultaneously for QQmlEngine.

Registers the following types: For Qt6 and newer QtGraphicalEffects.1.12 QtGraphicalEffects.1.0 QtQuick.Dialogs.1.3 For Qt versions below 6.0 QtQuick.Dialogs.6.2 Qt5Compat.GraphicalEffects.6.0

Note
It is not appropriate to create multiple instances. Modules will be initialized only after first instance of this component has been created.
This component MUST be initialized before application loop will starts. I.e. BEFORE qApp->exec();
If you using iqtgui:CApplicationCompBase you MUST add this component to ComponentsToPreInitialize property

Definition at line 28 of file CStaticQmlModuleRegistratorComp.h.