1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
Qt 2.2 introduces new features as well as many improvements over the
2.1.x series. This file will only give an overview of the main changes
since version 2.1. A complete list would simply be too large to be
useful. For more detail see the online documentation which is
included in this distribution, and also available on
http://qt.nokia.com/doc/
The Qt version 2.2 series is binary compatible with the 2.1.x and
2.0.x series - applications compiled for 2.0 or 2.1 will continue to
run with 2.2.
As with previous Qt releases, the API and functionality of Qt is
completely portable between Microsoft Windows and X11. It is also
portable between Windows 95, 98, NT and 2000.
****************************************************************************
* Overview *
****************************************************************************
The greatest new feature in the 2.2 release is the Qt Designer, a
visual GUI design tool. It makes it possible to cut down on
development time even further through WYSIWYG dialog design. The
designer makes use of improved runtime flexibility and a revised
property system. Please see $QTDIR/doc/html/designer.html for a
feature overview.
Qt 2.2 integrates now fully on MS-Windows 2000. This includes fade
and scroll effects for popup windows and title bar gradients for MDI
document windows in the MDI module. As with all Qt features, we
provide the same visual effects on Unix/X11.
Two new classes QAction and QActionGroup make it much easier to
create sophisticated main windows for today's applications. A QAction
abstracts a user interface action that can appear both in menus and
tool bars. An action group makes it easier to deal with groups of
actions. It allows to add, remove or activate its children with a
single call and provides "one of many" semantics for toggle
actions. Changing an action's properties, for example using
setEnabled(),setOn() or setText(), immediately shows up in all
representations.
Few people consider the original OSF Motif style the most elegant or
flashy GUI style. Therefore several attempts have been made to come up
with a slightly improved Motif-ish look and feel. One of them is the
thinner CDE style, that was supported by Qt since version 2.0. In the
2.2 release, we now added support for SGI's very own Motif version on
IRIX workstations. With its more elegant bevelling of 3D elements and
mouse-under highlight effects, it is quite appealing. For Linux users,
we added a Motif plus style, that resembles the bevelling used by the
GIMP toolkit (GTK+). Optionally, this style also does hovering
highlight on buttons.
Last but not least we added support for multi-threaded
applications. The classes involved are QThread to start threads,
QMutex to serialize them and QCondition to signal the occurrence of
events between threads ("condition variables").
Another major change was done regarding distribution. In order to
address the steady growth of functionality in the Qt library, we
split the source code into distinct modules that can be compiled
in (or left out) separately. This also makes it possible for us to
keep the cost of entry into the commercial Qt world as low as possible.
The modules available in Qt 2.2 are:
- Tools: platform-independent Non-GUI API for I/O, encodings, containers,
strings, time & date, and regular expressions.
- Kernel: platform-independent GUI API, a complete window-system API.
- Widgets: portable GUI controls.
- Dialogs: ready-made common dialogs for selection of colors, files,
printers, fonts, and basic types, plus a wizard framework, message
boxes and progress indicator.
- OpenGL 3D Graphics: integration of OpenGL with Qt, making it very
easy to use OpenGL rendering in a Qt application.
- Network: advanced socket and server-socket handling plus
asynchronous DNS lookup.
- Canvas: a highly optimized 2D graphic area.
- Table: a flexible and editable table widget
- IconView: a powerful visualization widget similar to QListView and
QListBox. It contains optionally labelled pixmap items that the user
can select, drag around, rename, delete and more.
- XML: a well-formed XML parser with SAX interface plus an
implementation of the DOM Level1
- Workspace: a workspace window that can contain decorated document
windows for Multi Document Interfaces (MDI).
Network, Canvas, Table and XML are entirely new modules.
Below is a list of the major new features in existing classes as well
as short descriptions of all new classes.
****************************************************************************
* New major features in existing classes *
****************************************************************************
QApplication: - "global strut", an adjustable minimum size for interactable
control elements like the entries in a listbox, useful for
touch-screens. Popup window effects ( setEffectEnabled() )
and more threading support ( guiThreadTaken(), lock(),
unlock(), locked() ).
QCheckBox: - "tristate" is now a property.
QClipboard: - text() supports subtypes.
QComboBox: - "editable" is now a property that is changeable at runtime
QDialog: - support for extensible dialogs ("More...") with
setExtension() and setOrientation(). Optional size grip.
QFont: - new functions styleStrategy() and setStyleHint()
QIconSet: - new constructor that takes both a small and a large pixmap
QKeyEvent: - numeric keypad keys now set a Keypad flag
QLabel: - support for scaled pixmap contents, "pixmap" as property
QLayout: - improved flexibility with setEnabled(), access to the
laid out menu bar with menuBar().
QListView: - "showSortIndicator" as property. New function
QListViewItem::moveItem() to simplify drag and drop.
QMovie: - new functions pushSpace(), pushData(), frameImage()
QMultiLineEdit: - new functions pasteSubType() and copyAvailable()
QObject: - new function normalizeSignalSlot(), tr() now supports a comment.
QPicture: - streaming to and from QDataStream
QPopupMenu: - new signal aboutToHide()
QRegExp: - new functions setPattern() and find()
QRegion: - new function setRects()
QScrollView: - new property "staticBackground" to define a pixmap
background that does not scroll with the contents.
QStatusBar: - "sizeGripEnabled" as property
QStyle: - themable menu bars with drawMenuBarItem(). New functions
buttonMargin(), toolBarHandleExtent(), sliderThickness()
QTabWidget: - new functions currentPageIndex(), setCurrentPage(), new
signal currentChanged(). Similar extensions to QTabBar
and QTabDialog
QTranslator: - new algorithmen for faster lookup. No more risk of
"hash collisions" when many translators are loaded.
QVariant: - new subtype QSizePolicy. Necessary for QWidget's
new sizePolicy property.
QWidget: - new properties "sizePolicy", "ownPalette", "ownFont",
"ownCursor" and "hidden". The size policy is now adjustable
at runtime with setSizePolicy(). Added convenience slot
setDisabled(). Fast geometry mapping functions mapTo() and
mapFrom(). On X11, support for a new background mode
X11ParentRelative.
QWizard: - runtime changable titles with setTitle(), new signal
selected()
QWorkspace: - support for more widget flags like WType_Tool. Titlebar
blending effects on MS-Windows 98/2000.
****************************************************************************
* New classes *
****************************************************************************
QAction - Abstracts a user interface action that can appear both in
menus and tool bars. Changing an action's properties, for
example using setEnabled(),setOn() or setText(),
immediately shows up in all representations.
QActionGroup - Combines actions to a group. An action group makes it easier
to deal with groups of actions. It allows to add, remove or
activate its children with a single call and provides
"one of many" semantics for toggle actions.
QDial - A rounded rangecontrol (like a speedometer or
potentiometer). Both API- and UI-wise the dial is very
similar to a QSlider.
QDom - [XML Module] DOM Level 1 Tree
QMotifPlusStyle - This class implements a Motif-ish look and feel with more
sophisticated bevelling as used by the GIMP toolkit (GTK+)
for Unix/X11.
QMutex: - Provides access serialization between threads.
QSemaphore: - A robust integer semaphore. Another way of thread
serialization.
QThread - Baseclass for platform-independent threads.
QWaitCondition - Provides signalling of the occurrence of events between
threads ("condition variables")
QCanvas - [Canvas Module] a highly optimized 2D graphic area.
QTable - [Table Module] a flexible and editable table widget
QXML - [XML Module] XML parser with SAX interface
|