QKeyFrame Class | Qt 3D 5.12.4

Qt 5.12 | Qt 3D | C++ Classes | QKeyFrame

Qt 5.12.4 Reference Documentation

# QKeyFrame Class

(Qt3DAnimation::QKeyFrame)

A base class for handling keyframes. More...

Header: | #include <QKeyFrame>
qmake: | QT += 3danimation

- List of all members, including inherited members

## Public Types

enum | InterpolationType { ConstantInterpolation, LinearInterpolation, BezierInterpolation }

## Public Functions

| QKeyFrame()
| QKeyFrame(QVector2D coords)
| QKeyFrame(QVector2D coords, QVector2D lh, QVector2D rh)
QVector2D | coordinates() const
Qt3DAnimation::QKeyFrame::InterpolationType | interpolationType() const
QVector2D | leftControlPoint() const
QVector2D | rightControlPoint() const
void | setCoordinates(QVector2D coords)
void | setInterpolationType(Qt3DAnimation::QKeyFrame::InterpolationType interp)
void | setLeftControlPoint(QVector2D lh)
void | setRightControlPoint(QVector2D rh)

## Detailed Description

A base class for handling keyframes.

## Member Type Documentation

### enum QKeyFrame::InterpolationType

## Member Function Documentation

### QKeyFrame::QKeyFrame()

Default constructs an instance of QKeyFrame.

### QKeyFrame::QKeyFrame(QVector2D coords)

Default constructs an instance of QKeyFrame.

### QKeyFrame::QKeyFrame(QVector2D coords, QVector2D lh, QVector2D rh)

Default constructs an instance of QKeyFrame.

### QVector2D QKeyFrame::coordinates() const

See also setCoordinates().

### Qt3DAnimation::QKeyFrame::InterpolationType QKeyFrame::interpolationType() const

See also setInterpolationType().

### QVector2D QKeyFrame::leftControlPoint() const

See also setLeftControlPoint().

### QVector2D QKeyFrame::rightControlPoint() const

See also setRightControlPoint().

### void QKeyFrame::setCoordinates(QVector2D coords)

See also coordinates().

### void QKeyFrame::setInterpolationType(Qt3DAnimation::QKeyFrame::InterpolationType interp)

See also interpolationType().

### void QKeyFrame::setLeftControlPoint(QVector2D lh)

See also leftControlPoint().

### void QKeyFrame::setRightControlPoint(QVector2D rh)

See also rightControlPoint().