QQuick3D Class

Helper class for selecting correct surface format. More...

Header: #include <QQuick3D>
Since: Qt 5.15

This class was introduced in Qt 5.15.

Static Public Members

QSurfaceFormat idealSurfaceFormat(int samples = -1)

Detailed Description

Lets you select a surface format that is appropriate for the application.

Usage:

QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4));

Member Function Documentation

[static] QSurfaceFormat QQuick3D::idealSurfaceFormat(int samples = -1)

Returns an ideal surface format for the platform. Optionally, samples can be specified to select the number of multisamples for antialiasing.

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