1 Here is a list of (major) changes in Qt from 0.96 to 0.98.
2 As usual, we fixed some bugs and improved the documentation.
5 *************** Changes that might affect runtime behavior *****************
9 setMinimumSize() and setMaximumSize() now force the widget to
10 a legal size. resize() and setGeometry() obey the widget's
13 The default behaviour of QWidget::closeEvent is now to hide the widget,
14 not to delete it as before (which was potentially dangerous). This means
15 that if you have a top level widget and the user closes it via the close
16 box, it will now hide itself if you have not reimplemented closeEvent().
17 See the QWidget::closeEvent() and QCloseEvent documentation for details.
19 (There are other changes in QWidget, see below)
22 *************** Changes that might generate compile errors *****************
23 ************** when compiling old code *****************
25 Disabled copy constructors and operators=
26 -----------------------------------------
27 Copy constructors and operators= are disabled in the classes that cannot
28 be copied (this includes all classes that inherit from QObject). This
29 will let the compiler find bugs in your code, you'll get compile time
30 errors where you most probably would have gotten core dumps before.
31 This change has been done in the following classes:
33 QAccel QApplication QBuffer QButton QButtonGroup QCheckBox QClipboard
34 QComboBox QConnection QDataStream QDialog QFile QFileDialog QFrame
35 QGroupBox QIODevice QImageIO QLCDNumber QLabel QLineEdit QListBox
36 QMenuBar QMenuData QMenuItem QMessageBox QMetaObject QObject
37 QPSPrinter QPaintDevice QPainter QPicture QPopupMenu QPrintDialog
38 QPrinter QPushButton QRadioButton QRangeControl QScrollBar QSignal
39 QSocketNotifier QTableView QTextStream QTimer QWidget QWindow
41 The other classes all have sensible copy constructors and operators=.
45 These were protected, now private:
46 static const char *monthNames[];
47 static const char *weekdayNames[];
52 The internals of QListBox are completely reworked. Definition of custom
53 QListBoxItems is now much easier. This is *not* compatible with the old
54 way of defining custom QLBItems. See the QListBoxItem documentation for
59 This was protected, now private:
62 *************** Type changes that might generate warnings: *****************
66 ***************** Obsoleted functions **********************
70 ***************** All other changes from 0.96 to 0.98 **********************
74 Moc previously gave a syntax error when the word "class" was found
75 in a string outside a class declaration. This bug has now been
78 More moc arguments, check the manpage for details.
82 Two new convenience functions; bold() and setBold().
86 setMargin() and margin() are new. setMargin() specifies a minimum margin
87 when the label contents are justified.
91 You can specify a custom widget frame for top level widgets, including
92 no frame at all. See the widget constructor doc. for details.
94 Qt now has enter and leave events. Reimplement the virtual functions
95 void enterEvent( QEvent * ) and void leaveEvent( QEvent * ) to receive
96 events when the mouse cursor leaves or enters the visible part of the