Nesta página

RenderSurfaceSelector QML Type

Oferece uma maneira de especificar a superfície de renderização. Mais...

Import Statement: import Qt3D.Render 2.12
In C++: QRenderSurfaceSelector
Inherits:

FrameGraphNode

Status: Deprecated

Esse tipo está obsoleto. Recomendamos enfaticamente que não seja usado em códigos novos.

Propriedades

Descrição detalhada

O `RenderSurfaceSelector` pode ser usado para selecionar a superfície na qual o Qt3D renderiza o conteúdo. A superfície pode ser uma superfície de janela ou uma superfície fora da tela. O ` externalRenderTargetSize ` é usado para especificar o tamanho real do destino de renderização quando se utiliza uma superfície fora da tela.

Quando o sistema utiliza o redimensionamento por DPI, o tamanho lógico da superfície — utilizado pelos eventos do mouse — e o tamanho “físico” real da superfície podem diferir. O surfacePixelRatio é o fator de conversão do tamanho lógico para o tamanho físico.

Documentação da propriedade

externalRenderTargetSize : size

Armazena o tamanho do destino de renderização externo.

surface : QSurface

Aderir à superfície.

surfacePixelRatio : real

Armazena o valor de surfacePixelRatio da superfície.

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