Qt6
Description
Full source code is included in the Tinman 3D SDK download. |
This class is the main entry point of the Qt6 integration plugin of the Tinman 3D SDK.
The Qt plugin is available for the C++ version of the Tinman 3D SDK. After including the header file of this class, you can use the custom Qt widget ApplicationControlQt
(use #include "Tinman/Qt6.h"
), which is a regular QOpenGLWidget
:
-
ApplicationControlQt::GetApplicationHost()
Returns the IApplicationControl object to use for setting up an IApplication to run within the Qt widget. The IApplicationControl.ContextFactory property only accepts instances of OpenGLContextFactory and OpenGLESContextFactory. -
ApplicationControlQt::GetApplicationError()
Returns an event that is fired when the IApplication throws an exception.
The IDE projects of the Tinman 3D SDK (Visual Studio, CMake) use the following environment variables to locate the Qt libraries:
-
TINMAN_3D_EXT_QT_HEADERS
For example: c:\Qt\6.9.2\msvc2022_64\include -
TINMAN_3D_EXT_QT_LIBS
For example: c:\Qt\6.9.2\msvc2022_64\lib
This is a simple setup for demonstration only. For real-world production setups, it is preferable to use the standard Qt mechanisms (QtCreator / QMake).
- See also