このページでは

Qt3DExtras::QFirstPersonCameraController Class

class Qt3DExtras::QFirstPersonCameraController

QFirstPersonCameraController クラスを使用すると、一人称視点からシーンのカメラを制御することができます。詳細...

ヘッダー: #include <qfirstpersoncameracontroller.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
継承元: Qt3DExtras::QAbstractCameraController
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

詳細な説明

コントロールは以下の通りです:

入力アクション
マウスの左ボタンマウスの左ボタンを押している間、x軸方向へのマウス移動でカメラをパンし、y軸方向への移動でカメラをチルトします。
マウスのスクロールホイールビューの中心位置を変えずに、カメラをズームインおよびズームアウトします。
Shiftキー押している間、微調整モードが有効になります。これにより、マウスのパンおよびチルトの感度が下がります。
矢印キーカメラのビューポートを基準に、カメラを水平方向に移動します。
Page Up キーおよび Page Down キーカメラのビューポートを基準に、カメラを垂直方向に移動します。
Escシーン全体がカメラのビューポートに収まるようにカメラを移動します。

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