「Hello GL2」サンプル
「Hello GL2」サンプルは、Qtに付属するOpenGL関連クラスの基本的な使用方法を示しています。

Qt には、標準的なアプリケーションのユーザーインターフェース内で OpenGL グラフィックスをレンダリングできるようにする `QOpenGLWidget ` クラスが用意されています。このクラスをサブクラス化し、イベントハンドラ関数を再実装することで、3D シーンをウィジェット上に表示できるようになります。これらのウィジェットは、レイアウト内に配置したり、シグナルとスロットを使用して他のオブジェクトと接続したり、他のウィジェットと同様に操作したりすることができます。
© 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.