source: trunk/doc/html/keyfeatures30.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 20.1 KB
RevLine 
[190]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/changes.doc:36 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>Key Features in Qt 3.0</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Key Features in Qt 3.0</h1>
33
34
35
36<p> Qt 3.0 adds a lot of new features and improvements over the Qt 2.x
37series. Some internals have undergone major redesign and new classes
38and methods have been added.
39<p> We have tried to keep the API of Qt 3.0 as compatible as possible with
40the Qt 2.x series. For most applications only minor changes will be
41needed to compile and run them successfully using Qt 3.0.
42<p> One of the major new features that has been added in the 3.0 release
43is a module allowing you to easily work with databases. The API is
44platform independent and database neutral. This module is seamlessly
45integrated into Qt Designer, greatly simplifying the process of
46building database applications and using data aware widgets.
47<p>
48Other major new features include a plugin architecture. You can use
49your own and third party plugins your own applications.
50The Unicode support of Qt 2.x has been greatly enhanced, it now
51includes full support for scripts written from right to left (e.g.
52Arabic and Hebrew) and also provides improved support for Asian
53languages.
54<p> Many new classes have been added to the Qt Library. Amongst them are
55classes that provide a docking architecture
56(<a href="qdockarea.html">QDockArea</a>/<a href="qdockwindow.html">QDockWindow</a>), a powerful rich text editor
57(<a href="qtextedit.html">QTextEdit</a>), a class to store and access application settings
58(<a href="qsettings.html">QSettings</a>) and a class to create and communicate with processes
59(<a href="qprocess.html">QProcess</a>).
60<p> Apart from the changes in the library itself a lot has been done to
61make the development of Qt applications with Qt 3.0 even easier than
62before. Two new applications have been added: Qt Linguist is a tool to
63help you translate your application into different languages; Qt
64Assistant is an easy to use help browser for the Qt documentation that
65supports bookmarks and can search by keyword.
66<p> Another change concerns the Qt build system, which has been reworked
67to make it a lot easier to port Qt to new platforms. You can use this
68platform independent build system for your own applications.
69<p> <h2> The Qt Library
70</h2>
71<a name="1"></a><p> A large number of new features has been added to Qt 3.0. The following
72list gives an overview of the most important new and changed aspects
73of the Qt library. A full list of every new method follows the
74overview.
75<p> <h3> Database support
76</h3>
77<a name="1-1"></a><p> One of the major new features in Qt 3.0 is the <a href="sql.html">SQL
78module</a> that provides multiplatform access to SQL databases,
79making database application programming with Qt seamless and portable.
80The API, built with standard SQL, is database-neutral and software
81development is independent of the underlying database.
82<p> A collection of tightly focused C++ classes are provided to give the
83programmer direct access to SQL databases. Developers can send raw SQL
84to the database server or have the Qt SQL classes generate SQL queries
85automatically. Drivers for Oracle, PostgreSQL, MySQL and ODBC are
86available and writing new drivers is straightforward.
87<p> Tying the results of SQL queries to GUI components is fully supported
88by Qt's SQL widgets. These classes include a tabular data widget
89(for spreadsheet-like data presentation with in-place editing), a
90form-based data browser (which provides data navigation and edit
91functions) and a form-based data viewer (which provides read-only
92forms). This framework can be extended by using custom field editors,
93allowing for example, a data table to use custom widgets for in-place
94editing. The SQL module fully supports Qt's signal/slots mechanism,
95making it easy for developers to include their own data validation and
96auditing code.
97<p> Qt Designer fully supports Qt's SQL module. All SQL widgets can be
98laid out within Qt Designer, and relationships can be established
99between controls visually. Many interactions can be defined purely in
100terms of Qt's signals/slots mechanism directly in Qt Designer.
101<p>
102<h3> Plugins
103</h3>
104<a name="1-2"></a><p> The <a href="qlibrary.html">QLibrary</a> class provides a platform independent wrapper for runtime
105loading of shared libraries. QPluginManager makes it trivial to implement
106plugin support in applications. The Qt library is able to load
107additional styles, database drivers and text codecs from plugins.
108<p> Qt Designer supports custom widgets in plugins, and will use the
109widgets both when designing and previewing forms.
110<p> See the <a href="plugins-howto.html">plugins documentation</a>.
111<p> <h3> Rich text engine and editor
112</h3>
113<a name="1-3"></a><p> The rich text engine originally introduced in Qt 2.0 has been further
114optimized and extended to support editing. It allows editing formatted
115text with different fonts, colors, paragraph styles, tables and
116images. The editor supports different word wrap modes, command-based
117undo/redo, multiple selections, drag and drop, and many other
118features. The new <a href="qtextedit.html">QTextEdit</a> engine is highly optimized for proccesing
119and displaying large documents quickly and efficiently.
120<p> <h3> Unicode
121</h3>
122<a name="1-4"></a><p> Apart from the rich text engine, another new feature of Qt 3.0 that
123relates to text handling is the greatly improved Unicode support. Qt
1243.0 includes an implementation of the bidirectional algorithm (BiDi)
125as defined in the Unicode standard and a shaping engine for Arabic,
126which gives full native language support to Arabic and Hebrew speaking
127people. At the same time the support for Asian languages has been
128greatly enhanced.
129<p> The support is almost transparent for the developer using Qt to
130develop their applications. This means that developers who developed
131applications using Qt 2.x will automatically gain the full support for
132these languages when switching to Qt 3.0. Developers can rely on their
133application to work for people using writing systems different from
134Latin1, without having to worry about the complexities involved with
135these scripts, as Qt takes care of this automatically.
136<p> <h3> Docked and Floating Windows
137</h3>
138<a name="1-5"></a><p> Qt 3.0 introduces the concept of Dock Windows and Dock Areas. Dock
139windows are widgets, that can be attached to, and detached from, dock
140areas. The commonest kind of dock window is a tool bar. Any number of
141dock windows may be placed in a dock area. A main window can have dock
142areas, for example, <a href="qmainwindow.html">QMainWindow</a> provides four dock areas (top, left,
143bottom, right) by default. The user can freely move dock windows and
144place them at a convenient place in a dock area, or drag them out of
145the application and have them float freely as top level windows in
146their own right. Dock windows can also be minimized or hidden.
147<p> For developers, dock windows behave just like ordinary widgets. QToolbar
148for example is now a specialized subclass of a dock window. The API
149of QMainWindow and <a href="qtoolbar.html">QToolBar</a> is source compatible with Qt 2.x, so
150existing code which uses these classes will continue to work.
151<p> <h3> Regular Expressions
152</h3>
153<a name="1-6"></a><p> Qt has always provided <a href="qregexp.html#regular-expression">regular expression</a> support, but that support
154was pretty much limited to what was required in common GUI control
155elements such as file dialogs. Qt 3.0 introduces a new regular
156expression engine, <a href="qregexp.html">QRegExp</a>, that supports most of Perl's regex
157features and is Unicode based. The most useful additions are support
158for parentheses (capturing and non-capturing) and backreferences.
159<p> <h3> Storing application settings
160</h3>
161<a name="1-7"></a><p> Most programs will need to store some settings between runs, for
162example, user selected fonts, colors and other preferences, or a list
163of recently used files. The new <a href="qsettings.html">QSettings</a> class provides a platform
164independent way to achieve this goal. The API makes it easy to store
165and retrieve most of the basic data types used in Qt (such as basic
166C++ types, strings, lists, colors, etc). The class uses the registry
167on the Windows platform and traditional resource files on Unix.
168<p> <h3> Creating and controlling other processes
169</h3>
170<a name="1-8"></a><p> <a href="qprocess.html">QProcess</a> is a class that allows you to start other programs from
171within a Qt application in a platform independent manner. It gives you
172full control over the started program, for example you can redirect
173the input and output of console applications.
174<p> <h3> Accessibility
175</h3>
176<a name="1-9"></a><p> Accessibility means making software usable and accessible to a wide
177range of users, including those with disabilities. In Qt 3.0, most
178widgets provide accessibility information for assistive tools that can
179be used by a wide range of disabled users. Qt standard widgets like
180buttons or range controls are fully supported. Support for complex
181widgets, like e.g. <a href="qlistview.html">QListView</a>, is in development. Existing applications
182that make use of standard widgets will become accessible just by using
183Qt 3.0.
184<p> Qt uses the Active Accessibility infrastructure on Windows, and needs
185the MSAA SDK, which is part of most platform SDKs. With improving
186standardization of accessibility on other platforms, Qt will support
187assistive technologies on other systems, too.
188<p> <h3> XML Improvements
189</h3>
190<a name="1-10"></a><p> The XML framework introduced in Qt 2.2 has been vastly improved. Qt
1912.2 already supported level 1 of the Document Object Model (DOM), a
192W3C standard for accessing and modifying XML documents. Qt 3.0 has
193added support for DOM Level 2 and XML namespaces.
194<p> The XML parser has been extended to allow incremental parsing of XML
195documents. This allows you to start parsing the document directly
196after the first parts of the data have arrived, and to continue
197whenever new data is available. This is especially useful if the XML
198document is read from a slow source, e.g. over the network, as it
199allows the application to start working on the data at a very early
200stage.
201<p> <h3> SVG support
202</h3>
203<a name="1-11"></a><p> SVG is a W3C standard for "Scalable Vector Graphics". Qt 3.0's XML
204support means that <a href="qpicture.html">QPicture</a> can optionally generate and import static
205SVG documents. All the SVG features that have an equivalent in
206<a href="qpainter.html">QPainter</a> are supported.
207<p> <h3> Multihead support
208</h3>
209<a name="1-12"></a><p> Many professional applications, such as DTP and CAD software, are able
210to display data on two or more monitors. In Qt 3.0 the <a href="qdesktopwidget.html">QDesktopWidget</a>
211class provides the application with runtime information about the
212number and geometry of the desktops on the different monitors and such
213allows applications to efficiently use a multi-monitor setup.
214<p> The virtual desktop of Mac OS X, Windows 98, and 2000 is supported, as well
215as the traditional multi-screen and the newer Xinerama multihead setups on
216X11.
217<p> <h3> X11 specific enhancements
218</h3>
219<a name="1-13"></a><p> Qt 3.0 now complies with the NET WM Specification, recently adopted
220by KDE 2.0. This allows easy integration and proper execution with
221desktop environments that support the NET WM specification.
222<p> The font handling on X11 has undergone major changes. <a href="qfont.html">QFont</a> no longer
223has a one-to-one relation with window system fonts. QFont is now a
224logical font that can load multiple window system fonts to simplify
225Unicode text display. This completely removes the burden of
226changing/setting fonts for a specific locale/language from the
227programmer. For end-users, any font can be used in any locale. For
228example, a user in Norway will be able to see Korean text without
229having to set their locale to Korean.
230<p> Qt 3.0 also supports the new render extension recently added to
231XFree86. This adds support for anti aliased text and pixmaps with
232alpha channel (semi transparency) on the systems that support the
233rendering extension (at the moment XFree 4.0.3 and later).
234<p> <h3> Printing
235</h3>
236<a name="1-14"></a><p> Printing support has been enhanced on all platforms. The <a href="qprinter.html">QPrinter</a>
237class now supports setting a virtual resolution for the painting
238process. This makes WYSIWYG printing trivial, and also allows you to
239take full advantage of the high resolution of a printer when painting
240on it.
241<p> The postscript driver built into Qt and used on Unix has been greatly
242enhanced. It supports the embedding of true/open type and type1 fonts
243into the document, and can correctly handle and display Unicode.
244Support for fonts built into the printer has been enhanced and Qt now
245knows about the most common printer fonts used for Asian languages.
246<p> <h3> <a href="qhttp.html">QHttp</a>
247</h3>
248<a name="1-15"></a><p> This class provides a simple interface for HTTP downloads and uploads.
249<p> <h3> Compatibility with the Standard Template Library (STL)
250</h3>
251<a name="1-16"></a><p> Support for the C++ Standard Template Library has been added to the
252<a href="qt-template-lib.html">Qt Template Library (QTL)</a>. The QTL
253classes now contain appropriate copy constructors and typedefs so that
254they can be freely mixed with other STL containers and algorithms. In
255addition, new member functions have been added to QTL template classes
256which correspond to STL-style naming conventions (e.g., push_back()).
257<p> <h2> Qt Designer
258</h2>
259<a name="2"></a><p> <a href="designer-manual.html">Qt Designer</a> was a pure dialog
260editor in Qt 2.2 but has now been extended to provide the full
261functionality of a GUI design tool.
262<p> This includes the ability to lay out main windows with menus and
263toolbars. Actions can be edited within Qt Designer and then plugged
264into toolbars and menu bars via drag and drop. Splitters can now be
265used in a way similar to layouts to group widgets horizontally or
266vertically.
267<p> In Qt 2.2, many of the dialogs created by Qt Designer had to be
268subclassed to implement functionality beyond the predefined signal and
269slot connections. Whilst the subclassing approach is still fully supported,
270Qt Designer now offers an alternative: a plugin for editing
271slots. The editor offers features such as syntax highlighting,
272completion, parentheses matching and incremental search.
273<p> The functionality of Qt Designer can now be extended via plugins.
274Using Qt Designer's interface or by implementing one of the provided
275interfaces in a plugin, a two way communication between plugin and Qt
276Designer can be established. This functionality is used to implement
277plugins for custom widgets, so that they can be used as real widgets
278inside the designer.
279<p> Basic support for project management has been added. This allows you
280to read and edit *.pro files, add and remove files to/from the project
281and do some global operations on the project. You can now open the
282project file and have one-click access to all the *.ui forms in the
283project.
284<p> In addition to generating code via uic, Qt Designer now supports the
285dynamic creation of widgets directly from XML user interface
286description files (*.ui files) at runtime. This eliminates the need of
287recompiling your application when the GUI changes, and could be used
288to enable your customers to do their own customizations. Technically,
289the feature is provided by a new class, <a href="qwidgetfactory.html">QWidgetFactory</a> in the
290QResource library.
291<p> <h2> Qt Linguist
292</h2>
293<a name="3"></a><p> <a href="linguist-manual.html">Qt Linguist</a> is a GUI utility to
294support translating the user-visible text in applications written with
295Qt. It comes with two command-line tools: lupdate and lrelease.
296<p> Translation of a Qt application is a three-step process:
297<p> <ul>
298<li> Run lupdate to extract user-visible text from the C++ source
299code of the Qt application, resulting in a translation source file
300(a *.ts file).
301<li> Provide translations for the source texts in the *.ts file using
302Qt Linguist.
303<li> Run lrelease to obtain a light-weight message file (a *.qm file)
304from the *.ts file, which provides very fast lookup for released
305applications.
306</ul>
307<p> Qt Linguist is a tool suitable for use by translators. Each
308user-visible (source) text is characterized by the text itself, a
309context (usually the name of the C++ class containing the text), and
310an optional comment to help the translator. The C++ class name will
311usually be the name of the relevant dialog, and the comment will often
312contain instructions that describe how to navigate to the relevant
313dialog.
314<p> You can create phrase books for Qt Linguist to provide common
315translations to help ensure consistency and to speed up the
316translation process. Whenever a translator navigates to a new text to
317translate, Qt Linguist uses an intelligent algorithm to provide a list
318of possible translations: the list is composed of relevant text from
319any open phrase books and also from identical or similar text that has
320already been translated.
321<p> Once a translation is complete it can be marked as "done"; such
322translations are included in the *.qm file. Text that has not been
323"done" is included in the *.qm file in its original form. Although Qt
324Linguist is a GUI application with dock windows and mouse control,
325toolbars, etc., it has a full set of keyboard shortcuts to make
326translation as fast and efficient as possible.
327<p> When the Qt application that you're developing evolves (e.g. from
328version 1.0 to version 1.1), the utility lupdate merges the source
329texts from the new version with the previous translation source file,
330reusing existing translations. In some typical cases, lupdate may
331suggest translations. These translations are marked as unfinished, so
332you can easily find and check them.
333<p> <h2> Qt Assistant
334</h2>
335<a name="4"></a><p> Thanks to the positive feedback we received about the <a href="helpsystem.html#help-system">help system</a>
336built into <a href="designer-manual.html">Qt Designer</a>, we decided
337to offer this part as a separate application called <a href="assistant.html">Qt Assistant</a>. Qt Assistant can be used to
338browse the Qt class documentation as well as the manuals for Qt
339Designer and Qt Linguist. It offers index searching, a contents
340overview, bookmarks history and incremental search. Qt Assistant is
341used by both Qt Designer and Qt Linguist for browsing their help
342documentation.
343<p> <h2> qmake
344</h2>
345<a name="5"></a><p> To ease portability we now provide the <a href="qmake-manual.html">qmake</a> utility to replace tmake. QMake is a C++ version of
346tmake which offers additional functionallity that is difficult to
347reproduce in tmake. Trolltech uses qmake in its build system for Qt
348and related products and we have released it as free software.
349<p>
350<!-- eof -->
351<p><address><hr><div align=center>
352<table width=100% cellspacing=0 border=0><tr>
353<td>Copyright &copy; 2007
354<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
355<td align=right><div align=right>Qt 3.3.8</div>
356</table></div></address></body>
357</html>
Note: See TracBrowser for help on using the repository browser.