Obsolete Members for QtGraphs3D
クラスQtGraphs3D の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
関数
(deprecated in 6.9) QSurfaceFormat | qDefaultSurfaceFormat(bool antialias) |
関数のドキュメント
[deprecated in 6.9]
QSurfaceFormat qDefaultSurfaceFormat(bool antialias)
この関数は6.9から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
QQuick3D::idealSurfaceFormat() を使用する
この便利な関数は、Qt Graphs グラフで使用するのに適したカスタムサーフェスフォーマットを作成するために使用できます。
antialias パラメータは、アンチエイリアスを有効にするかどうかを指定します。
この関数が返すサーフェスフォーマットをグラフのコンストラクタ(C++)に与えるか、show()
を呼び出す前に、QQuickView (QML)のウィンドウフォーマットとして設定してください。
例えば、C++アプリケーションでアンチエイリアスを無効にします:
#include <QtGraphs/qutils.h> // ... QSurfaceFormat::setDefaultFormat(qDefaultSurfaceFormat(true));
例えば、QMLアプリケーションのダイレクトレンダリングモードでアンチエイリアスを有効にします:
#include <QtGraphs/qutils.h> // ... QQuickView viewer; viewer.setFormat(qDefaultSurfaceFormat(true));
© 2025 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.