1Here is a list of (major) changes in Qt from 0.96 to 0.98. 2As usual, we fixed some bugs and improved the documentation. 3 4 5*************** Changes that might affect runtime behavior ***************** 6 7QWidget: 8-------- 9 setMinimumSize() and setMaximumSize() now force the widget to 10 a legal size. resize() and setGeometry() obey the widget's 11 minimum/maximum size. 12 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. 18 19 (There are other changes in QWidget, see below) 20 21 22*************** Changes that might generate compile errors ***************** 23************** when compiling old code ***************** 24 25Disabled 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: 32 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 40 41 The other classes all have sensible copy constructors and operators=. 42 43QDate: 44------ 45 These were protected, now private: 46 static const char *monthNames[]; 47 static const char *weekdayNames[]; 48 uint jd; 49 50QListBox: 51--------- 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 55 details. 56 57QTime: 58------ 59 This was protected, now private: 60 uint ds; 61 62*************** Type changes that might generate warnings: ***************** 63 64none 65 66***************** Obsoleted functions ********************** 67 68none 69 70***************** All other changes from 0.96 to 0.98 ********************** 71 72moc: 73---- 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 76 fixed. 77 78 More moc arguments, check the manpage for details. 79 80QFont: 81------ 82 Two new convenience functions; bold() and setBold(). 83 84QLabel: 85------- 86 setMargin() and margin() are new. setMargin() specifies a minimum margin 87 when the label contents are justified. 88 89QWidget: 90-------- 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. 93 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 97 widget. 98 99