QNode

QNode is the base class of all Qt3D node classes used to build a Qt3D scene. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QNode

Inherited by: QTechnique, QShaderProgramBuilder, QShaderProgram, QShaderImage, QRenderTargetOutput, QRenderState, QStencilTest, QStencilOperation, QStencilMask, QSeamlessCubemap, QScissorTest, QPolygonOffset, QPointSize, QNoDepthMask, QMultiSampleAntiAliasing, QLineWidth, QFrontFace, QDithering, QDepthTest, QCullFace, QColorMask, QClipPlane, QBlendEquationArguments, QBlendEquation, QAlphaTest, QAlphaCoverage, QRenderPass, QPickingSettings, QParameter, QFrameGraphNode, QWaitFence, QViewport, QTechniqueFilter, QForwardRenderer, QSortPolicy, QSetFence, QRenderTargetSelector, QRenderSurfaceSelector, QRenderStateSet, QRenderPassFilter, QRenderCapture, QProximityFilter, QNoPicking, QNoDraw, QMemoryBarrier, QLayerFilter, QFrustumCulling, QDispatchCompute, QClearBuffers, QCameraSelector, QBufferCapture, QBlitFramebuffer, QFilterKey, QEffect, QAbstractTextureImage, QTextureImage, QPaintedTextureImage, QAbstractTexture, QTextureRectangle, QTextureLoader, QTextureCubeMapArray, QTextureCubeMap, QTextureBuffer, QTexture3D, QTexture2DMultisampleArray, QTexture2DMultisample, QTexture2DArray, QTexture2D, QTexture1DArray, QTexture1D, QSharedGLTexture, QAxisSetting, QAxis, QAction, QAbstractPhysicalDevice, QMouseDevice, QKeyboardDevice, QAbstractAxisInput, QButtonAxisInput, QAnalogAxisInput, QAbstractActionInput, QInputSequence, QInputChord, QActionInput, QSpriteSheetItem, QAbstractSpriteSheet, QSpriteSheet, QSpriteGrid, QJoint, QGeometryView, QGeometry, QTorusGeometry, QSphereGeometry, QPlaneGeometry, QExtrudedTextGeometry, QCylinderGeometry, QCuboidGeometry, QConeGeometry, QEntity, QCamera, QText2DEntity, QSkyboxEntity, QAbstractCameraController, QOrbitCameraController, QFirstPersonCameraController, QComponent, QShaderData, QSceneLoader, QRenderTarget, QRenderSettings, QObjectPicker, QMaterial, QTextureMaterial, QPhongMaterial, QPhongAlphaMaterial, QPerVertexColorMaterial, QNormalDiffuseSpecularMapMaterial, QNormalDiffuseMapMaterial, QNormalDiffuseMapAlphaMaterial, QMorphPhongMaterial, QMetalRoughMaterial, QGoochMaterial, QDiffuseSpecularMaterial, QDiffuseSpecularMapMaterial, QDiffuseMapMaterial, QLevelOfDetail, QLevelOfDetailSwitch, QLayer, QEnvironmentLight, QComputeCommand, QCameraLens, QAbstractRayCaster, QScreenRayCaster, QRayCaster, QAbstractLight, QSpotLight, QPointLight, QDirectionalLight, QFrameAction, QMouseHandler, QLogicalDevice, QKeyboardHandler, QInputSettings, QAxisAccumulator, QTransform, QBuffer, QBoundingVolume, QGeometryRenderer, QMesh, QTorusMesh, QSphereMesh, QPlaneMesh, QExtrudedTextMesh, QCylinderMesh, QCuboidMesh, QConeMesh, QAttribute, QArmature, QAbstractSkeleton, QSkeletonLoader, QSkeleton, QClock, QChannelMapper, QAbstractClipBlendNode, QLerpClipBlend, QAdditiveClipBlend, QAbstractClipAnimator, QClipAnimator, QBlendedClipAnimator, QAbstractChannelMapping, QSkeletonMapping, QAbstractAnimationClip, QAnimationClipLoader, QAnimationClip

Synopsis

Functions

Detailed Description

The owernship of QNode is determined by the QObject parent/child relationship between nodes. By itself, a QNode has no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.

The parent of a QNode instance can only be another QNode instance.

Each QNode instance has a unique id that allows it to be recognizable from other instances.

When properties are defined on a QNode subclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.

See also

QEntity QComponent

class PySide6.Qt3DCore.Qt3DCore.QNode([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Creates a new QNode instance with parent parent.

Note

The backend aspects will be notified that a QNode instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.

See also

setParent()

PySide6.Qt3DCore.Qt3DCore.QNode.blockNotifications(block)
Parameters

block – bool

Return type

bool

If block is true, property change notifications sent by this object to aspects are blocked. If block is false, no such blocking will occur.

The return value is the previous value of notificationsBlocked() .

Note that the other notification types will be sent even if the notifications for this object have been blocked.

PySide6.Qt3DCore.Qt3DCore.QNode.childNodes()
Return type

Returns a list filled with the QNode children of the current QNode instance.

PySide6.Qt3DCore.Qt3DCore.QNode.enabledChanged(enabled)
Parameters

enabled – bool

PySide6.Qt3DCore.Qt3DCore.QNode.id()
Return type

PySide6.Qt3DCore.Qt3DCore.QNodeId

Returns the id that uniquely identifies the QNode instance.

PySide6.Qt3DCore.Qt3DCore.QNode.isEnabled()
Return type

bool

PySide6.Qt3DCore.Qt3DCore.QNode.nodeDestroyed()

Emitted when the node is destroyed.

PySide6.Qt3DCore.Qt3DCore.QNode.notificationsBlocked()
Return type

bool

Returns true if aspect notifications are blocked; otherwise returns false. By default, notifications are not blocked.

PySide6.Qt3DCore.Qt3DCore.QNode.parentChanged(parent)
Parameters

parentPySide6.QtCore.QObject

PySide6.Qt3DCore.Qt3DCore.QNode.parentNode()
Return type

PySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DCore.Qt3DCore.QNode.setEnabled(isEnabled)
Parameters

isEnabled – bool

See also

isEnabled()

PySide6.Qt3DCore.Qt3DCore.QNode.setParent(parent)
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode