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 |
This class was introduced in Qt 5.7.
Related Non-Members
| typedef | QComponentVector |
| typedef | QNodePtr |
| typedef | QNodeVector |
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
| Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 5 properties inherited from Qt3DExtras::QAbstractCameraController
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 10 public functions inherited from Qt3DExtras::QAbstractCameraController
- 4 public functions inherited from Qt3DCore::QEntity
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 5 signals inherited from Qt3DExtras::QAbstractCameraController
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DExtras::QAbstractCameraController
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
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. |