27#include <QCoreApplication>
66 const bool qtconfExists = QFile::exists(
"qt.conf");
67 if ( qApp || qtconfExists )
78 QCoreApplication::addLibraryPath( QString(pluginPath.
getString()) );
83 QCoreApplication::addLibraryPath( QString(path.getString()) );
92 return qtPlatformsPath;
106 if (widget ==
nullptr || widget->windowHandle() ==
nullptr)
109 return static_cast<float>( widget->devicePixelRatio() );
static SbString getDirName(const SbString &fullFilePath)
Returns the directory path part of a full path string.
static SbBool isAccessible(const SbString &filename, FileAccess mode=READ)
Returns TRUE if a file is accessible
static SbString toUnixPath(const SbString &path)
Converts a Microsoft Windows path (with '\') to a Unix path (with '/').
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Utilities class ...
static void addPlatformPluginsPath(SbString path="")
When a Qt5 application is run, Qt will first treat the application's executable directory as the base...
static SbString qtPluginsPath()
static float getDevicePixelRatio(QWidget *widget)
Return pixel ratio of the widget.
Class for smart character strings.
SoNONUNICODE const char * getString() const
Returns pointer to the character string.
static SbString getLibraryFromSymbol(void *symbol)
Returns the full path of the library that contains the given symbol.
static SoNONUNICODE const SbString & getString(const char *name, const SbString &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment.