Редактирование: Qt:Документация 4.3.2/qt4-3-intro

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
Внимание: Вы не представились системе. Ваш IP-адрес будет записан в историю изменений этой страницы.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
Текущая версия Ваш текст
Строка 1: Строка 1:
{{Qt4.3.2_header}}
{{Qt4.3.2_header}}
-
 
+
=What's New in Qt 4.3=
-
=What's New in Qt 4.3<br />=
+
Qt 4.3 provides many improvements and enhancements over the previous releases in the Qt 4 series. This documents covers the most important features in this release, separated by category.
Qt 4.3 provides many improvements and enhancements over the previous releases in the Qt 4 series. This documents covers the most important features in this release, separated by category.
A comprehensive list of changes between Qt 4.2 and Qt 4.3 is included in the <tt>changes-4.3.0</tt> file provided with Qt, and is also [http://www.trolltech.com/developer/notes/changes/changes-4.3.0 available online]. Changes between this release and the previous release are provided in the <tt>changes-4.3.2</tt> file (also [http://www.trolltech.com/developer/notes/changes/changes-4.3.2 available online].
A comprehensive list of changes between Qt 4.2 and Qt 4.3 is included in the <tt>changes-4.3.0</tt> file provided with Qt, and is also [http://www.trolltech.com/developer/notes/changes/changes-4.3.0 available online]. Changes between this release and the previous release are provided in the <tt>changes-4.3.2</tt> file (also [http://www.trolltech.com/developer/notes/changes/changes-4.3.2 available online].
-
A list of other Qt 4 features can be found on the '''[[Qt:Документация 4.3.2/qt4-intro | What's New in Qt 4]]''' page.
+
A list of other Qt 4 features can be found on the '''[[Qt:Документация_4.3.2/qt4-intro | What's New in Qt 4]]''' page.
-
 
+
-
'''Highlights'''
+
-
*[[#main-window-styles | Main Window Styles]]
 
-
*[[#qtscript-application-scripting-with-ecmascript | QtScript - Application Scripting with ECMAScript]]
 
-
*[[#improved-graphics-support | Improved Graphics Support]]
 
-
*[[#new-widgets-and-desktop-integration-enhancements | New Widgets and Desktop Integration Enhancements]]
 
-
*[[#qt-designer-improvements | Qt Designer Improvements]]
 
-
*[[#extended-and-improved-infrastructure | Extended and Improved Infrastructure]]
 
-
*[[#qtopia-core | Qtopia Core]]
 
-
<div id="main-window-styles"></div>
 
==Main Window Styles==
==Main Window Styles==
-
The [[Qt:Документация 4.3.2/application | main window classes]] now provide support for different main window paradigms, such as those found in Visual Studio or KDevelop.
+
The [[Qt:Документация_4.3.2/application | main window classes]] now provide support for different main window paradigms, such as those found in Visual Studio or KDevelop.
Dock widgets occupying the same area can now be arranged in horizontal, vertical or collapsible tabs. Collapsible tabs are oriented according to the location of dock widgets around the main window's central area.
Dock widgets occupying the same area can now be arranged in horizontal, vertical or collapsible tabs. Collapsible tabs are oriented according to the location of dock widgets around the main window's central area.
Строка 25: Строка 14:
{|  align="center" width="80%"
{|  align="center" width="80%"
|-
|-
-
|
+
|[[Image:mainwindow-vertical-tabs.png]]
-
[[Image:mainwindow-vertical-tabs.png|center]]
+
|[[Image:mainwindow-custom-dock.png]]
 +
|}
-
|
+
API improvements to [[Qt:Документация_4.3.2/qdockwidget | QDockWidget]] enable dock widgets to be given custom title bars and window styles, and also include support for vertical title bars.
-
[[Image:mainwindow-custom-dock.png|center]]
+
-
|}
+
[[Image:mainwindow-vertical-dock.png]]
-
API improvements to [[Qt:Документация 4.3.2/qdockwidget | QDockWidget]] enable dock widgets to be given custom title bars and window styles, and also include support for vertical title bars.
+
-
[[Image:mainwindow-vertical-dock.png|center]]
+
Additionally, support for animations has been extended to tool bars, resulting in more sophisticated effects when tool bars and dock widgets are rearranged. See the [[Qt:Документация_4.3.2/demos-mainwindow | Main Window]] demonstration for an extensive tour of these new features.
-
Additionally, support for animations has been extended to tool bars, resulting in more sophisticated effects when tool bars and dock widgets are rearranged. See the [[Qt:Документация 4.3.2/demos-mainwindow | Main Window]] demonstration for an extensive tour of these new features.
 
-
<div id="qtscript-application-scripting-with-ecmascript"></div>
 
==QtScript - Application Scripting with ECMAScript==
==QtScript - Application Scripting with ECMAScript==
-
This release introduces the [[Qt:Документация 4.3.2/qtscript | QtScript module]], providing a script engine for the ECMAScript language, based on the [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262] standard, that is designed to enable easier integration of scripting facilities into end-user applications.
+
This release introduces the [[Qt:Документация_4.3.2/qtscript | QtScript module]], providing a script engine for the ECMAScript language, based on the [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262] standard, that is designed to enable easier integration of scripting facilities into end-user applications.
-
[[Image:qtscript-context2d.png|center]]
+
[[Image:qtscript-context2d.png]]
-
Scripts access application functionality via QObjects that are specifically created and exposed by each application. Information about the available child objects, properties, signals and slots is provided by Qt's [[Qt:Документация 4.3.2/object | object model]]. This means that, in many cases, script-enabling an application requires little effort on the part of the developer.
+
Scripts access application functionality via QObjects that are specifically created and exposed by each application. Information about the available child objects, properties, signals and slots is provided by Qt's [[Qt:Документация_4.3.2/object | object model]]. This means that, in many cases, script-enabling an application requires little effort on the part of the developer.
-
[[Image:qtscript-calculator.png|center]]
+
[[Image:qtscript-calculator.png]]
 +
 
 +
A set of examples are included to show how classes and functions written in C++ can be exposed to the script engine, including [[Qt:Документация_4.3.2/script-calculator | a port]] of the [[Qt:Документация_4.3.2/widgets-calculator | Calculator example]] which shows how a [[Qt:Документация_4.3.2/qtscript | QtScript]] can be used with a user interface created with ''Qt Designer''.
-
A set of examples are included to show how classes and functions written in C++ can be exposed to the script engine, including [[Qt:Документация 4.3.2/script-calculator | a port]] of the [[Qt:Документация 4.3.2/widgets-calculator | Calculator example]] which shows how a [[Qt:Документация 4.3.2/qtscript | QtScript]] can be used with a user interface created with ''Qt Designer''.
 
-
<div id="improved-graphics-support"></div>
 
==Improved Graphics Support==
==Improved Graphics Support==
To improve graphics performance on Windows, this release includes an experimental Direct3D paint engine to provide native hardware acceleration on Windows systems with suitable graphics hardware. Although we have conducted internal testing with a selection of graphics cards, we cannot guarantee that this feature will work correctly with all hardware or drivers. Please report feedback on this feature via the [http://www.trolltech.com/developer/task-tracker Task Tracker].
To improve graphics performance on Windows, this release includes an experimental Direct3D paint engine to provide native hardware acceleration on Windows systems with suitable graphics hardware. Although we have conducted internal testing with a selection of graphics cards, we cannot guarantee that this feature will work correctly with all hardware or drivers. Please report feedback on this feature via the [http://www.trolltech.com/developer/task-tracker Task Tracker].
-
Qt's interoperability with the Scalable Vector Graphics (SVG) file format has been improved by the introduction of the [[Qt:Документация 4.3.2/qsvggenerator | QSvgGenerator]] class, a paint device that can be used to save Qt rendering operations in the form of an SVG drawing. This class can be used alongside the existing [[Qt:Документация 4.3.2/qsvgwidget | QSvgWidget]] and [[Qt:Документация 4.3.2/qsvgrenderer | QSvgRenderer]] classes to provide full input/output support for vector graphics.
+
Qt's interoperability with the Scalable Vector Graphics (SVG) file format has been improved by the introduction of the [[Qt:Документация_4.3.2/qsvggenerator | QSvgGenerator]] class, a paint device that can be used to save Qt rendering operations in the form of an SVG drawing. This class can be used alongside the existing [[Qt:Документация_4.3.2/qsvgwidget | QSvgWidget]] and [[Qt:Документация_4.3.2/qsvgrenderer | QSvgRenderer]] classes to provide full input/output support for vector graphics.
The OpenGL paint engine has been heavily improved to take advantage of new features in modern graphics hardware. Through the extensive usage of fragment programs, users with suitable graphics hardware can expect to experience much faster and higher quality rendering when OpenGL is used. Support for an additional anti-aliasing mode for OpenGL allows developers to choose between high quality rendering or speed when older or less-capable hardware is used.
The OpenGL paint engine has been heavily improved to take advantage of new features in modern graphics hardware. Through the extensive usage of fragment programs, users with suitable graphics hardware can expect to experience much faster and higher quality rendering when OpenGL is used. Support for an additional anti-aliasing mode for OpenGL allows developers to choose between high quality rendering or speed when older or less-capable hardware is used.
-
The [[Qt:Документация 4.3.2/qtransform | QTransform]] class adds support for arbitrary matrix operations on two-dimensional coordinates, allowing perspective transformations to be applied to 2D graphics.
+
The [[Qt:Документация_4.3.2/qtransform | QTransform]] class adds support for arbitrary matrix operations on two-dimensional coordinates, allowing perspective transformations to be applied to 2D graphics.
-
Support for set operations on paths has been added to [[Qt:Документация 4.3.2/qpainterpath | QPainterPath]], improving support for clipping and animations.
+
Support for set operations on paths has been added to [[Qt:Документация_4.3.2/qpainterpath | QPainterPath]], improving support for clipping and animations.
An object bounding mode for gradients that enables them to be defined in terms of the bounding rectangle of the objects they are applied to.
An object bounding mode for gradients that enables them to be defined in terms of the bounding rectangle of the objects they are applied to.
-
<div id="new-widgets-and-desktop-integration-enhancements"></div>
+
 
==New Widgets and Desktop Integration Enhancements==
==New Widgets and Desktop Integration Enhancements==
-
Applications running on Windows Vista automatically support animations and other Vista-related enhancements through the use of the new [[Qt:Документация 4.3.2/qwindowsvistastyle | QWindowsVistaStyle]] class, providing a widget style that gives Qt applications a native look and feel on Windows Vista.
+
Applications running on Windows Vista automatically support animations and other Vista-related enhancements through the use of the new [[Qt:Документация_4.3.2/qwindowsvistastyle | QWindowsVistaStyle]] class, providing a widget style that gives Qt applications a native look and feel on Windows Vista.
-
 
+
-
Qt 4.3 also provides a number of new and redesigned widgets, including the [[Qt:Документация 4.3.2/qwizard | QWizard]] class which supports application wizard functionality in a variety of native styles, including one for Windows Vista applications.
+
 +
Qt 4.3 also provides a number of new and redesigned widgets, including the [[Qt:Документация_4.3.2/qwizard | QWizard]] class which supports application wizard functionality in a variety of native styles, including one for Windows Vista applications.
{|  align="center" width="80%"
{|  align="center" width="80%"
-
|- valign="top" class="odd" |
+
|-
-
|[[Image:qtwizard-modern1.png|center]]
+
|[[Image:qtwizard-modern1.png]]
-
|[[Image:qtwizard-mac2.png|center]]
+
|[[Image:qtwizard-mac2.png]]
-
|[[Image:qtwizard-aero2.png|center]]
+
|[[Image:qtwizard-aero2.png]]
|}
|}
Unified toolbar support on Mac OS X improves the look and feel of applications by blending adjacent toolbars and window title bars together.
Unified toolbar support on Mac OS X improves the look and feel of applications by blending adjacent toolbars and window title bars together.
-
[[Image:macintosh-unified-toolbar.png|center]]
+
[[Image:macintosh-unified-toolbar.png]]
-
Qt's range of model/view classes has been expanded to include the [[Qt:Документация 4.3.2/qcolumnview | QColumnView]] class, an animated list view similar to that found on small-screen devices.
+
Qt's range of model/view classes has been expanded to include the [[Qt:Документация_4.3.2/qcolumnview | QColumnView]] class, an animated list view similar to that found on small-screen devices.
-
The [[Qt:Документация 4.3.2/qmdiarea | QMdiArea]] class provides an Multiple Document Interface (MDI) widget that is intended to provide a more consistent API for developers to use and more predictable behavior for users. The API has been designed to be very similar to that provided by [[Qt:Документация 4.3.2/qworkspace | QWorkspace]] in order to make porting between the two widgets a straightforward task.
+
The [[Qt:Документация_4.3.2/qmdiarea | QMdiArea]] class provides an Multiple Document Interface (MDI) widget that is intended to provide a more consistent API for developers to use and more predictable behavior for users. The API has been designed to be very similar to that provided by [[Qt:Документация_4.3.2/qworkspace | QWorkspace]] in order to make porting between the two widgets a straightforward task.
-
[[Image:plastique-filedialog.png|center]]
+
[[Image:plastique-filedialog.png]]
-
On X11, [[Qt:Документация 4.3.2/qfiledialog | QFileDialog]] has been optimized to perform better with directories containing large numbers of files, automatically updates when files are added or removed, and has a brand new look and feel.
+
On X11, [[Qt:Документация_4.3.2/qfiledialog | QFileDialog]] has been optimized to perform better with directories containing large numbers of files, automatically updates when files are added or removed, and has a brand new look and feel.
-
A platform-independent way to notify users about activity in a window is provided by the [[Qt:Документация 4.3.2/qapplication#alert | QApplication::alert]]() function. This alerts the user by using the appropriate notification mechanism for their chosen platform and environment.
+
A platform-independent way to notify users about activity in a window is provided by the [[Qt:Документация_4.3.2/qapplication#alert | QApplication::alert]]() function. This alerts the user by using the appropriate notification mechanism for their chosen platform and environment.
-
[[Qt:Документация 4.3.2/qwidget | QWidget]] now provides a [[Qt:Документация 4.3.2/qwidget#locale-prop | locale]] property that can be used to give individual windows, dialogs and widgets different look and feel different languages and regions.
+
[[Qt:Документация_4.3.2/qwidget | QWidget]] now provides a [[Qt:Документация_4.3.2/qwidget#locale-prop | locale]] property that can be used to give individual windows, dialogs and widgets different look and feel different languages and regions.
-
Almost all standard widgets can be styled with [[Qt:Документация 4.3.2/stylesheet | Qt Style Sheets]], making it easier to customize the appearance of applications.
+
Almost all standard widgets can be styled with [[Qt:Документация_4.3.2/stylesheet | Qt Style Sheets]], making it easier to customize the appearance of applications.
An enhanced layout system accommodates many special cases for Mac OS X, enabling Mac OS X style to provide a faithful Mac look and feel.
An enhanced layout system accommodates many special cases for Mac OS X, enabling Mac OS X style to provide a faithful Mac look and feel.
-
<div id="qt-designer-improvements"></div>
+
 
==Qt Designer Improvements==
==Qt Designer Improvements==
''Qt Designer'' has seen a number of improvements since Qt 4.2, many of which are focused on making the application easier to use. Other improvements track other additions and new features in Qt, such as new widgets and support for application scripting.
''Qt Designer'' has seen a number of improvements since Qt 4.2, many of which are focused on making the application easier to use. Other improvements track other additions and new features in Qt, such as new widgets and support for application scripting.
-
Support for [[Qt:Документация 4.3.2/designer-editing-mode#the-property-editor | dynamic properties]] enables standard Qt widgets and user-created forms to be customized with extra information from within ''Qt Designer''.
+
Support for [[Qt:Документация_4.3.2/designer-editing-mode#the-property-editor | dynamic properties]] enables standard Qt widgets and user-created forms to be customized with extra information from within ''Qt Designer''.
-
[[Image:designer-adding-dynamic-property.png|center]]
+
[[Image:designer-adding-dynamic-property.png]]
The property editor has been updated to support the new margin and spacing properties added to Qt as part of improvements to the layout system.
The property editor has been updated to support the new margin and spacing properties added to Qt as part of improvements to the layout system.
Строка 119: Строка 104:
Enabled multi-line plain and rich text editing for labels.
Enabled multi-line plain and rich text editing for labels.
-
<div id="extended-and-improved-infrastructure"></div>
+
 
==Extended and Improved Infrastructure==
==Extended and Improved Infrastructure==
-
The [[Qt:Документация 4.3.2/qtnetwork | QtNetwork]] module has been extended to include support for Secure Socket Layer (SSL) communications via the [[Qt:Документация 4.3.2/qsslsocket | QSslSocket]] class. As a result, [[Qt:Документация 4.3.2/qhttp | QHttp]] is now able to provide support for the HTTPS protocol.
+
The [[Qt:Документация_4.3.2/qtnetwork | QtNetwork]] module has been extended to include support for Secure Socket Layer (SSL) communications via the [[Qt:Документация_4.3.2/qsslsocket | QSslSocket]] class. As a result, [[Qt:Документация_4.3.2/qhttp | QHttp]] is now able to provide support for the HTTPS protocol.
Qt's network proxying facilties have been extended to cover HTTP CONNECT proxying, and also include support for Cram-MD5 and NTLM authentication.
Qt's network proxying facilties have been extended to cover HTTP CONNECT proxying, and also include support for Cram-MD5 and NTLM authentication.
-
[[Qt:Документация 4.3.2/linguist-manual#qt-linguist | Qt Linguist]] has been extended to provide support for XML Localization Interchange File Format (XLIFF) files, improving interoperability with third party tools and services that support this format.
+
[[Qt:Документация_4.3.2/linguist-manual#qt-linguist | Qt Linguist]] has been extended to provide support for XML Localization Interchange File Format (XLIFF) files, improving interoperability with third party tools and services that support this format.
-
The [[Qt:Документация 4.3.2/qtxml | QtXml]] module has been expanded with classes to provide a streaming API for handling XML: [[Qt:Документация 4.3.2/qxmlstreamreader | QXmlStreamReader]] and [[Qt:Документация 4.3.2/qxmlstreamwriter | QXmlStreamWriter]] complement Qt's existing range of SAX and DOM-based classes.
+
The [[Qt:Документация_4.3.2/qtxml | QtXml]] module has been expanded with classes to provide a streaming API for handling XML: [[Qt:Документация_4.3.2/qxmlstreamreader | QXmlStreamReader]] and [[Qt:Документация_4.3.2/qxmlstreamwriter | QXmlStreamWriter]] complement Qt's existing range of SAX and DOM-based classes.
Support for the MSYS environment for MinGW on Windows.
Support for the MSYS environment for MinGW on Windows.
-
Qt's threading has been enhanced to include support for timed try-locks in [[Qt:Документация 4.3.2/qmutex | QMutex]], [[Qt:Документация 4.3.2/qreadwritelock | QReadWriteLock]] and [[Qt:Документация 4.3.2/qsemaphore | QSemaphore]]. Additionally, a [[Qt:Документация 4.3.2/qt#ConnectionType-enum | BlockingQueuedConnection]] connection type has been introduced to complement [[Qt:Документация 4.3.2/qt#ConnectionType-enum | DirectConnection]] and [[Qt:Документация 4.3.2/qt#ConnectionType-enum | QueuedConnection]].
+
Qt's threading has been enhanced to include support for timed try-locks in [[Qt:Документация_4.3.2/qmutex | QMutex]], [[Qt:Документация_4.3.2/qreadwritelock | QReadWriteLock]] and [[Qt:Документация_4.3.2/qsemaphore | QSemaphore]]. Additionally, a [[Qt:Документация_4.3.2/qt#ConnectionType-enum | BlockingQueuedConnection]] connection type has been introduced to complement [[Qt:Документация_4.3.2/qt#ConnectionType-enum | DirectConnection]] and [[Qt:Документация_4.3.2/qt#ConnectionType-enum | QueuedConnection]].
-
[[Qt:Документация 4.3.2/qthread | QThread]] has been updated to provide an [[Qt:Документация 4.3.2/qthread#idealThreadCount | idealThreadCount()]] function. This takes various system-specific factors into account to determine the optimal number of threads that can be run on a given system.
+
[[Qt:Документация_4.3.2/qthread | QThread]] has been updated to provide an [[Qt:Документация_4.3.2/qthread#idealThreadCount | idealThreadCount()]] function. This takes various system-specific factors into account to determine the optimal number of threads that can be run on a given system.
-
The event system [[Qt:Документация 4.3.2/qcoreapplication#postEvent | has been extended]] to allow events to be posted with specific priorities, enabling applications to prioritize certain types of event depending on the activities they are performing.
+
The event system [[Qt:Документация_4.3.2/qcoreapplication#postEvent | has been extended]] to allow events to be posted with specific priorities, enabling applications to prioritize certain types of event depending on the activities they are performing.
-
[[Qt:Документация 4.3.2/qdir | QDir]] has been enhanced with the [[Qt:Документация 4.3.2/qdir#addSearchPath | addSearchPath()]] function to provide an extensible mechanism, allowing search paths to be added at run time to [[Qt:Документация 4.3.2/resources | Qt's resource system]].
+
[[Qt:Документация_4.3.2/qdir | QDir]] has been enhanced with the [[Qt:Документация_4.3.2/qdir#addSearchPath | addSearchPath()]] function to provide an extensible mechanism, allowing search paths to be added at run time to [[Qt:Документация_4.3.2/resources | Qt's resource system]].
 +
 
 +
The new [[Qt:Документация_4.3.2/qdiriterator | QDirIterator]] class provides a convenient and less resource-intensive way to traverse large directory structures.
-
The new [[Qt:Документация 4.3.2/qdiriterator | QDirIterator]] class provides a convenient and less resource-intensive way to traverse large directory structures.
 
-
<div id="qtopia-core"></div>
 
==Qtopia Core==
==Qtopia Core==
As in Qt 4.2, many improvements to Qt's graphics support and rendering performance are specific to Qtopia Core. These include general speed optimizations, accelerated graphics API improvements, and additional support for OpenGL ES.
As in Qt 4.2, many improvements to Qt's graphics support and rendering performance are specific to Qtopia Core. These include general speed optimizations, accelerated graphics API improvements, and additional support for OpenGL ES.
Строка 146: Строка 131:
A new font subsystem has been implemented that allows glyphs rendered at run time to be shared between applications. A new pre-rendered font format (QPF2) has also been implemented together with a new <tt>makeqpf</tt> tool to generate them.
A new font subsystem has been implemented that allows glyphs rendered at run time to be shared between applications. A new pre-rendered font format (QPF2) has also been implemented together with a new <tt>makeqpf</tt> tool to generate them.
-
In addition, support for custom font engine plugins has been added through the [[Qt:Документация 4.3.2/qabstractfontengine | QAbstractFontEngine]] and [[Qt:Документация 4.3.2/qfontengineplugin | QFontEnginePlugin]] classes.
+
In addition, support for custom font engine plugins has been added through the [[Qt:Документация_4.3.2/qabstractfontengine | QAbstractFontEngine]] and [[Qt:Документация_4.3.2/qfontengineplugin | QFontEnginePlugin]] classes.
 +
 
{{Qt4.3.2_footer}}
{{Qt4.3.2_footer}}
 +
[[Категория:Qt]]

Пожалуйста, обратите внимание, что все ваши добавления могут быть отредактированы или удалены другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Wiki.crossplatform.ru:Авторское право). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!


Шаблоны, использованные на текущей версии страницы: