以下成員源於類 QtGraphs3D 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated in 6.9)
QSurfaceFormat
|
qDefaultSurfaceFormat (bool antialias ) |
[deprecated in 6.9]
QSurfaceFormat
qDefaultSurfaceFormat
(
bool
antialias
)
This function is deprecated since 6.9. We strongly advise against using it in new code.
使用 QQuick3D::idealSurfaceFormat ()
This convenience function can be used to create a custom surface format suitable for use by Qt Graphs graphs.
The antialias parameter specifies whether or not antialiasing is activated.
Give the surface format returned by this function to the graph constructor (C++) or set it as the window format for
QQuickView
(QML) before calling
show()
on it.
For example, disable antialiasing on C++ application:
#include <QtGraphs/qutils.h> // ... QSurfaceFormat::setDefaultFormat(qDefaultSurfaceFormat(true));
For example, enable antialiasing for direct rendering modes on QML application:
#include <QtGraphs/qutils.h> // ... QQuickView viewer; viewer.setFormat(qDefaultSurfaceFormat(true));