Nesta página

Qt3DRender::QScissorTest Class

class Qt3DRender::QScissorTest

A classe QScissorTest descarta os fragmentos que ficam fora de uma determinada área retangular da tela. Mais...

Cabeçalho: #include <qscissortest.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
No QML: ScissorTest
Herdado de: Qt3DRender::QRenderState
Status: Obsoleta

Esta classe está obsoleta. Recomendamos enfaticamente que não seja usada em códigos novos.

Propriedades

Funções públicas

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

Slots públicos

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

Sinais

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

Descrição detalhada

A classe QScissorTest permite realizar o teste de tesoura, que descarta fragmentos fora da área retangular da tela especificada pelas propriedades esquerda, inferior, largura e altura.

Documentação das propriedades

bottom : int

Armazena a coordenada inferior da caixa em forma de tesoura.

Funções de acesso:

int bottom() const
void setBottom(int bottom)

Sinal de notificação:

void bottomChanged(int bottom)

height : int

Determina a altura da caixa em tesoura.

Funções de acesso:

int height() const
void setHeight(int height)

Sinal de notificação:

void heightChanged(int height)

left : int

Armazena a coordenada esquerda da caixa em forma de tesoura.

Funções de acesso:

int left() const
void setLeft(int left)

Sinal de notificação:

void leftChanged(int left)

width : int

Indica a largura da caixa de tesoura.

Funções de acesso:

int width() const
void setWidth(int width)

Sinal de notificação:

void widthChanged(int width)

Documentação das funções-membro

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

O construtor cria uma nova instância de ` QScissorTest::QScissorTest ` com os parâmetros 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.