Toolbox Qt
|
Class containing multiple helpful methods that can be used in QML. More...
Public Member Functions | |
QmlHelper (QObject *parent=nullptr) | |
Q_INVOKABLE bool | qtVersionCheck (int major, int minor, int patch) const |
Use to verify Qt version. | |
Class containing multiple helpful methods that can be used in QML.
This class group multiple methods that we can use inside QML files.
In order to use it, this class must be exposed to QML context property:
bool tbq::QmlHelper::qtVersionCheck | ( | int | major, |
int | minor, | ||
int | patch | ||
) | const |
Use to verify Qt version.
Can be used to dynamically manage function compatibilities:
[in] | major | Major version to check |
[in] | minor | Minor version to check |
[in] | patch | Patch version to check |
true
if Qt version is superior or equal to argument version