Utilities class for Qt management. More...
#include <Inventor/ViewerComponents/Qt/QtHelper.h>
Static Public Member Functions | |
static void | addPlatformPluginsPath (QString path="") |
When a Qt5 application is run, Qt will first treat the application's executable directory as the base directory for searching for platform plugins. | |
static QString | qtPluginsPath () |
Returns the path of the Qt storage plugin. | |
Utilities class for Qt management.
Definition at line 41 of file QtHelper.h.
|
inlinestatic |
When a Qt5 application is run, Qt will first treat the application's executable directory as the base directory for searching for platform plugins.
The purpose of this function is to load Qt platform plugins by guessing the Qt platforms path from the Open Inventor binaries path.
The Qt environment variable QT_QPA_PLATFORM_PLUGIN_PATH also enables to specify the platform plugins path. Nevertheless, the use of both this environment variable and the Qt method QCoreApplication::addLibraryPath causes significant load delay.
Qt platform plugins are stored in $OIVHOME/$OIVHARCH/bin/platforms
path | : force the directory for searching for platforms plugins. |
Definition at line 59 of file QtHelper.h.
|
inlinestatic |
Returns the path of the Qt storage plugin.
Used in case of QML to specify the QML's import path
Definition at line 91 of file QtHelper.h.