![]() |
VR-Vantage 3.0 API Documentation
|
The DtDe needs to be ticked regularly by an event loop.
We provide a default event loop, DtEventLoop, which you can customize by passing it a function pointer to your own event loop function. Use this method for applications that do not use the VR-Vantage Qt plug-ins.
Qt requires you to use a Qt event loop. Therefore, if you are using one of the Qt plug-ins, it is impossible to use the DtEventLoop as your main event loop. Since the DtVrvApplication calls whichever DtEventLoop is registered with the DtDe, in order to use Qt and DtVrvApplication together you must create a DtEventLoop class that calls QApplication::exec() in its run function, and also make sure that the Qt event loop ticks the DtDe regularly, for instance with a QTimer. The DtQtEventLoop class installed by the vrvQtWidgets library does this with DtQtDeTicker. You can implement your own Qt event loop by subclassing QEventLoop. Please see the Qt documentation for more information about how to do this.
[<< Standalone Dialog Boxes] [Home] [Runtime Settings >>]