Sur cette page

Qt3DRender::QNoPicking Class

class Qt3DRender::QNoPicking

Lorsqu'un nœud « Qt3DRender::QNoPicking » est présent dans une branche de FrameGraph, cela empêche le module de rendu d'effectuer une sélection par pointage pour la branche concernée. En savoir plus...

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

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

Description détaillée

Lorsqu'il est désactivé, un nœud « Qt3DRender::QNoPicking » n'empêche pas la sélection d'être effectuée. L'activation ou la désactivation de la propriété « enabled » permet donc de rendre un « Qt3DRender::QNoPicking » actif ou inactif.

Lors de l’utilisation de plusieurs sous-fenêtres dans le FrameGraph, QNoPicking peut s’avérer utile pour éviter les conflits de sélection entre des fenêtres qui se chevauchent ou qui ne sont pas visibles. Il peut également être utilisé à des fins d’optimisation afin d’éviter tout travail superflu sur les fenêtres masquées ou sur les parties de la scène ne nécessitant aucune sélection.

Qt3DRender::QViewport *viewport = new Qt3DRender::QViewport();
Qt3DRender::QCameraSelector *cameraSelector = new Qt3DRender::QCameraSelector(viewport);
Qt3DRender::QNoPicking *noPicking = new Qt3DRender::QNoPicking(cameraSelector);

Qt3DRender::QClearBuffers *clearBuffers = new Qt3DRender::QClearBuffers(noPicking);
clearBuffers->setBuffers(Qt3DRender::QClearBuffers::ColorDepthBuffer);

Qt3DRender::QRenderPassFilter *mainPass = new Qt3DRender::QRenderPassFilter(cameraSelector);
....
Qt3DRender::QRenderPassFilter *previewPass = new Qt3DRender::QRenderPassFilter(cameraSelector);
....

Voir également Qt3DRender::QObjectPicker, Qt3DRender::QRayCaster et Qt3DRender::QScreenRayCaster.

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