Sur cette page

QRhiNullInitParams Struct

Paramètres d'initialisation spécifiques au backend nuls. En savoir plus...

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 de : QRhiInitParams

Description détaillée

Remarque : il s'agit d'une API RHI dont la compatibilité n'est pas entièrement garantie ; voir QRhi pour plus de détails.

Un QRhi de type Null ne nécessite aucun paramètre particulier pour son 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 d'QRhi s'exécuteront normalement ; les applications pourront donc toujours fonctionner, bien qu'éventuellement à une vitesse non limité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.