Что нового в Qt 4.6
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
|
|
|
|
Для получения дополнительной информации смотрите документацию класса QGraphicsEffect.
Модуль QtXmlPatterns теперь можно использовать для проверки правильности схем, либо посредством C++ API в приложениях Qt, либо используя утилиту командной строки xmlpatternsvalidator. Реализация XML Schema Validation поддерживает значительную часть спецификации версии 1.0.

Для получения дополнительной информации смотрите Обработка XML и документацию класса QXmlSchema.
Как многое в Qt и многое в приложениях, построенных на Qt, переходят к 3D, API будут предоставляться для упрощения этого. Главным образом новый API направлен на то, чтобы упростить создание 3D-приложений с помощью OpenGL. Это также унифицирует базу кода Qt OpenGL, и разрешит кроссплатформенную базу кода 3D.
Основные возможности включателей Qt3D следующие: Математические примитивы для перемножения матриц, векторов, кватернионов (клиентская часть), и API для вершинных (vertex) и фрагментированных (fragment) шейдеров, GLSL/ES. Будущие исследования будут включать помимо прочего трафареты, ножницы, вершинные буферы и массивы, манипуляции с текстурами и геометрические шейдеры.
Qt 4.6 поставляется с новыми классами для обработки аудио. Эти классы предоставляют низкоуровневый доступ к системной аудиосистеме. Указывая аудиоформат (QAudioFormat) и подавая аудиоданные через QIODevice, вы получите прямой доступ к функциональности звукового устройства. API также идет с функциями для запроса аудиоустройств для которых они поддерживают аудиоформаты.
Для получения дополнительной информации смотрите документацию Модуля QtMultimedia.
Ссылки на новые классы, функции, макросы и остальные элементы, введенные в Qt 4.6.
Класс QNetworkCacheMetaData:
| AttributesMap | attributes () const |
| void | setAttributes ( const AttributesMap & attributes ) |
Класс QXmlStreamReader:
| QString | readElementText ( ReadElementTextBehaviour behaviour ) |
| bool | readNextStartElement () |
| void | skipCurrentElement () |
Класс QPrintPreviewWidget:
| int | pageCount () const |
Класс QNetworkReply:
| void | ignoreSslErrors ( const QList<QSslError> & errors ) |
| bool | isFinished () const |
| bool | isRunning () const |
Класс QStyleOptionGraphicsItem:
| qreal | levelOfDetailFromTransform ( const QTransform & worldTransform ) |
Класс QWebPage:
| QWebFrame * | frameAt ( const QPoint & pos ) const |
| bool | shouldInterruptJavaScript () |
Класс QSyntaxHighlighter:
| void | rehighlightBlock ( const QTextBlock & block ) |
Класс QAbstractXmlNodeModel:
| QSourceLocation | sourceLocation ( const QXmlNodeModelIndex & index ) const |
Класс QSystemLocale:
| virtual QLocale | fallbackLocale () const |
Класс QDBusConnection:
| bool | connect ( const QString & service, const QString & path, const QString & interface, const QString & name, const QStringList & argumentMatch, const QString & signature, QObject * receiver, const char * slot ) |
| bool | disconnect ( const QString & service, const QString & path, const QString & interface, const QString & name, const QStringList & argumentMatch, const QString & signature, QObject * receiver, const char * slot ) |
Класс QWebFrame:
| void | contentsSizeChanged ( const QSize & size ) |
| QWebElement | documentElement () const |
| QWebElementCollection | findAllElements ( const QString & selectorQuery ) const |
| QWebElement | findFirstElement ( const QString & selectorQuery ) const |
| void | loadFinished ( bool ok ) |
| void | loadStarted () |
| void | render ( QPainter * painter, RenderLayer layer, const QRegion & clip = QRegion() ) |
| QRect | scrollBarGeometry ( Qt::Orientation orientation ) const |
| void | setFocus () |
Класс QWebHitTestResult:
| QWebElement | element () const |
| QWebElement | enclosingBlockElement () const |
| QWebElement | linkElement () const |
Класс QScriptString:
| quint32 | toArrayIndex ( bool * ok = 0 ) const |
Класс QGraphicsLayout:
| void | addChildLayoutItem ( QGraphicsLayoutItem * layoutItem ) |
Класс QHelpSearchEngine:
| int | hitCount () const |
Класс QGraphicsScene:
| QGraphicsItem * | activePanel () const |
| bool | isActive () const |
| QGraphicsItem * | itemAt ( const QPointF & position, const QTransform & deviceTransform ) const |
| QGraphicsItem * | itemAt ( qreal x, qreal y, const QTransform & deviceTransform ) const |
| QList<QGraphicsItem *> | items ( const QPointF & pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform & deviceTransform = QTransform() ) const |
| QList<QGraphicsItem *> | items ( const QRectF & rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform & deviceTransform = QTransform() ) const |
| QList<QGraphicsItem *> | items ( const QPolygonF & polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform & deviceTransform = QTransform() ) const |
| QList<QGraphicsItem *> | items ( const QPainterPath & path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform & deviceTransform = QTransform() ) const |
| QList<QGraphicsItem *> | items ( qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform & deviceTransform = QTransform() ) const |
| bool | sendEvent ( QGraphicsItem * item, QEvent * event ) |
| void | setActivePanel ( QGraphicsItem * item ) |
| void | setSelectionArea ( const QPainterPath & path, const QTransform & deviceTransform ) |
| void | setSelectionArea ( const QPainterPath & path, Qt::ItemSelectionMode mode, const QTransform & deviceTransform ) |
Класс QNetworkRequest:
| QObject * | originatingObject () const |
| void | setOriginatingObject ( QObject * object ) |
Класс QGraphicsItem:
| bool | acceptTouchEvents () const |
| bool | filtersChildEvents () const |
| QGraphicsItem * | focusItem () const |
| QGraphicsItem * | focusProxy () const |
| QGraphicsEffect * | graphicsEffect () const |
| Qt::InputMethodHints | inputMethodHints () const |
| bool | isActive () const |
| bool | isBlockedByModalPanel ( QGraphicsItem ** blockingPanel = 0 ) const |
| bool | isPanel () const |
| QGraphicsItem * | panel () const |
| PanelModality | panelModality () const |
| QGraphicsObject * | parentObject () const |
| qreal | rotation () const |
| qreal | scale () const |
| void | setAcceptTouchEvents ( bool enabled ) |
| void | setActive ( bool active ) |
| void | setFiltersChildEvents ( bool enabled ) |
| void | setFocusProxy ( QGraphicsItem * item ) |
| void | setGraphicsEffect ( QGraphicsEffect * effect ) |
| void | setInputMethodHints ( Qt::InputMethodHints hints ) |
| void | setPanelModality ( PanelModality panelModality ) |
| void | setRotation ( qreal angle ) |
| void | setScale ( qreal factor ) |
| void | setTransformOriginPoint ( const QPointF & origin ) |
| void | setTransformOriginPoint ( qreal x, qreal y ) |
| void | setTransformations ( const QList<QGraphicsTransform *> & transformations ) |
| void | setX ( qreal x ) |
| void | setY ( qreal y ) |
| void | stackBefore ( const QGraphicsItem * sibling ) |
| QGraphicsObject * | toGraphicsObject () |
| const QGraphicsObject * | toGraphicsObject () const |
| QPointF | transformOriginPoint () const |
| QList<QGraphicsTransform *> | transformations () const |
Класс QNetworkProxyFactory:
| void | setUseSystemConfiguration ( bool enable ) |
Класс QNetworkAccessManager:
| QNetworkReply * | deleteResource ( const QNetworkRequest & request ) |
Класс QWebView:
| QPainter::RenderHints | renderHints () const |
| void | setRenderHint ( QPainter::RenderHint hint, bool enabled = true ) |
| void | setRenderHints ( QPainter::RenderHints hints ) |
Класс QDBusPendingCall:
| QDBusPendingCall | fromCompletedCall ( const QDBusMessage & msg ) |
| QDBusPendingCall | fromError ( const QDBusError & error ) |
Класс QScriptEngineDebugger:
| DebuggerState | state () const |
Класс QWebSettings:
| void | clearMemoryCaches () |
| QString | defaultTextEncoding () const |
| void | enablePersistentStorage ( const QString & path = QString() ) |
| QString | localStoragePath () const |
| QString | offlineWebApplicationCachePath () |
| qint64 | offlineWebApplicationCacheQuota () |
| void | setDefaultTextEncoding ( const QString & encoding ) |
| void | setLocalStoragePath ( const QString & path ) |
| void | setOfflineWebApplicationCachePath ( const QString & path ) |
| void | setOfflineWebApplicationCacheQuota ( qint64 maximumSize ) |
Класс QWebSecurityOrigin:
| void | addLocalScheme ( const QString & scheme ) |
| QStringList | localSchemes () |
| void | removeLocalScheme ( const QString & scheme ) |
Класс QGLFramebufferObject:
| void | blitFramebuffer ( QGLFramebufferObject * target, const QRect & targetRect, QGLFramebufferObject * source, const QRect & sourceRect, GLbitfield buffers = GL_COLOR_BUFFER_BIT, GLenum filter = GL_NEAREST ) |
| bool | hasOpenGLFramebufferBlit () |
Класс QGraphicsLayoutItem:
| bool | ownedByLayout () const |
| void | setOwnedByLayout ( bool ownership ) |
Класс QSslSocket:
| void | connectToHostEncrypted ( const QString & hostName, quint16 port, const QString & sslPeerName, OpenMode mode = ReadWrite ) |
| void | ignoreSslErrors ( const QList<QSslError> & errors ) |
| void | setSocketOption ( QAbstractSocket::SocketOption option, const QVariant & value ) |
| QVariant | socketOption ( QAbstractSocket::SocketOption option ) |
Класс QWebDatabase:
| void | removeAllDatabases () |
Класс QGraphicsView:
| bool | isTransformed () const |
Класс QSharedPointer:
| QSharedPointer<X> | objectCast () const |
Класс QWeakPointer:
| T * | data () const |
| QWeakPointer<T> | operator= ( const QObject * obj ) |
Класс QProcessEnvironment:
| QProcessEnvironment | systemEnvironment () |
Класс QXmlQuery:
| bool | setFocus ( const QString & focus ) |
| QDataStream & | operator<< ( QDataStream & stream, const QWebHistory & history ) |
| QDataStream & | operator>> ( QDataStream & stream, QWebHistory & history ) |
| void | qDrawBorderPixmap ( QPainter * painter, const QRect & target, const QMargins & margins, const QPixmap & pixmap ) |
| bool | qFuzzyCompare ( const QTransform & t1, const QTransform & t2 ) |
| bool | qFuzzyCompare ( const QMatrix & m1, const QMatrix & m2 ) |
| QSharedPointer<X> | qSharedPointerObjectCast ( const QWeakPointer<T> & other ) |
| QSharedPointer<X> | qSharedPointerObjectCast ( const QSharedPointer<T> & other ) |
| QString | qtTrId ( const char * id, int n = -1 ) |
| QBENCHMARK_ONCE | |
| QT_TRID_NOOP ( id ) |
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.6.0 |
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |