Sur cette page

Qt3DRender::QLevelOfDetailSwitch Class

class Qt3DRender::QLevelOfDetailSwitch

Permet d'activer des entités enfants en fonction de la distance ou de la taille de l'écran. En savoir plus...

En-tête : #include <qlevelofdetailswitch.h>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake : QT += 3drender
En QML : LevelOfDetailSwitch
Hérite de : Qt3DRender::QLevelOfDetail
Statut : Obsolète

Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.

Fonctions publiques

QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

Description détaillée

Ce composant est attribué à une entité. Lorsque la distance entre l'entité et la caméra change, le QLevelOfDetailSwitch désactive toutes les entités enfants, à l'exception de celle correspondant à l'index Qt3DRender::QLevelOfDetailSwitch::currentIndex.

Documentation des fonctions membres

[explicit] QLevelOfDetailSwitch::QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

Crée un nouvel objet `QLevelOfDetailSwitch` avec l'parent` spécifiée.

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