En esta página

Qt3DRender::QLevelOfDetailSwitch Class

class Qt3DRender::QLevelOfDetailSwitch

Proporciona una forma de habilitar entidades hijo en función de la distancia o el tamaño de la pantalla. Más...

Cabecera: #include <QLevelOfDetailSwitch>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
En QML: LevelOfDetailSwitch
Hereda: Qt3DRender::QLevelOfDetail
Status: Obsoleto

Funciones Públicas

QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

Descripción detallada

Este componente se asigna a una entidad. Cuando la entidad cambia de distancia respecto a la cámara, el QLevelOfDetailSwitch desactivará todas las entidades hijas excepto la que coincida con el índice Qt3DRender::QLevelOfDetailSwitch::currentIndex.

Documentación de la Función Miembro

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

Construye un nuevo QLevelOfDetailSwitch con el parent especificado.

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