
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
Qt 4.8 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 theWhat's New in Qt 4 page.
Qt Quick 1.1 introducesnew changes such as new properties and better performance.
QPA allows porting Qt to different windowing systems and devices easier. It provides a clean abstraction layer for portingQtGui to new window systems.
Note:QPA is considered an experimental feature in Qt 4.8. In Qt 5 it is a supported and complete feature.
The new QtWebKit release introduces bug fixes, performance improvements, and greater compiler compatibility.
Many QtOpenGL functions are now thread-safe. Threads that cater to different situations are now available.
As part of Open Governance, modules in Qt 4.8 will receive maintainers and receive different support levels.
Currently, a module has an activity classification, theModule Maturity Level. As well, a list of modules and their maturity level is in theQt Developer Network.
Qt 4.8 introduces changes to the Qt API.
Changes to the Localization APIs include improvements toQLocale and more support for different language code formats.
ClassQGraphicsWebView:
| QPainter::RenderHints | renderHints() const |
| void | setRenderHint(QPainter::RenderHint hint, bool enabled = true) |
| void | setRenderHints(QPainter::RenderHints hints) |
ClassQWebPage:
| void | viewportChangeRequested() |
ClassQThreadPool:
| bool | waitForDone(int msecs) |
ClassQProcessEnvironment:
ClassQUrl:
| bool | isLocalFile() const |
| void | swap(QUrl & other) |
| QString | topLevelDomain() const |
ClassQAbstractItemModel:
| void | resetInternalData() |
ClassQObject:
| bool | connect(const QObject * sender, const QMetaMethod & signal, const QObject * receiver, const QMetaMethod & method, Qt::ConnectionType type = Qt::AutoConnection) |
| bool | disconnect(const QObject * sender, const QMetaMethod & signal, const QObject * receiver, const QMetaMethod & method) |
| int | senderSignalIndex() const |
ClassQSharedMemory:
| QString | nativeKey() const |
| void | setNativeKey(const QString & key) |
ClassQTranslator:
| bool | load(const QLocale & locale, const QString & filename, const QString & prefix = QString(), const QString & directory = QString(), const QString & suffix = QString()) |
ClassQVariant:
| void | swap(QVariant & other) |
ClassQUuid:
| QUuid | fromRfc4122(const QByteArray & bytes) |
| QByteArray | toByteArray() const |
| QByteArray | toRfc4122() const |
ClassQBitArray:
| void | swap(QBitArray & other) |
ClassQByteArray:
| void | swap(QByteArray & other) |
ClassQContiguousCache:
| void | swap(QContiguousCache<T> & other) |
ClassQChar:
| UnicodeVersion | currentUnicodeVersion() |
ClassQElapsedTimer:
| qint64 | nsecsElapsed() const |
ClassQHash:
| void | swap(QHash<Key, T> & other) |
ClassQMultiHash:
| void | swap(QMultiHash<Key, T> & other) |
ClassQLinkedList:
| void | swap(QLinkedList<T> & other) |
ClassQList:
| void | swap(QList<T> & other) |
ClassQLocale:
| QString | bcp47Name() const |
| QString | createSeparatedList(const QStringList & list) const |
| QString | currencySymbol(CurrencySymbolFormat format = CurrencySymbol) const |
| Qt::DayOfWeek | firstDayOfWeek() const |
| QList<QLocale> | matchingLocales(QLocale::Language language, QLocale::Script script, QLocale::Country country) |
| QString | nativeCountryName() const |
| QString | nativeLanguageName() const |
| QString | quoteString(const QString & str, QuotationStyle style = StandardQuotation) const |
| QString | quoteString(const QStringRef & str, QuotationStyle style = StandardQuotation) const |
| Script | script() const |
| QString | scriptToString(Script script) |
| QString | toCurrencyString(qlonglong value, const QString & symbol = QString()) const |
| QString | toCurrencyString(qulonglong value, const QString & symbol = QString()) const |
| QString | toCurrencyString(short value, const QString & symbol = QString()) const |
| QString | toCurrencyString(ushort value, const QString & symbol = QString()) const |
| QString | toCurrencyString(int value, const QString & symbol = QString()) const |
| QString | toCurrencyString(uint value, const QString & symbol = QString()) const |
| QString | toCurrencyString(double value, const QString & symbol = QString()) const |
| QString | toCurrencyString(float value, const QString & symbol = QString()) const |
| QString | toLower(const QString & str) const |
| QString | toUpper(const QString & str) const |
| QStringList | uiLanguages() const |
| QList<Qt::DayOfWeek> | weekdays() const |
ClassQMap:
| void | swap(QMap<Key, T> & other) |
ClassQQueue:
| void | swap(QQueue<T> & other) |
ClassQPoint:
| QPoint & | operator*=(float factor) |
| QPoint & | operator*=(double factor) |
| QPoint & | operator*=(int factor) |
ClassQMultiMap:
| void | swap(QMultiMap<Key, T> & other) |
ClassQRegExp:
| void | swap(QRegExp & other) |
ClassQSet:
| void | swap(QSet<T> & other) |
ClassQString:
| bool | contains(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | count(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | endsWith(const QStringRef & s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | indexOf(const QStringRef & str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | lastIndexOf(const QStringRef & str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | startsWith(const QStringRef & s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| void | swap(QString & other) |
ClassQStack:
| void | swap(QStack<T> & other) |
ClassQStringRef:
| bool | contains(const QString & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | contains(QChar ch, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | contains(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | count(const QString & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | count(QChar ch, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | count(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | endsWith(const QString & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | endsWith(QLatin1String str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | endsWith(QChar ch, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | endsWith(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | indexOf(const QString & str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | indexOf(QChar ch, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | indexOf(QLatin1String str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | indexOf(const QStringRef & str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | lastIndexOf(const QString & str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | lastIndexOf(QChar ch, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | lastIndexOf(QLatin1String str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| int | lastIndexOf(const QStringRef & str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | startsWith(const QString & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | startsWith(QLatin1String str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | startsWith(QChar ch, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| bool | startsWith(const QStringRef & str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const |
| QByteArray | toAscii() const |
| QByteArray | toLatin1() const |
| QByteArray | toLocal8Bit() const |
| QVector<uint> | toUcs4() const |
| QByteArray | toUtf8() const |
ClassQVarLengthArray:
| iterator | begin() |
| const_iterator | begin() const |
| const_iterator | constBegin() const |
| const_iterator | constEnd() const |
| iterator | end() |
| const_iterator | end() const |
| iterator | erase(iterator begin, iterator end) |
| iterator | erase(iterator pos) |
| void | insert(int i, const T & value) |
| void | insert(int i, int count, const T & value) |
| iterator | insert(iterator before, int count, const T & value) |
| iterator | insert(iterator before, const T & value) |
| QVarLengthArray<T, Prealloc> & | operator+=(const T & value) |
| QVarLengthArray<T, Prealloc> & | operator<<(const T & value) |
| void | prepend(const T & value) |
| void | remove(int i) |
| void | remove(int i, int count) |
| void | replace(int i, const T & value) |
ClassQVector:
| void | swap(QVector<T> & other) |
ClassQXmlStreamWriter:
| bool | hasError() const |
ClassQDBusAbstractInterface:
| void | setTimeout(int timeout) |
| int | timeout() const |
ClassQDBusConnection:
| QDBusConnection | connectToPeer(const QString & address, const QString & name) |
| ConnectionCapabilities | connectionCapabilities() const |
| void | disconnectFromPeer(const QString & name) |
| QByteArray | localMachineId() |
ClassQGraphicsGridLayout:
| void | removeItem(QGraphicsLayoutItem * item) |
ClassQGraphicsLayout:
| bool | instantInvalidatePropagation() |
| void | setInstantInvalidatePropagation(bool enable) |
ClassQBitmap:
| void | swap(QBitmap & other) |
ClassQIcon:
| void | swap(QIcon & other) |
ClassQImage:
ClassQPicture:
| void | swap(QPicture & other) |
ClassQPixmap:
| void | swap(QPixmap & other) |
ClassQAbstractProxyModel:
| virtual QModelIndex | buddy(const QModelIndex & index) const |
| virtual bool | canFetchMore(const QModelIndex & parent) const |
| virtual void | fetchMore(const QModelIndex & parent) |
| virtual bool | hasChildren(const QModelIndex & parent = QModelIndex()) const |
| virtual QMimeData * | mimeData(const QModelIndexList & indexes) const |
| virtual QStringList | mimeTypes() const |
| virtual void | sort(int column, Qt::SortOrder order = Qt::AscendingOrder) |
| virtual QSize | span(const QModelIndex & index) const |
| virtual Qt::DropActions | supportedDropActions() const |
ClassQApplication:
| Qt::KeyboardModifiers | queryKeyboardModifiers() |
ClassQFileOpenEvent:
| bool | openFile(QFile & file, QIODevice::OpenMode flags) const |
ClassQKeySequence:
| void | swap(QKeySequence & other) |
ClassQSizePolicy:
| bool | hasWidthForHeight() const |
| void | setWidthForHeight(bool dependent) |
ClassQWidget:
(preliminary)QPlatformWindow * | platformWindow() const |
| QPlatformWindowFormat | platformWindowFormat() const |
(preliminary)void | setPlatformWindow(QPlatformWindow * window) |
| void | setPlatformWindowFormat(const QPlatformWindowFormat & format) |
ClassQBrush:
| void | swap(QBrush & other) |
ClassQRadialGradient:
| qreal | centerRadius() const |
| qreal | focalRadius() const |
| void | setCenterRadius(qreal radius) |
| void | setFocalRadius(qreal radius) |
ClassQPainter:
| QRectF | clipBoundingRect() const |
| void | drawGlyphRun(const QPointF & position, const QGlyphRun & glyphs) |
| void | drawPixmapFragments(const QRectF * targetRects, const QRectF * sourceRects, int fragmentCount, const QPixmap & pixmap, PixmapFragmentHints hints = 0) |
ClassQPainterPath:
| void | swap(QPainterPath & other) |
ClassQPolygon:
| void | swap(QPolygon & other) |
ClassQPen:
| void | swap(QPen & other) |
ClassQPolygonF:
| void | swap(QPolygonF & other) |
ClassQPrinterInfo:
| QPrinterInfo & | operator=(const QPrinterInfo & other) |
ClassQRegion:
| void | swap(QRegion & other) |
ClassQFont:
| HintingPreference | hintingPreference() const |
| void | setHintingPreference(HintingPreference hintingPreference) |
| void | setStyleName(const QString & styleName) |
| QString | styleName() const |
ClassQFontMetrics:
| bool | inFontUcs4(uint character) const |
ClassQFontInfo:
| QString | styleName() const |
ClassQFontMetricsF:
| bool | inFontUcs4(uint ch) const |
ClassQTextDocument:
| Qt::CursorMoveStyle | defaultCursorMoveStyle() const |
| void | setDefaultCursorMoveStyle(Qt::CursorMoveStyle style) |
ClassQTextCharFormat:
| QFont::HintingPreference | fontHintingPreference() const |
| void | setFontHintingPreference(QFont::HintingPreference hintingPreference) |
ClassQTextBlockFormat:
| qreal | lineHeight(qreal scriptLineHeight, qreal scaling) const |
| qreal | lineHeight() const |
| int | lineHeightType() const |
| void | setLineHeight(qreal height, int heightType) |
ClassQTextListFormat:
| QString | numberPrefix() const |
| QString | numberSuffix() const |
| void | setNumberPrefix(const QString & numberPrefix) |
| void | setNumberSuffix(const QString & numberSuffix) |
ClassQTextLayout:
| Qt::CursorMoveStyle | cursorMoveStyle() const |
| QList<QGlyphRun> | glyphRuns() const |
| int | leftCursorPosition(int oldPos) const |
| int | rightCursorPosition(int oldPos) const |
| void | setCursorMoveStyle(Qt::CursorMoveStyle style) |
ClassQUndoCommand:
| QString | actionText() const |
ClassQCheckBox:
| virtual QSize | minimumSizeHint() const |
ClassQLineEdit:
| Qt::CursorMoveStyle | cursorMoveStyle() const |
| void | setCursorMoveStyle(Qt::CursorMoveStyle style) |
ClassQRadioButton:
| virtual QSize | minimumSizeHint() const |
ClassQTabWidget:
| virtual int | heightForWidth(int width) const |
ClassQNetworkAccessManager:
| QNetworkReply * | post(const QNetworkRequest & request, QHttpMultiPart * multiPart) |
| QNetworkReply * | put(const QNetworkRequest & request, QHttpMultiPart * multiPart) |
ClassQNetworkReply:
| void | setFinished(bool finished) |
ClassQNetworkConfigurationManager:
| void | configurationRemoved(const QNetworkConfiguration & config) |
ClassQNetworkProxyQuery:
| void | setNetworkConfiguration(const QNetworkConfiguration & networkConfiguration) |
ClassQNativeSocketEngine:
| virtual bool | joinMulticastGroup(const QHostAddress & groupAddress, const QNetworkInterface & iface) |
| virtual bool | leaveMulticastGroup(const QHostAddress & groupAddress, const QNetworkInterface & iface) |
| virtual QNetworkInterface | multicastInterface() const |
| virtual bool | setMulticastInterface(const QNetworkInterface & iface) |
ClassQUdpSocket:
| bool | joinMulticastGroup(const QHostAddress & groupAddress) |
| bool | joinMulticastGroup(const QHostAddress & groupAddress, const QNetworkInterface & iface) |
| bool | leaveMulticastGroup(const QHostAddress & groupAddress) |
| bool | leaveMulticastGroup(const QHostAddress & groupAddress, const QNetworkInterface & iface) |
| QNetworkInterface | multicastInterface() const |
| void | setMulticastInterface(const QNetworkInterface & iface) |
ClassQSslConfiguration:
| bool | testSslOption(QSsl::SslOption option) const |
ClassQSslSocket:
| QString | peerVerifyName() const |
| void | setPeerVerifyName(const QString & hostName) |
ClassQGLFormat:
| QGLFormat | fromPlatformWindowFormat(const QPlatformWindowFormat & format) |
| QPlatformWindowFormat | toPlatformWindowFormat(const QGLFormat & format) |
ClassQGLContext:
| QGLContext * | fromPlatformGLContext(QPlatformGLContext * platformContext) |
ClassQGLFramebufferObjectFormat:
ClassQSqlRelationalTableModel:
| void | setJoinMode(QSqlRelationalTableModel::JoinMode joinMode) |
ClassQHelpSearchQueryWidget:
| void | collapseExtendedSearch() |
| void | expandExtendedSearch() |
| void | setQuery(const QList<QHelpSearchQuery> & queryList) |
| bool | operator!=(const QPlatformWindowFormat & a, const QPlatformWindowFormat & b) |
| bool | operator!=(const QVarLengthArray<T, Prealloc1> & left, const QVarLengthArray<T, Prealloc2> & right) |
| const QPoint | operator*(int factor, const QPoint & point) |
| const QPoint | operator*(double factor, const QPoint & point) |
| const QPoint | operator*(float factor, const QPoint & point) |
| const QPoint | operator*(const QPoint & point, int factor) |
| const QPoint | operator*(const QPoint & point, double factor) |
| const QPoint | operator*(const QPoint & point, float factor) |
| bool | operator==(const QPlatformWindowFormat & a, const QPlatformWindowFormat & b) |
| bool | operator==(const QVarLengthArray<T, Prealloc1> & left, const QVarLengthArray<T, Prealloc2> & right) |
| Q_LIKELY( expr) | |
| Q_UNLIKELY( expr) |
| enum | ConnectionCapability { UnixFileDescriptorPassing } |
| enum | FileHandleFlag { AutoCloseHandle, DontCloseHandle } |
| enum | HintingPreference { PreferDefaultHinting, PreferNoHinting, PreferVerticalHinting, PreferFullHinting } |
| enum | CurrencySymbolFormat { CurrencyIsoCode, CurrencySymbol, CurrencyDisplayName } |
| enum | QuotationStyle { StandardQuotation, AlternateQuotation } |
| enum | Script { AnyScript, ArabicScript, CyrillicScript, DeseretScript, ..., TifinaghScript } |
| enum | JoinMode { InnerJoin, LeftJoin } |
| enum | LineHeightTypes { SingleHeight, ProportionalHeight, FixedHeight, MinimumHeight, LineDistanceHeight } |
| enum | CursorMoveStyle { LogicalMoveStyle, VisualMoveStyle } |
| typedef | const_reference |
| typedef | reference |
| typedef | value_type |
|
|
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.