|
1 Here is a list of user-visible changes in Qt from 1.33 to 1.40. |
|
2 |
|
3 Qt 1.40 supports drag and drop, with a simple, platform independent |
|
4 API. There are eleven new widget classes in 1.40. Asynchronous I/O |
|
5 support is now in the official Qt API. |
|
6 |
|
7 Since Qt no longer supports any platforms that only supports 8.3 |
|
8 format file names, the file names of the Qt source and include files |
|
9 have been made simpler. #include <qcombobox.h> instead of qcombo.h, |
|
10 etc. The old names are still present for compatibility. |
|
11 |
|
12 The new Qt Xt/Motif Extension allows Qt widgets and applications to |
|
13 coexist with old Xt/Motif-based applications and widgets. |
|
14 |
|
15 There are more than one hundred new functions added to existing |
|
16 classes and, as usual, we fixed some bugs, made some more speedups, |
|
17 and improved the documentation. |
|
18 |
|
19 |
|
20 **************************************************************************** |
|
21 * New classes * |
|
22 **************************************************************************** |
|
23 |
|
24 * New widgets |
|
25 |
|
26 QHeader - Table header |
|
27 QListView - Multicolun listview/treeview |
|
28 QMainWindow - Application main window |
|
29 QScrollView - Scrolling area (successor of QwViewPort) |
|
30 QSpinBox - Spin button |
|
31 QSplitter - Paned window |
|
32 QStatusBar - Status bar |
|
33 QToolBar - Container for tool buttons (and other widgets) |
|
34 QToolButton - Fancy push button with auto-raise |
|
35 QWhatsThis - Light weight help system |
|
36 QWidgetStack - Stack of widgets |
|
37 |
|
38 * Support classes |
|
39 |
|
40 QFileIconProvider - Provides icons for the file dialog |
|
41 QIconSet - Set of icons for different states |
|
42 QListViewItem - Content of a QListView |
|
43 QCheckListItem - Checkable list view item |
|
44 |
|
45 * Drag and drop related classes |
|
46 |
|
47 QDragObject |
|
48 QStoredDrag |
|
49 QTextDrag |
|
50 QImageDrag |
|
51 QDragManager |
|
52 QDropSite |
|
53 |
|
54 * Asynchronous I/O |
|
55 |
|
56 QAsyncIO |
|
57 QDataPump |
|
58 QDataSink |
|
59 QDataSource |
|
60 QDataStream |
|
61 QIODeviceSource |
|
62 QImageConsumer |
|
63 QImageDecoder |
|
64 QImageFormat |
|
65 QImageFormatType |
|
66 |
|
67 |
|
68 * New Events |
|
69 |
|
70 QShowEvent |
|
71 QHideEvent |
|
72 QDragMoveEvent |
|
73 QDragEnterEvent |
|
74 QDragResponseEvent |
|
75 QDragLeaveEvent |
|
76 QDropEvent |
|
77 QChildEvent |
|
78 |
|
79 |
|
80 |
|
81 **************************************************************************** |
|
82 * Enhancements from 1.33 to 1.40 * |
|
83 **************************************************************************** |
|
84 |
|
85 The file and print dialogs are far better. |
|
86 |
|
87 Layouts will now automatically readjust if child widgets change |
|
88 maximum/minimum sizes, or are deleted. |
|
89 |
|
90 QFont now supports KOI8R |
|
91 |
|
92 The reference documentation of the extensions is now integrated with |
|
93 the main reference documentation in the qt/html directory. |
|
94 |
|
95 **************************************************************************** |
|
96 * Changes that might affect runtime behavior * |
|
97 **************************************************************************** |
|
98 |
|
99 None known. |
|
100 |
|
101 |
|
102 **************************************************************************** |
|
103 * Changes that might generate compile errors * |
|
104 * when compiling old code * |
|
105 **************************************************************************** |
|
106 |
|
107 none |
|
108 |
|
109 **************************************************************************** |
|
110 * Type changes that might generate warnings: * |
|
111 **************************************************************************** |
|
112 |
|
113 none |
|
114 |
|
115 **************************************************************************** |
|
116 * Deprecated functions * |
|
117 **************************************************************************** |
|
118 Old function: Replaced by: |
|
119 ------------- ----------- |
|
120 QPixmap::isOptimized QPixmap::optimization |
|
121 QPixmap::optimize QPixmap::setOptimization |
|
122 QPixmap::isGloballyOptimized QPixmap::defaultOptimization |
|
123 QPixmap::optimizeGlobally QPixmap::setDefaultOptimization |
|
124 |
|
125 |
|
126 **************************************************************************** |
|
127 * New global functions |
|
128 **************************************************************************** |
|
129 |
|
130 bitBlt( QImage* dst, int dx, int dy, const QImage* src, |
|
131 int, int, int, int, int conversion_flags ); |
|
132 |
|
133 bitBlt( QPaintDevice *dst, int, int, const QImage* src, |
|
134 int, int, int, int, int conversion_flags ); |
|
135 |
|
136 **************************************************************************** |
|
137 * New public/protected functions added to existing classes * |
|
138 **************************************************************************** |
|
139 |
|
140 QApplication::sendPostedEvents( QObject *receiver, int event_type ) [static] |
|
141 |
|
142 QButton::setDown() |
|
143 QButton::toggle() |
|
144 |
|
145 QButtonGroup::setButton( int id ) |
|
146 QButtonGroup::buttonToggled( bool on ) |
|
147 |
|
148 QComboBox::setListBox( QListBox * ) |
|
149 QComboBox::listBox() |
|
150 |
|
151 QComboBox::setAutoCompletion( bool ) |
|
152 QComboBox::autoCompletion() |
|
153 |
|
154 QComboBox::clearEdit() |
|
155 QComboBox::setEditText( const char * ) |
|
156 |
|
157 QDict::resize() |
|
158 |
|
159 QDir::drives() [static] |
|
160 QDir::remove() |
|
161 |
|
162 QFileDialog::getExistingDirectory() [static] |
|
163 QFileDialog::setIconProvider() [static] |
|
164 QFileDialog::iconProvider() [static] |
|
165 QFileDialog::setSelection( const char* ) |
|
166 QFileDialog::setMode( Mode ) |
|
167 QFileDialog::mode() |
|
168 QFileDialog::setFilter( const char * ) |
|
169 QFileDialog::setFilters( const char ** ) |
|
170 QFileDialog::setFilters( const QStrList & ) |
|
171 QFileDialog::addWidgets( QLabel *, QWidget *, QPushButton * ) [protected] |
|
172 |
|
173 QFont::isCopyOf( const QFont & ) |
|
174 |
|
175 QFontMetrics::minLeftBearing() |
|
176 QFontMetrics::minRightBearing() |
|
177 QFontMetrics::inFont(char) |
|
178 QFontMetrics::leftBearing(char) |
|
179 QFontMetrics::rightBearing(char) |
|
180 QFontMetrics::boundingRect( int x, int y, int w, int h, int flags, |
|
181 const char *str, int, int, int *, char ** ) |
|
182 QFontMetrics::size( int flags, char *str, int, int, int *, char ** ) |
|
183 |
|
184 QFrame::margin() |
|
185 QFrame::setMargin( int ) |
|
186 |
|
187 QGManager::unFreeze() |
|
188 QGManager::remove( QWidget *w ) |
|
189 QGManager::setName( QChain *, const char * ) |
|
190 |
|
191 QGridLayout::numRows() |
|
192 QGridLayout::numCols() |
|
193 QGridLayout::expand( int rows, int cols ) |
|
194 |
|
195 |
|
196 QImage::copy(int x, int y, int w, int h, int conversion_flags=0) |
|
197 QImage::copy(QRect&) |
|
198 QImage::allGray() |
|
199 QImage::isGrayscale() |
|
200 QImage::convertDepthWithPalette( int, QRgb* p, int pc, int cf=0 ) |
|
201 QImage::smoothScale(int width, int height) |
|
202 QImage::loadFromData( QByteArray data, const char *format=0 ) |
|
203 |
|
204 QIntDict::resize() |
|
205 |
|
206 QLabel::clear() |
|
207 |
|
208 QLCDNumber::sizeHint() const |
|
209 |
|
210 QLineEdit::setEnabled( bool ) |
|
211 QLineEdit::setFont( const QFont & ) |
|
212 QLineEdit::setSelection( int, int ) |
|
213 QLineEdit::setCursorPosition( int ) |
|
214 QLineEdit::cursorPosition() const |
|
215 QLineEdit::validateAndSet( const char *, int, int, int ) |
|
216 QLineEdit::insert( const char * ) |
|
217 QLineEdit::clear() |
|
218 QLineEdit::repaintArea( int, int ) [protected] |
|
219 |
|
220 QListBox::setFixedVisibleLines( int lines ) |
|
221 QListBox::sizeHint() |
|
222 QListBox::ensureCurrentVisible( int ) |
|
223 |
|
224 QMenuData::insertItem( const char *text, |
|
225 const QObject *receiver, const char *member, |
|
226 int accel, int id, int index = -1 ) |
|
227 QMenuData::insertItem( const QPixmap &pixmap, |
|
228 const QObject *receiver, const char *member, |
|
229 int accel, int id, int index = -1 ) |
|
230 QMenuData::insertItem( const QPixmap &pixmap, const char *text, |
|
231 const QObject *receiver, const char *member, |
|
232 int accel, int id, int index = -1 ) |
|
233 QMenuData::findItem( int id, QMenuData ** parent ) |
|
234 |
|
235 |
|
236 QMovie::QMovie(QDataSource*, int bufsize=1024) |
|
237 |
|
238 QMultiLineEdit::setFixedVisibleLines( int lines ) |
|
239 |
|
240 QObject::tr( const char * ) |
|
241 QObject::name( const char * defaultName ) |
|
242 |
|
243 QPainter::QPainter( const QPaintDevice *, const QWidget * ) |
|
244 QPainter::begin( const QPaintDevice *, const QWidget * ) |
|
245 QPainter::xForm( const QPointArray &, int index, int npoints ) |
|
246 QPainter::xFormDev( const QPointArray &, int index, int npoints ) |
|
247 QPainter::drawImage() |
|
248 QPainter::drawTiledPixmap() |
|
249 QPainter::drawPicture( const QPicture & ) |
|
250 |
|
251 QPalette::isCopyOf( const QPalette & ) |
|
252 |
|
253 QPixmap::loadFromData( QByteArray data, |
|
254 const char *, |
|
255 int ) |
|
256 QPixmap::optimization() |
|
257 QPixmap::setOptimization( Optimization ) |
|
258 QPixmap::defaultOptimization() |
|
259 QPixmap::setDefaultOptimization( Optimization ) |
|
260 |
|
261 QPopupMenu::exec( const QPoint &, int ) |
|
262 QPopupMenu::aboutToShow() |
|
263 |
|
264 QPrinter::setPageOrder( PageOrder ) |
|
265 QPrinter::pageOrder() |
|
266 QPrinter::setColorMode( ColorMode ) |
|
267 QPrinter::colorMode() |
|
268 |
|
269 QPtrDict::resize() |
|
270 |
|
271 QPushButton::setIsMenuButton( bool ) |
|
272 QPushButton::isMenuButton() |
|
273 |
|
274 QRegion::QRegion( int x, int y, int w, int h, RegionType = Rectangle ) |
|
275 QRegion::boundingRect() |
|
276 QRegion::rects() |
|
277 |
|
278 QSize::expandedTo() |
|
279 QSize::boundedTo() |
|
280 |
|
281 QWidget::isEnabledTo(QWidget*) |
|
282 QWidget::isEnabledToTLW() |
|
283 QWidget::fontPropagation() |
|
284 QWidget::setFontPropagation( PropagationMode ) |
|
285 QWidget::palettePropagation() |
|
286 QWidget::setPalettePropagation( PropagationMode ) |
|
287 QWidget::isVisibleTo(QWidget*) |
|
288 QWidget::setAcceptDrops( bool on ) |
|
289 QWidget::acceptDrops() |
|
290 QWidget::focusData() [protected] |
|
291 |