Qt3DRender::QGraphicsApiFilter Class
class Qt3DRender::QGraphicsApiFilterDie Klasse „QGraphicsApiFilter“ gibt die API an, die für den angehängten „ QTechnique “ erforderlich ist. Mehr...
| Header: | #include <qgraphicsapifilter.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | GraphicsApiFilter |
| Erbt von: | QObject |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Öffentliche Typen
| enum | Api { OpenGLES, OpenGL, Vulkan, DirectX, RHI } |
| enum | OpenGLProfile { NoProfile, CoreProfile, CompatibilityProfile } |
Eigenschaften
|
|
Öffentliche Funktionen
| QGraphicsApiFilter(QObject *parent = nullptr) | |
| Qt3DRender::QGraphicsApiFilter::Api | api() const |
| QStringList | extensions() const |
| int | majorVersion() const |
| int | minorVersion() const |
| Qt3DRender::QGraphicsApiFilter::OpenGLProfile | profile() const |
| QString | vendor() const |
Öffentliche Slots
| void | setApi(Qt3DRender::QGraphicsApiFilter::Api api) |
| void | setExtensions(const QStringList &extensions) |
| void | setMajorVersion(int majorVersion) |
| void | setMinorVersion(int minorVersion) |
| void | setProfile(Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile) |
| void | setVendor(const QString &vendor) |
Signale
| void | apiChanged(Qt3DRender::QGraphicsApiFilter::Api api) |
| void | extensionsChanged(const QStringList &extensions) |
| void | graphicsApiFilterChanged() |
| void | majorVersionChanged(int majorVersion) |
| void | minorVersionChanged(int minorVersion) |
| void | profileChanged(Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile) |
| void | vendorChanged(const QString &vendor) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample) |
| bool | operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample) |
Dokumentation zum Mitgliedstyp
enum QGraphicsApiFilter::Api
| Konstante | Wert | Beschreibung |
|---|---|---|
Qt3DRender::QGraphicsApiFilter::OpenGLES | QSurfaceFormat::OpenGLES | QSurfaceFormat::OpenGLES |
Qt3DRender::QGraphicsApiFilter::OpenGL | QSurfaceFormat::OpenGL | QSurfaceFormat::OpenGL |
Qt3DRender::QGraphicsApiFilter::Vulkan | 3 | Vulkan |
Qt3DRender::QGraphicsApiFilter::DirectX | 4 | DirectX |
Qt3DRender::QGraphicsApiFilter::RHI | 5 | RHI |
enum QGraphicsApiFilter::OpenGLProfile
Diese Enumeration gibt den Typ des benötigten Profils an.
| Konstante | Wert | Beschreibung |
|---|---|---|
Qt3DRender::QGraphicsApiFilter::NoProfile | QSurfaceFormat::NoProfile | QSurfaceFormat::NoProfile |
Qt3DRender::QGraphicsApiFilter::CoreProfile | QSurfaceFormat::CoreProfile | QSurfaceFormat::CoreProfile |
Qt3DRender::QGraphicsApiFilter::CompatibilityProfile | QSurfaceFormat::CompatibilityProfile | QSurfaceFormat::CompatibilityProfile |
Eigenschaftsdokumentation
api : Qt3DRender::QGraphicsApiFilter::Api
Zugriffsfunktionen:
| Qt3DRender::QGraphicsApiFilter::Api | api() const |
| void | setApi(Qt3DRender::QGraphicsApiFilter::Api api) |
Signalgeber:
| void | apiChanged(Qt3DRender::QGraphicsApiFilter::Api api) |
extensions : QStringList
Zugriffsfunktionen:
| QStringList | extensions() const |
| void | setExtensions(const QStringList &extensions) |
Benachrichtigungssignal:
| void | extensionsChanged(const QStringList &extensions) |
majorVersion : int
Zugriffsfunktionen:
| int | majorVersion() const |
| void | setMajorVersion(int majorVersion) |
Benachrichtigungssignal:
| void | majorVersionChanged(int majorVersion) |
minorVersion : int
Zugriffsfunktionen:
| int | minorVersion() const |
| void | setMinorVersion(int minorVersion) |
Benachrichtigungssignal:
| void | minorVersionChanged(int minorVersion) |
profile : Qt3DRender::QGraphicsApiFilter::OpenGLProfile
Zugriffsfunktionen:
| Qt3DRender::QGraphicsApiFilter::OpenGLProfile | profile() const |
| void | setProfile(Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile) |
Benachrichtigungssignal:
| void | profileChanged(Qt3DRender::QGraphicsApiFilter::OpenGLProfile profile) |
vendor : QString
Zugriffsfunktionen:
| QString | vendor() const |
| void | setVendor(const QString &vendor) |
Benachrichtigungssignal:
| void | vendorChanged(const QString &vendor) |
Dokumentation der Member-Funktionen
[explicit] QGraphicsApiFilter::QGraphicsApiFilter(QObject *parent = nullptr)
Erstellt einen neuen `QGraphicsApiFilter` mit dem angegebenen ` parent`.
[signal] void QGraphicsApiFilter::graphicsApiFilterChanged()
Dieses Signal wird ausgelöst, wenn sich der Wert einer beliebigen Eigenschaft ändert.
Verwandte Nicht-Mitglieder
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Gibt „ true “ zurück, wenn „ reference “ und „ sample “ unterschiedlich sind.
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Gibt „ true “ zurück, wenn „ reference “ und „ sample “ gleich sind.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.