Qt Graphs Integração com o Qt Quick 3D
Como o “ Qt Graphs for 3D” é baseado no “ Qt Quick 3D”, é possível integrar cenas 3D do “ Qt Quick ” aos gráficos.

Ambiente da cena
Para ajustar o ambiente de uma cena do Qt Quick 3D em um gráfico, defina o SceneEnvironment ou o ExtendedSceneEnvironment na propriedade environment do gráfico, conforme descrito a seguir:
environment: ExtendedSceneEnvironment {
aoEnabled: true
aoDither: true
ditheringEnabled: true
lightProbe: Texture {
textureData: ProceduralSkyTextureData {
groundBottomColor: "black"
skyTopColor: "white"
}
}
backgroundMode: SceneEnvironment.SkyBox
lensFlareEnabled: true
lensFlareGhostCount: 10
lensFlareApplyStarburstTexture: true
lensFlareBloomBias: 0.4
}Recursos não suportados
A substituição do modo de antialiasing ou da cor de limpeza da cena não funciona, o que significa que definir valores para ` SceneEnvironment.antialiasingMode ` e ` SceneEnvironment.clearColor ` não produz efeito. No entanto, se ` backgroundMode ` não estiver definido como ` SceneEnvironment.Color`, o plano de fundo será afetado pelas configurações.
Integração da cena
Para integrar uma cena 3D do Qt Quick a um gráfico, defina a propriedade importScene do gráfico como um Node com as seguintes configurações:
importScene: Node {
Model {
scale: Qt.vector3d(0.01, 0.01, 0.01)
source: "#Sphere"
x: 2.5
z: 2
y: 1
castsReflections: false
receivesReflections: true
materials: [
PrincipledMaterial {
baseColor: "gold"
metalness: 1.0
roughness: 0.1
}
]
ReflectionProbe {
boxSize: Qt.vector3d(6, 3, 5)
boxOffset: Qt.vector3d(-1.5, -1, -1.5)
parallaxCorrection: true
quality: ReflectionProbe.High
}
}
Model {
scale: Qt.vector3d(0.01, 0.01, 0.01)
source: "#Sphere"
x: -2.5
z: -2
y: 1
castsReflections: false
receivesReflections: true
materials: [
PrincipledMaterial {
baseColor: "white"
metalness: 0.0
roughness: 0.0
transmissionFactor: 1.0
thicknessFactor: 50
}
]
}
}Adicionar Nodes diretamente como filhos do gráfico não funcionará, pois o filho padrão de um gráfico é a série correspondente.
© 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.