Sur cette page

Qt3DRender::QLevelOfDetailSwitch Class

class Qt3DRender::QLevelOfDetailSwitch

Permet d'activer les entités enfants en fonction de la distance ou de la taille de l'écran. Plus...

En-tête : #include <QLevelOfDetailSwitch>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake : QT += 3drender
En QML : LevelOfDetailSwitch
Hérite : Qt3DRender::QLevelOfDetail
Statut : Déclassé

Fonctions publiques

QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

Description détaillée

Ce composant est affecté à une entité. Lorsque l'entité change de distance par rapport à la caméra, le QLevelOfDetailSwitch désactive toutes les entités enfants à l'exception de celle qui correspond à l'index Qt3DRender::QLevelOfDetailSwitch::currentIndex.

Documentation des fonctions membres

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

Construit un nouveau QLevelOfDetailSwitch avec l'adresse 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.