Hello GL2 の例

Hello GL2の例では、Qtで提供されているOpenGL関連クラスの基本的な使い方を示します。

Qtは、OpenGLグラフィックスを標準アプリケーションのユーザーインターフェースの中でレンダリングできるようにするために、QOpenGLWidget クラスを提供しています。このクラスをサブクラス化し、イベントハンドラ関数の再実装を提供することで、3Dシーンをウィジェットに表示することができます。ウィジェットはレイアウトに配置したり、シグナルやスロットを使って他のオブジェクトに接続したり、他のウィジェットのように操作することができます。

プロジェクト例 @ code.qt.io

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