New Classes and Functions in Qt 5.1

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.1. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

New Classes

New Member Functions

Class QAccelerometer:

void accelerationModeChanged(QAccelerometer::AccelerationMode accelerationMode)
void setAccelerationMode(QAccelerometer::AccelerationMode accelerationMode)

Class QLightSensor:

void setFieldOfView(qreal fieldOfView)

Class QRotationSensor:

void setHasZ(bool hasZ)

Class QSensor:

void setCurrentOrientation(int currentOrientation)
void setEfficientBufferSize(int efficientBufferSize)
void setMaxBufferSize(int maxBufferSize)
void setSkipDuplicates(bool skipDuplicates)
void skipDuplicatesChanged(bool skipDuplicates)

New Enum Types

enum AccelerationMode { Combined, Gravity, User }
enum AxesOrientationMode { FixedOrientation, AutomaticOrientation, UserOrientation }

New Type Aliases

typedef qoutputrangelist
typedef qrange
typedef qrangelist
typedef qoutputrangelist
typedef qrange
typedef qrangelist

New Properties

New QML Types

Additions to Other Qt 5 Releases