Sur cette page

QRhiNullInitParams Struct

Paramètres d'initialisation nuls spécifiques au backend. Plus d'informations...

En-tête : #include <rhi/qrhi.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake : QT += gui-private
Depuis : Qt 6.6
Hérite : QRhiInitParams

Description détaillée

Note : Il s'agit d'une API RHI avec des garanties de compatibilité limitées, voir QRhi pour plus de détails.

Un Null QRhi n'a besoin d'aucun paramètre spécial pour l'initialisation.

QRhiNullInitParams params;
rhi = QRhi::create(QRhi::Null, &params);

Le backend Null n'émet aucun appel graphique et ne crée aucune ressource. Toutes les opérations QRhi se dérouleront normalement, de sorte que les applications peuvent toujours être exécutées, bien que potentiellement à une vitesse non accélérée, en fonction de leur stratégie de rendu d'images.

© 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.