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++)に渡すか、またはQQuickView (QML)のウィンドウフォーマットとして設定してから、show() を呼び出してください。

たとえば、C++ アプリケーションでアンチエイリアシングを無効にするには:

#include <QtGraphs/qutils.h>

// ...

QSurfaceFormat::setDefaultFormat(qDefaultSurfaceFormat(true));

例えば、QMLアプリケーションでダイレクトレンダリングモードのアンチエイリアシングを有効にするには:

#include <QtGraphs/qutils.h>

// ...

QQuickView viewer;
viewer.setFormat(qDefaultSurfaceFormat(true));

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