![]() |
VR-Forces Developer's Guide
|
This class provides a way of getting the QApplication for a DisplayEngine.

Public Member Functions | |
| virtual | ~DtQApplicationProvider () |
| QApplication * | qAppInstance () |
| virtual void | setQAppInstance (QApplication *app) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtQApplicationProvider & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtQApplicationProvider *instance) |
| static void | setRendererThreadingModel (DtRendererThreadingModel hint) |
Protected Member Functions | |
| DtQApplicationProvider (DtDe &de) | |
| virtual void | installEventListener () |
| virtual void | installTranslators () |
| virtual void | installFont () |
Static Protected Member Functions | |
| static bool | customControlFilter (void *message, long *result) |
Protected Attributes | |
| DtDe & | myDe |
| QApplication * | myQApp |
| int | argc |
| char ** | argv |
| bool | myDestroyQApp |
| std::vector< QTranslator * > | myTranslators |
Static Protected Attributes | |
| static DtRendererThreadingModel | theRendererThreadingModel |
|
virtual |
Virtual Destructor.
|
protected |
Constructor, use the instance function to.
|
static |
Get the instance of a DtQApplicationProvider.
|
static |
Register the provider with a DtDe.
| QApplication* makVrv::DtQApplicationProvider::qAppInstance | ( | ) |
Return a QApplication* creating one if it doesn't exist. If a QApplication is created, it will be destroyed when this provider is destroyed (at the end of the lifetime of the DtDe instance that created it).
|
virtual |
User override of qApp.
|
static |
This is needed to set context affinity attribute on QApplication. This is so that we can make current a widget in a thread different than the one the widget was created in.
|
protectedvirtual |
On MS Windows this call installs a low level event listener. If this is not desired behavior subclass and override this function to be a NO-OP.
|
protectedvirtual |
Install translators from the languages install directory. All installed translators MUST be added to the myTranslators member so they are properly removed and deallocated during destruction.
|
protectedvirtual |
Installs the system wide font. By default uses the font found in the font manager.
|
staticprotected |
NOTE: non-reentrant.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |