| CMakeLists.txt |
|
1034 |
- |
| examplewidget.cpp |
|
5994 |
- |
| examplewidget.h |
|
1717 |
- |
| main.cpp |
|
3225 |
- |
| rhiwidget.cpp |
!
\class QRhiWidget
\inmodule QtWidgets
\since 6.x
\brief The QRhiWidget class is a widget for rendering 3D graphics via an
accelerated grapics API, such as Vulkan, Metal, or Direct 3D.
QRhiWidget provides functionality for displaying 3D content rendered through
the QRhi APIs within a QWidget-based application.
QRhiWidget is expected to be subclassed. To render into the 2D texture that
is implicitly created and managed by the QRhiWidget, subclasses should
reimplement the virtual functions initialize() and render().
The size of the texture will by default adapt to the size of the item. If a
fixed size is preferred, set an explicit size specified in pixels by
calling setExplicitSize().
The QRhi for the widget's top-level window is configured to use a platform
specific backend and graphics API by default: Metal on macOS and iOS,
Direct 3D 11 on Windows, OpenGL otherwise. Call setApi() to override this.
\note A single widget window can only use one QRhi backend, and so graphics
API. If two QRhiWidget or QQuickWidget widgets in the window's widget
hierarchy request different APIs, only one of them will function correctly.
|
17501 |
- |
| rhiwidget.h |
|
1272 |
- |
| rhiwidget_p.h |
|
912 |
- |