Home · All Classes · All Functions · Overviews

What's New in Qt 4.7

Qt 4.7 provides many improvements and enhancements over the previous releases in the Qt 4 series. This document covers the most important features in this release, separated by category.

A list of other Qt 4 features can be found on the What's New in Qt 4 page.

Highlights

Declarative UI development with Qt Quick

Qt 4.7 introduces Quick, the Qt UI Creation Kit. that enables the creation of dynamic user interfaces, easier and more effective than possible with existing UI technologies. This UI Creation Kit consist of three technologies:

Network Bearer Management

Bearer Management controls the connectivity state of the system. The new Bearer Management API in the QtNetwork module allows the application to identify whether the system is online and how many interfaces there are, as well as start and stop interfaces, or roam transparently between access points.

QNetworkAccessManager uses this API for HTTP level roaming.

Multimedia - playback and declarative elements

The Multimedia API provides media playback and playlist support for Qt Applications. Play music and movies through a single interface with selectable output for movies to widgets or graphics view.

Multimedia support for Quick is also available with the new multimedia declarative elements.

New Classes, Functions, Macros, etc.

Links to new classes, elements, functions, macros, and other items introduced in Qt 4.7.

New Classes

QDeclarativeComponent QGLBuffer QMediaPlaylistReader QMetaDataControl
QDeclarativeContext QGraphicsVideoItem QMediaPlaylistWriter QNetworkConfiguration
QDeclarativeEngine QMediaContent QMediaResource QNetworkConfigurationManager
QDeclarativeError QMediaControl QMediaService QNetworkSession
QDeclarativeExpression QMediaObject QMediaServiceFeaturesInterface QStaticText
QDeclarativeExtensionPlugin QMediaPlayer QMediaServiceProvider QVideoDeviceControl
QDeclarativeItem QMediaPlayerControl QMediaServiceProviderHint QVideoOutputControl
QDeclarativeNetworkAccessManagerFactory QMediaPlaylist QMediaServiceProviderPlugin QVideoRendererControl
QDeclarativeParserStatus QMediaPlaylistControl QMediaServiceSupportedDevicesInterface QVideoWidget
QDeclarativePropertyMap QMediaPlaylistIOPlugin QMediaServiceSupportedFormatsInterface QVideoWidgetControl
QDeclarativeScriptString QMediaPlaylistNavigator QMediaTimeInterval QVideoWindowControl
QDeclarativeView QMediaPlaylistProvider QMediaTimeRange

New Member Functions

Class QAudioFormat:

int channelCount () const
int sampleRate () const
void setChannelCount ( int channels )
void setSampleRate ( int samplerate )

Class QPlainTextEdit:

QString anchorAt ( const QPoint & pos ) const

Class QGLShader:

bool hasOpenGLShaders ( ShaderType type, const QGLContext * context = 0 )

Class QGLShaderProgram:

GLenum geometryInputType () const
GLenum geometryOutputType () const
int geometryOutputVertexCount () const
int maxGeometryOutputVertices () const
void setAttributeArray ( int location, GLenum type, const void * values, int tupleSize, int stride = 0 )
void setAttributeArray ( const char * name, GLenum type, const void * values, int tupleSize, int stride = 0 )
void setAttributeBuffer ( int location, GLenum type, int offset, int tupleSize, int stride = 0 )
void setAttributeBuffer ( const char * name, GLenum type, int offset, int tupleSize, int stride = 0 )
void setGeometryOutputType ( GLenum outputType )
void setGeometryOutputVertexCount ( int count )
void setUniformValue ( int location, const GLfloat[2][2] value )
void setUniformValue ( int location, const GLfloat[3][3] value )
void setUniformValue ( const char * name, const GLfloat[2][2] value )
void setUniformValue ( const char * name, const GLfloat[3][3] value )

Class QNetworkAccessManager:

QNetworkConfiguration activeConfiguration () const
QNetworkConfiguration configuration () const
bool networkAccessEnabled () const
QNetworkReply * sendCustomRequest ( const QNetworkRequest & request, const QByteArray & verb, QIODevice * data = 0 )
void setConfiguration ( const QNetworkConfiguration & config )
void setNetworkAccessEnabled ( bool enabled )

Class QAudioDeviceInfo:

QList<int> supportedChannelCounts () const
QList<int> supportedSampleRates () const

Class QDBusMessage:

bool autoStartService () const
void setAutoStartService ( bool enable )

Class QNetworkRequest:

Priority priority () const
void setPriority ( Priority priority )

Class QFileSystemModel:

void directoryLoaded ( const QString & path )

New Global Functions

uint qHash ( const QUrl & url )


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0