En esta página

Qt3DRender::QScissorTest Class

class Qt3DRender::QScissorTest

La clase QScissorTest descarta los fragmentos que quedan fuera de una determinada zona rectangular de la pantalla. Más información...

Encabezado: #include <qscissortest.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
En QML: ScissorTest
Heredan de: Qt3DRender::QRenderState
Estado: Obsoleta

Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.

Propiedades

Funciones públicas

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

Ranuras públicas

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

Señales

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

Descripción detallada

La clase QScissorTest permite realizar la prueba de tijera, que descarta los fragmentos situados fuera del área rectangular de la pantalla especificada por las propiedades «left», «bottom», «width» y «height».

Documentación de las propiedades

bottom : int

Almacena la coordenada inferior del rectángulo de tijera.

Funciones de acceso:

int bottom() const
void setBottom(int bottom)

Señal de notificación:

void bottomChanged(int bottom)

height : int

Mantiene la altura de la caja de tijera.

Funciones de acceso:

int height() const
void setHeight(int height)

Señal de aviso:

void heightChanged(int height)

left : int

Almacena la coordenada izquierda del rectángulo en forma de tijera.

Funciones de acceso:

int left() const
void setLeft(int left)

Señal de notificación:

void leftChanged(int left)

width : int

Indica la anchura de la caja de tijeras.

Funciones de acceso:

int width() const
void setWidth(int width)

Señal de notificación:

void widthChanged(int width)

Documentación de funciones de miembro

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

El constructor crea una nueva instancia de ` QScissorTest::QScissorTest ` con los valores especificados 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.