Sur cette page

Qt3DRender::QScissorTest Class

class Qt3DRender::QScissorTest

La classe QScissorTest élimine les fragments qui se trouvent en dehors d'une certaine zone rectangulaire de l'écran. En savoir plus...

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

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

Propriétés

Fonctions publiques

QScissorTest(Qt3DCore::QNode *parent = nullptr)
int bottom() const
int height() const
int left() const
int width() const

Emplacements publics

void setBottom(int bottom)
void setHeight(int height)
void setLeft(int left)
void setWidth(int width)

Signaux

void bottomChanged(int bottom)
void heightChanged(int height)
void leftChanged(int left)
void widthChanged(int width)

Description détaillée

La classe QScissorTest permet d'effectuer un test « scissor », qui élimine les fragments situés en dehors de la zone rectangulaire de l'écran définie par les propriétés left, bottom, width et height.

Documentation des propriétés

bottom : int

Contient la coordonnée inférieure du cadre en ciseaux.

Fonctions d'accès :

int bottom() const
void setBottom(int bottom)

Signal de notification :

void bottomChanged(int bottom)

height : int

Indique la hauteur du caisson en ciseaux.

Fonctions d'accès :

int height() const
void setHeight(int height)

Signal d'alerte :

void heightChanged(int height)

left : int

Contient la coordonnée gauche de la boîte en ciseaux.

Fonctions d'accès :

int left() const
void setLeft(int left)

Signal de notification :

void leftChanged(int left)

width : int

Indique la largeur du boîtier des ciseaux.

Fonctions d'accès :

int width() const
void setWidth(int width)

Signal de notification :

void widthChanged(int width)

Documentation des fonctions membres

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

Le constructeur crée une nouvelle instance de ` QScissorTest::QScissorTest ` avec les paramètres spécifiés 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.