Qt3DWindow Class

(Qt3DExtras::Qt3DWindow)
Inherits: QWindow

Public Functions

Qt3DRender::QFrameGraphNode *activeFrameGraph() const
Qt3DExtras::QForwardRenderer *defaultFrameGraph() const
void registerAspect(Qt3DCore::QAbstractAspect *aspect)
void registerAspect(const QString &name)
Qt3DRender::QRenderSettings *renderSettings() const
void setActiveFrameGraph(Qt3DRender::QFrameGraphNode *activeFrameGraph)
void setRootEntity(Qt3DCore::QEntity *root)

Reimplemented Protected Functions

virtual bool event(QEvent *e) override
virtual void resizeEvent(QResizeEvent *) override
virtual void showEvent(QShowEvent *e) override

Member Function Documentation

Qt3DRender::QFrameGraphNode *Qt3DWindow::activeFrameGraph() const

Returns the node of the active frame graph.

See also setActiveFrameGraph().

Qt3DExtras::QForwardRenderer *Qt3DWindow::defaultFrameGraph() const

Returns the node of the default framegraph

[override virtual protected] bool Qt3DWindow::event(QEvent *e)

Reimplemented from QWindow::event().

Requests renderer to redraw if we are using OnDemand render policy.

void Qt3DWindow::registerAspect(Qt3DCore::QAbstractAspect *aspect)

Registers the specified aspect.

void Qt3DWindow::registerAspect(const QString &name)

Registers the specified aspect name.

Qt3DRender::QRenderSettings *Qt3DWindow::renderSettings() const

Returns the render settings of the 3D Window.

[override virtual protected] void Qt3DWindow::resizeEvent(QResizeEvent *)

Reimplemented from QWindow::resizeEvent().

Resets the aspect ratio of the 3D window.

void Qt3DWindow::setActiveFrameGraph(Qt3DRender::QFrameGraphNode *activeFrameGraph)

Activates the specified activeFrameGraph.

See also activeFrameGraph().

void Qt3DWindow::setRootEntity(Qt3DCore::QEntity *root)

Sets the specified root entity of the scene.

[override virtual protected] void Qt3DWindow::showEvent(QShowEvent *e)

Reimplemented from QWindow::showEvent().

Manages the display events specified in e.

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