QFirstPersonCameraController Class

class Qt3DExtras::QFirstPersonCameraController

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective. More...

Header: #include <QFirstPersonCameraController>
qmake: QT += 3dextras
Since: Qt 5.7
Inherits: Qt3DExtras::QAbstractCameraController

This class was introduced in Qt 5.7.

Detailed Description

The controls are:

InputAction
Left mouse buttonWhile the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheelZooms the camera in and out without changing the view center.
Shift keyTurns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
Arrow keysMove the camera horizontally relative to camera viewport.
Page up and page down keysMove the camera vertically relative to camera viewport.
EscapeMoves the camera so that entire scene is visible in the camera viewport.