In questa pagina

Qt3DRender::QLevelOfDetailSwitch Class

class Qt3DRender::QLevelOfDetailSwitch

Offre un modo per attivare le entità figlie in base alla distanza o alle dimensioni dello schermo. Maggiori informazioni...

Intestazione: #include <qlevelofdetailswitch.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: LevelOfDetailSwitch
Eredita da: Qt3DRender::QLevelOfDetail
Stato: Obsoleto

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Funzioni pubbliche

QLevelOfDetailSwitch(Qt3DCore::QNode *parent = nullptr)

Descrizione dettagliata

Questo componente è assegnato a un'entità. Quando l'entità cambia distanza rispetto alla telecamera, QLevelOfDetailSwitch disabiliterà tutte le entità figlie tranne quella corrispondente all'indice Qt3DRender::QLevelOfDetailSwitch::currentIndex.

Documentazione delle funzioni membro

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

Crea un nuovo oggetto `QLevelOfDetailSwitch` con il valore specificato per ` parent`.

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