1.0 class
HQApplication
This class is derived from QMainWindow and adds functionality for managing
multiple instances of itself and the creation of the Qt GUI structure for each
instance. It is used in the HOOPS/Qt Reference Applications. The HQApplication
source code can be used as a reference template when building HOOPS/Qt applications.
2.0 class
HQDeleter
This class provides a mechanism for safely deleting the "this" pointer within
a Qt Slot method. If the "this" pointer is deleted directly within a Slot method
it will lead to a segmentation fault as the Qt Signal/Slot processor unwinds
itself from the point where that particular Slot method was called. One solution
is to defer the deletion of the "this" pointer until the Signal/Slot processing
has completely finished, or unwound itself. The HQDeleter class implements this
solution.
3.0 class
HQWidget
This class connects the HOOPS 3D
Graphics System to the Qt
Toolkit. The class is derived from the Qt class QWidget
and adds the functionality to:
- Find the QWidget's window id and optimally configure associated windowing
system resources, such as X11 Visuals & colormaps or MS Windows color
palettes, prior to passing the information to HOOPS
- Ensure the widget responds correctly to Windows System events "Paint"
and "Resize"
- Override the QWidget's Mouse and Key events and pass the events to the
appropriate HOOPS/MVO View's current Operator methods
This class serves as a base HOOPS/Qt widget class and should be sub-classed
to create an application specific derivation to add custom Qt menus.The HOOPS/Qt
Reference Applications use this approach and should be used as a reference guide.(See
the class MyHQWidget)
4.0 class MyHQWidget
This class is derived from the HOOPS/Qt class HQWidget and adds functionality
for initializing the HOOPS/MVO objects as well as creating any application specific
Qt GUI widgets. It then connects these GUI widgets to the HOOPS/MVO View
methods. It also provides a Qt Popup menu connected to the HQWidget's RightMouseEvents.
It is part of the HOOPS/Qt Reference Application and developers can use this
a reference template when building HOOPS/Qt applications.