Qt 5.11 | Qt 3D | C++ Classes | QFirstPersonCameraController

Qt 5.11.3 Reference Documentation

# QFirstPersonCameraController 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

- List of all members, including inherited members

## Public Functions

| QFirstPersonCameraController(Qt3DCore::QNode *parent = nullptr)
virtual | ~QFirstPersonCameraController()

- 10 public functions inherited from Qt3DExtras::QAbstractCameraController
- 4 public functions inherited from Qt3DCore::QEntity
- 13 public functions inherited from Qt3DCore::QNode

### Additional Inherited Members

- 5 properties inherited from Qt3DExtras::QAbstractCameraController
- 3 properties inherited from Qt3DCore::QNode
- 3 public slots inherited from Qt3DCore::QNode
- 5 signals inherited from Qt3DExtras::QAbstractCameraController
- 4 signals inherited from Qt3DCore::QNode
- 2 protected functions inherited from Qt3DExtras::QAbstractCameraController
- 2 protected functions inherited from Qt3DCore::QNode

## Detailed Description

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

The controls are:

Input | Action
--- | ---
Left mouse button | While the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheel | Zooms the camera in and out without changing the view center.
Shift key | Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
Arrow keys | Move the camera horizontally relative to camera viewport.
Page up and page down keys | Move the camera vertically relative to camera viewport.
Escape | Moves the camera so that entire scene is visible in the camera viewport.

## Member Function Documentation

### QFirstPersonCameraController::QFirstPersonCameraController(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QFirstPersonCameraController.

### `[virtual]` QFirstPersonCameraController::~QFirstPersonCameraController()

Destroys the instance of QFirstPersonCameraController. The destructor is virtual.