![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ecvApplicationBase.h>


Public Member Functions | |
| ecvApplicationBase (int &argc, char **argv, bool isCommandLine, const QString &version) | |
| bool | isCommandLine () const |
| QString | versionStr () const |
| QString | versionLongStr (bool includeOS) const |
| const QString & | translationPath () const |
| bool | setAppStyle (const QString &styleKey) |
| Set the application style. More... | |
Public Member Functions inherited from QApplication | |
| QApplication (int argc, char **argv) | |
Static Public Member Functions | |
| static void | InitOpenGL () |
Definition at line 35 of file ecvApplicationBase.h.
| ecvApplicationBase::ecvApplicationBase | ( | int & | argc, |
| char ** | argv, | ||
| bool | isCommandLine, | ||
| const QString & | version | ||
| ) |
Definition at line 88 of file ecvApplicationBase.cpp.
References ecvPS::AppStyle(), ccPluginManager::get(), ccTranslationManager::get(), ccTranslationManager::loadTranslations(), ccTranslationManager::registerTranslatorFile(), ccMaterial::ReleaseTextures(), and ccPluginManager::setPaths().
|
static |
This must be called before instantiating the application class so it can setup OpenGL first.
Calling QSurfaceFormat::setDefaultFormat() before constructing the QApplication instance is mandatory on some platforms (for example, OS X) when an OpenGL core profile context is requested. This is to ensure that resource sharing between contexts stays functional as all internal contexts are created using the correct version and profile.
Definition at line 40 of file ecvApplicationBase.cpp.
References format.
Referenced by main().
|
inline |
Definition at line 46 of file ecvApplicationBase.h.
| bool ecvApplicationBase::setAppStyle | ( | const QString & | styleKey | ) |
Set the application style.
| styleKey | Style name (from QStyleFactory::keys() or custom like "QDarkStyleSheet::Dark") |
Supported style keys:
On macOS, the native "macintosh" or "macOS" style is used by default if available, providing native macOS appearance.
Definition at line 302 of file ecvApplicationBase.cpp.
References ecvPS::AppStyle(), CVLog::Print(), ecvSettingManager::setValue(), and CVLog::Warning().
| const QString & ecvApplicationBase::translationPath | ( | ) | const |
Definition at line 205 of file ecvApplicationBase.cpp.
| QString ecvApplicationBase::versionLongStr | ( | bool | includeOS | ) | const |
Definition at line 172 of file ecvApplicationBase.cpp.
| QString ecvApplicationBase::versionStr | ( | ) | const |
Definition at line 170 of file ecvApplicationBase.cpp.
Referenced by ecvApplication::ecvApplication().