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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
|
Qt 4.2 introduces many new features as well as many improvements and
bugfixes over the 4.1.x series. For more details, see the online
documentation which is included in this distribution. The
documentation is also available at http://doc.trolltech.com/
The Qt version 4.2 series is binary compatible with the 4.1.x series.
Applications compiled for 4.1 will continue to run with 4.2.
The Qtopia Core version 4.2 series is binary compatible with the 4.1.x
series except for some parts of the device handling API, as detailed
in Platform Specific Changes below.
****************************************************************************
* General *
****************************************************************************
New features
------------
- QCalendarWidget provides a standard monthly calendar widget with date
selection features.
- QCleanlooksStyle provides the new Cleanlooks style, a clone of the GNOME
ClearLooks style, giving Qt applications a native look on GNOME desktops.
- QCompleter provides facilities for auto completion in text entry widgets.
- QDataWidgetMapper can be used to make widgets data-aware by mapping them
to sections of an item model.
- QDesktopServices provides desktop integration features, such as support
for opening URLs using system services.
- QDialogButtonBox is used in dialogs to ensure that buttons are placed
according to platform-specific style guidelines.
- QFileSystemWatcher enables applications to monitor files and directories
for changes.
- QFontComboBox provides a standard font selection widget for document
processing applications.
- QGraphicsView and related classes provide the Graphics View framework, a
replacement for Qt 3's canvas module that provides an improved API, enhanced
rendering, and more responsive handling of large numbers of canvas items.
- QGLFramebufferObject encapsulates OpenGL framebuffer objects.
- QMacPasteboardMime handles Pasteboard access on Qt/Mac. This obsoletes
QMacMime as the underlying system has changed to support Apple's new
Pasteboard Manager. Any old QMacMime objects will not be used.
- QNetworkInterface represents a network interface, providing information
about the host's IP addresses and network interfaces.
- QResource provides static functions that control resource lookup and
provides a way to navigate resources directly without levels of
indirection through QFile/QFileEngine.
- QSystemTrayIcon allows applications to provide their own icon in the
system tray.
- QTimeLine gives developers access to a standard time line class with which
to create widget animations.
- The QtDBus module provides inter-process communication on platforms
that support the D-BUS protocol.
- The QUndo* classes in Qt's Undo framework provide undo/redo functionality
for applications.
- Support for the Glib event loop to enable integration between Qt and non-Qt
applications on the GNOME desktop environment.
- Improved Accessibility for item-based views and QTextEdit.
- Support for main window animations and tabbed dock widgets.
- Added an SVG icon engine to enable SVG drawings to be used by QIcon.
- Widgets can now be styled according to rules specified in a style sheet,
using a syntax familiar to users of Cascading Style Sheets (CSS). Style
sheets are set using the QWidget::styleSheet property.
- Introduced a new key mapper system which improves the shortcut system by
only testing the real possible shortcuts, such as Ctrl+Shift+= and Ctrl++
on an English keyboard.
- Improved and enhanced QMessageBox to support native look and feel on many
common platforms.
- Experimental support for Qt usage reporting ("metered licenses") on Linux,
Windows and Mac OS X. Reporting is disabled by default.
- A screen magnification utility, pixeltool, is provided. It is designed to help
with the process of fine-tuning styles and user interface features.
- New qrand() and qsrand() functions to provide thread safe equivalents to
rand() and srand().
General improvements
--------------------
- Item views
* Selections are maintained when the layout of the model changes
(e.g., due to sorting).
* Convenience views can perform dynamic sorting of items when the data
in items changes.
* QStandardItem provides an item-based API for use with
QStandardItemModel and the model/view item view classes.
* QStandardItemModel API provides a classic item-based approach to
working with models.
* Single selection item views on Mac OS X cannot change their current
item without changing the current selection when using keyboard
navigation.
- Plastique style has improved support for palettes, and now requires
XRender support on X11 for alpha transparency.
- Tulip containers
* Added typedefs for STL compatability.
* Added function overloads to make the API easier to use.
- Added the Q3TextStream class for compatiblity with Qt 3 and to assist with
porting projects.
- OpenGL paint engine
* Added support for all composition modes of QPainter natively using
OpenGL.
* Fixed a case where very large polygons failed to render correctly.
* Ensured that glClear() is only called in begin() if the
QGLWidget::autoFillBackground() property is true.
* Ensured that a buffer swap is only performed in end() if
QGLWidget::autoBufferSwap() is true.
* Improved text drawing speed and quality.
- Raster paint engine
* Fixed blending of 8 bit indexed images with alpha values.
* Fixed drawing onto QImages that were wider than 2048 pixels.
* Fixed alpha-blending and anti-aliasing on ARGB32 images.
* Improved point drawing performance.
* Fixed issue where lines were drawn between coordinates that were
rounded instead of truncated.
* Ensured that setClipRegion(QRegion()) clips away all painting
operations as originally intended.
Third party components
----------------------
- Dropped support for MySQL version 3.
- Updated Qt's SQLite version to 3.3.6.
- Updated Qt's FreeType version to 2.2.1.
- Updated Qt's libpng version to 1.2.10.
Build System
------------
- Auto-detect PostgreSQL and MySQL using pg_config and mysql_config on UNIX
based systems in the configure script
- Added "-system-sqlite" option to configure to use the system's SQLite
library instead of Qt's SQLite version.
- Added QT_ASCII_CAST_WARNINGS define that will output a warning on implicit
ascii to Unicode conversion when set. Only works if the compiler supports
deprecated API warnings.
- Added Q_REQUIRED_RESULT to some functions. This macro triggers a warning
if the result of a function is discarded. Currently only supported by gcc.
- Qt/X11, Qt/Mac and Qtopia Core only:
* Added all QT_NO_* defines to the build key.
- Qt/X11 and Qtopia Core only:
* As in Qt 3, the configure script enables the -release option by
default, causing the Qt libraries to be built with optimizations. If
configured with the -debug option, the debug builds no longer result
in libraries with the _debug suffix.
On modern systems, flags are added to the Qt build to also
generate debugging information, which is then stored in a
separate .debug file. The additional debug information does not
affect the performance of the optimized code and tools like gdb
and valgrind automatically pick up the separate .debug
files. This way it is possible to get useful backtraces even
with release builds of Qt.
* Removed the last vestiges of the module options in the configure
script, previously they were available but did not function.
* Implemented a -build option in the configure script to conditionally
compile only certain sections of Qt.
* Made it possible to build Qt while having "xcode" set as your
QMAKESPEC on OSX.
- Windows only:
* Populated the build key, as done on all the other platforms.
* Fixed dependency generation in Visual Studio Solutions (.sln)
created by qmake.
* Added missing platforms to the Visual Studio project generator (X64,
SH3DSP and EBC).
* Made UIC3 use a temporary file for long command lines.
* Removed the object file (.o) conflicts with MinGW that appeared when
embedding a native resource file which was named the same as a normal
source file.
* Fixed mkspec detection when generating project files outside of QTDIR.
* Removed compiler warnings with MinGW g++ 3.4.5.
****************************************************************************
* Library *
****************************************************************************
- QAbstractButton
* Returns QPalette::Button and QPalette::ButtonText for
backgroundRole() and foregroundRole(), respectively, rather than
QPalette::Background and QPalette::Foreground.
* Ensured that nextCheckState() is called only when there is a state
change.
- QAbstractItemModel
* When dropping rows only insert rows that were actually dropped, not
the continuous row count from first to last.
* Added a supportedDragActions property to be used by
QAbstractItemView when starting a drag.
* When updating changed persistent indexes, ignore those that haven't
actually changed.
* Fixed endian issue with createIndex().
* Added FixedString matching for match().
* Changed the sorting algorithm to use a stable sort.
* Added persistentIndexList() function.
- QAbstractItemView
* Added possibility to copy elements to clipboard on read-only views.
* Improved handling of QAbstractItemModel::supportedDropActions().
* Ensured that the current item is selected when using keyboard
search.
* Ensured that the view starts with a valid current index.
* Ensured that data is only committed in currentChanged() if the
editor is not persistent.
* Fixed crash that occurred when a modal dialogs was opened when
closing an editor.
* Added verticalScrollMode and horizontalScrollMode properties.
* Added setItemDelegateForRow() and setItemDelegateForColumn().
* Ensured that existing models are disconnected properly when
replaced.
* Ensured that the doubleClicked() signal is only emitted when the
left button has been double-clicked.
* Changed setSelection(...) to work when given a non-normalized
rectangle.
* Fixed regression for shift-selections in ExtendedSelection for
all views.
* Added dragDropMode property and implemented move support in all of
the views and models.
* For edit triggers SelectedClicked and DoubleClicked, only trigger
editing when the left button is clicked.
* Trigger SelectedClicked editing on mouse release, not mouse press.
* Suppressed the doubleClicked() signal in cases where the clicks
happened on two different items.
* Enabled keyboard search to be programmatically reset by calling
keyboardSearch() with an empty string as argument.
* Don't allow drops on items that don't have the Qt::ItemIsDropEnabled
flag set.
* Added modelAboutToBeReset() and layoutAboutToBeChanged() signals.
* Suppressed assertion in dropMimeData() for cases where mimeTypes()
returns an empty list.
* Ensured consistent behavior of drag and drop when rootIndex() is a
valid model index.
* Made it possible to check a checkbox with only a single click when
using the CurrentChanged edit trigger.
* Ensured that WhatsThis events are propagated when the relevant item
doesn't have a valid "What's This?" value.
* Added PositionAtCenter scrollHint.
* Added support to allow items to be checked and unchecked using the
keyboard.
* Added support for keypad navigation.
- QAbstractProxyModel
* Added default implementations for data(), headerData() and flags()
- QAbstractScrollArea
* Added ability to set a corner widget.
* Added ability to set scroll bar widgets.
* Added support for custom scroll bars.
- QAbstractSpinBox
* Added a hasAcceptableInput() property.
* Ensured that fixup/validate are called for third party subclasses of
QAbstractSpinBox as well.
* Fixed geometry issues when toggling frames on and off for spinboxes.
* Added a property for correctionMode.
* Added a property for acceleration.
- QAbstractPrintDialog
* Fixed handling of existing printer options so that storage of page
ranges using setFromTo() works as expected when printing in PDF format.
- QAction
* Added the setAutoRepeat(bool) function to disable auto-repeating
actions on keyboard shortcuts.
- QApplication
* Added saveStateRequest() and commitDataRequest() signals so that
QApplication does not need to be subclassed to enable session
management in an application.
* Added the styleSheet property to get/set the application style sheet.
* Support sending key events to non-widget objects.
* Ensured that argc and argv as passed to the QApplication constructor
will always be zero-terminated on all platforms after QApplication
consumes command line options for itself.
- QBrush
* Added a constructor that accepts a QImage.
- QButtonGroup
* Added pressed() and released() signals.
* Fixed a bug caused by removing buttons from button groups. Removed the
internal mapping as well.
* Ensured that checkedButton() returns the correct value with
non-exclusive groups.
- QClipboard
* Added support for find text buffer.
- QColor
* Fixed corruption in setRed(), setGreen() and setBlue() for HSV/CMYK
colors.
- QComboBox
* Fixed drawing issues related to certain FocusPolicy values.
* Ensured that the ItemFlags of an Item (ItemIsEnabled,...) are
respected.
* Fixed cases where the popup could be shown completly on screen, but
weren't.
* Added the InsertAlphabetically insert policy.
* Fixed case where a QPixmap could not be displayed using a QIcon.
* Fixed the type of the modelColumn property from bool to int.
* Updated documentation to clarify the differences between activated(),
highlighted() and currentIndexChanged(), and describe what they
actually mean.
* Updated the behavior to ensure that, if the combobox isn't editable,
the Qt::DisplayRole rather than the Qt::EditRole is used to query the
model.
- QCoreApplication
* Added flags to enable/disable application-wide features such as
delayed widget creation.
- QCursor
* Added support for the newly added Qt::OpenHandCursor and
Qt::ClosedHandCursor enum values.
- QDate
* Support dates all the way down to Julian Day 1 (2 January 4713 B.C.)
using the Julian calendar when appropriate.
- QDateTime
* Fixed parsing issue in fromString(const QString &, Qt::DateFormat).
- QDateTimeEdit
* Added the calendarPopup property to enable date selection using the
new QCalendarWidget class.
* Added a setSelectedSection() function to allow the currently selected
section to be programmatically set.
- QDesktopWidget
* Remove a potential out-of-bounds read.
- QDialog
* Improved stability in cases where the default button is deleted.
- QDir
* Improved support for i18n file paths in QDir::tempPath().
* Improved support for UNC paths when the application is run from a
share.
* Ensured that mkpath() properly supports UNC paths.
* Obsoleted QDir::convertSeparators().
* Introduced QDir::toNativeSeparators() and QDir::fromNativeSeparators().
* Added a QDebug streaming operator.
- QDirModel
* Fixed conversion from bytes to larger units in QDirModel in the file
size display.
* Remove hardcoded filtering of the '.' and '..' entries.
- QErrorMessage
* Made qtHandler() work in cases where the message handler is invoked
from threads other than the GUI thread.
- QEvent
* Added the KeyboardLayoutChange event type which is sent when the
keyboard layout changes.
- QFile
* Improved support for UNC paths when the application is run from a
share.
* Added support for physical drives (e.g., "//./Physical01").
* Ensured that QFile::error() and QIODevice::errorString() are set
whenever possible when errors occur.
* Renamed readLink() to symLinkTarget().
- QFileDialog
* Fixed a case where view mode got disabled.
- QFileInfo
* Improved support for UNC paths when the application is run from a
share.
* Improved support for drive-local relative paths, such as "D:".
* Renamed readLink() to symLinkTarget().
- QFlags
* Added the testFlag() convenience function.
- QFont
* Added NoFontMerging as a flag to QFont::StyleStrategy.
- QFontDatabase
* Added functions for handling application-local fonts at run-time:
addApplicationFont(), removeApplicationFont(),
applicationFontFamilies(), etc.
- QFontDialog
* Enabled support for custom window titles.
- QFontMetrics/QFontMetricsF
* Added the elidedText() function.
* Added the averageCharWidth() function.
- QFrame
* Fixed a rendering issue when showing horizontal and vertical lines
created using Designer.
- QFtp
* Improved parsing of the modified date in list().
* Ensured that all data has been received when downloading, before the
data connection is closed.
* Added support for FTP servers that reject commands with a 202 response.
- QGLFormat
* Added the openGLVersionFlags() function.
* Added support for setting the swap interval for a context
(i.e., syncing to the vertical retrace).
* Added support for setting red, green and blue buffer sizes.
- QGLWidget
* Fixed a resource leak that could occur when binding QImages with the
bindTexture() function.
* Fixed renderText() to produce proper output when depth buffering is
enabled.
* Fixed bindTexture() to respect premultiplied QImage formats.
* Ensured that the updatesEnabled property is respected.
- QGradient
* Added default constructors and setter functions for all gradients and
their attributes.
- QGridLayout
* Do not segfault if cellRect() is called before setGeometry(),
even though the result is documented to be undefined.
* Fixed maximum size handling when adding spacing.
- QGroupBox
* Activating a group box by a shortcut will now show the focus rectangle.
* Added the clicked() signal
- QHash
* Prevent conversion of iterator or const_iterator to bool
(e.g., if (map->find(value))) because the conversion always returned
true. Qt 4.1 code that doesn't compile because of this change was most
probably buggy.
* Added the uniqueKeys() function.
- QHeaderView
* Use the current resize mode to determine section sizes when
new rows are inserted.
* Recover the internal state if other widgets steal the mouse release
event.
* Ensure that moved sections can be removed without asserting.
* Be more robust with regards to arguments sent to the rowsInserted slot.
* Let the stretchLastSection property override the globalResizeMode in
the resizeSections() function.
* Renamed ResizeMode::Custom to ResizeMode::Fixed.
* Added the swapSections() convenience function.
* Added a more "splitter-like" resize mode.
* Added the possibility for the user to turn off stretch mode by
resizing the header section. This includes the stretchLastSection
property.
* Added the minimumSectionSize property.
* Get the section size hint from the Qt::SizeHintRole, if set.
* Added the ResizeToContents resize mode.
* Ensure that all header contents are centered by default.
* Improved the internal structure to be more memory efficient.
- QHostAddress
* Added QDataStream streaming operators.
- QHttp
* Support percent-encoded paths when used with a proxy server.
* Improved handling of unexpected remote socket close.
- QHttpHeader
* Improved support for case-insensitive header searching.
- QIcon
* Fixed issue where actualSize() might return a larger value than the
requested size.
* Fixed improper pixmap caching
* Added QDataStream operators for QIcon.
* Added the Selected mode.
- QImage
* Added support for 16 bit RGB format.
* Added QPoint overloads to various (int x, int y) functions.
* Added support for faster/better rotation of images by 90/180/270
degrees.
* convertToFormat() now supports the color lookup table.
* Improved algorithm for smooth scaling to produce better results.
- QImageReader
* Ensured that size() returns an invalid QSize if the image I/O handler
does not support the QImageIOHandler::Size extension.
* Added support for reading negative BMP images.
* Improved handling of invalid devices.
* Added optimizations to ensure that the most likely formats and plugins
are tested first when reading unknown image formats.
* Improved reading of BMP images from sequential QIODevices.
* Support for scaledSize() with JPEG images.
* It is now possible to query the supported options of an image by
calling supportedOptions().
* Stability fixes for the built-in XBM reader.
- QImageWriter
* Ensured that an error is reported when attempting to write an image
to a non-writable device.
* It is now possible to query the supported options of an image by
calling supportedOptions().
- QIODevice
* Fixed a casting bug in QIODevice::getChar().
* Improved reading performance significantly by using an internal buffer
when a device is opened in buffered mode.
* Some behavioral differences have been introduced:
+ The following functions now need to call the base implementation
when reimplemented: atEnd(), bytesAvailable(), size(), canReadLine().
+ pos() should return the base implementation directly.
+ QIODevice now handles the device position internally. seek() should
always end up calling the base implementation.
- QItemDelegate
* Use a widget's USER property to set and get the editor data.
* Removed unnecessary assertions.
* Added the clipping property to enable clipping when painting.
* When the model specifies a font, resolve the font over the existing
one rather than replacing it.
* Fixed issue with rendering of selected pixmaps.
* Ensured that QItemEditorFactory is called with the variant's
userType() so that the factory can distinguish between multiple user
types.
* Ensured that Key_Enter is propagated to the editor before data is
committed, so that the editor has a chance to perform custom input
validation/fixup.
* Let the line edit grow to accomodate long strings.
* Made it easer to subclass the item delegate.
* Added support for keypad navigation.
- QItemSelectionModel
* Improved overall speed, particularly when isSelected() is used.
* Added functions for getting the selected rows or columns.
* Ensured that the current index is updated when it is being removed.
* Ensure that QAbstractItemView::clearSelection() only clears the
selection and not the current index.
* Added the hasSelection() function.
* Fixed some connection leaks (connections were not disconnected) when
an QItemSelectionModel was deleted. This should also speed up some
special cases.
- QKeySequence
* Added a set of platform-dependent standard shortcuts.
* Fixed incorrect parsing of translated modifiers.
- QLabel
* Added support for text selection and hyperlinks.
* Improved handling of scaled pixmaps.
* Made handling of QMovie safer to avoid object ownership issues.
- QLibrary
* Added support for hints to control how libraries are opened on UNIX
systems.
* Added errorString() to report the causes of errors when libraries
fail to load.
* Added easier way to debug plugin loading: Setting QT_DEBUG_PLUGINS=1
in the environment will enable debug message printing on the
console.
* Increased the number of acceptable file name suffixes used to
recognize library files.
- QLineEdit
* Ensured that the Unicode context menu gets shown if language
extensions are present.
* Ensured that editingFinished() is not emitted if a validator is set
and the text cannot be validated.
* Ctrl+A now triggers select all on all platforms.
* Call fixup on focusOut() if !hasAcceptableInput().
* Added auto-completion support with the setCompleter() function.
* Fixed painting errors when contents margins were set.
* Invalid text set using setText() can now be edited where previously
it had to be deleted before new text could be inserted.
* Use SE_LineEditContents to control the contents rect of each
QLineEdit.
- QListView
* Added the batchSize property.
* Don't un-hide currently hidden rows when new rows are inserted.
* Fixed partial repainting bug that occurred when alternatingRowColors
was enabled.
* Ensured that the resize mode is not reset in setViewMode() if it was
already set.
* Fixed crash that occurred when the first item was hidden and
uniformItemSizes was set.
* Added the wordWrap property for wrapping item text.
* Allow the user to select items consecutively when shift-selecting.
* Ensured that only the top item is selected when the user clicks on
an area with several items are stacked on top of each other.
* Optimized hiding and showing of items.
* Fixed issue where dragging an item in Snap mode did not respect the
scroll bar offsets.
* Fixed issue in Snap mode where a (drag and) drop did not always
query the item that existed in the corresponding cell for an enabled
Qt::ItemIsDropEnabled flag.
- QListWidget/QTreeWidget/QTableWidget
* Ensured the dataChanged() signal is emitted when flags are set on an
item.
* Removed unnecessary assertions.
* Added more convenience functions in QListWidget, QTableWidget and
QTreeWidget for selecting, hiding, showing, expanding and collapsing
nodes.
* Ensured that changes to items are reported.
- QLocale
* Fixed bug in the string-to-number functions which sometimes caused
them to fail on negative numbers which contained thousand-
separators.
* Implemented the numberOptions property for specifying how
string-to-number and number-to-string conversions should be
performed.
- QMainWindow
* Added support for tabbed dock widgets.
* Enhanced look and feel of dock widget handling. When a dock widget
hovers over a main window, the main window animates the existing
dock widgets and main area to show how it will accept the dock
widget if dropped.
* Fixed issues related to insertToolBarBreak().
- QMap
* Prevent conversion of iterator or const_iterator to bool
(e.g., if (map->find(value))), because the conversion always
returned true. Qt 4.1 code that doesn't compile because of this
change was most probably buggy.
* Added the uniqueKeys() function.
- QMenu
* Added the aboutToHide() signal.
* Added the isEmpty() accessor function.
* Clear menuAction() when setMenu(0)
* Added support for widgets in menus via QWidgetAction.
* Collapse multiple consecutive separators. This can be turned off
with the collapsibleSeparators property.
* Made scrollable menus wrap, just like non-scrollable ones.
- QMessageBox
* Updated the API to allow more than 3 buttons to be used.
* Added support to display buttons in the order required by
platform-specific style guidelines.
* Added support for display of informative text using the
informativeText property.
* Added the detailedText property to allow detailed text to be
displayed.
* Improved sizing of message box (especially on Mac OS X).
* Changed the behavior so that long text strings are automatically
wrapped.
* Updated icon handling to use QStyle::standardIcon() where possible.
- QMetaObject
* Added the userProperty() and normalizedType() functions.
- QMetaType
* Ensured that all type names are normalized before registering them.
* Added support for handling Qt's integer typedefs: qint8, qint16,
etc.
- QModelIndex
* Added the flags() convenience function.
- QMutexLocker, QReadLocker, and QWriteLocker
* These classes now track the state of the lock they are holding.
They will not unlock on destruction if unlock() has been called.
- QObject
* thread() will always return a valid thread, even if the object was
created before QApplication or in a non-QThread thread.
* When thread() returns zero, events are no longer sent to the object.
(Previous versions of Qt would send posted events to objects with no
thread; this does not happen in Qt 4.2).
* Added support for dynamically added properties via the new
property(), setProperty(), and dynamicPropertyNames() functions.
* Fixed a crash that could occur when a child deleted its sibling.
- QPainter
* Fixed a crash the occurred when drawing cosmetic lines outside the
paint device boundaries.
* Fixed a pixel artifact issue that occurred when drawing cosmetic
diagonal lines.
* Fixed opaque backgrounds so that they are identical on all
platforms.
* Optimized drawing of cosmetic lines at angles between 315 and 360
degrees.
* Added the setRenderHints() function.
* Fixed a memory corruption issue in drawEllipse().
- QPixmap
* Fixed crash caused by setting a mask or alpha channel on a pixmap
while it was being painted.
* Changed load() and save() to no longer require a format string.
* Ensured that grabWidget() works before the specified widget is first
shown.
- QPluginLoader
* Added errorString() to report the causes of errors when plugins fail
to load.
- QPrinter
* Added support for PostScript as an output format on all platforms.
* Significantly reduced the size of the generated output when using
the PostScript and PDF drivers.
* Fixed issue where fromPage()/toPage() returned incorrect values when
generating PDF files.
* Ensured that setOutputFormat() preserves previously set printer
properties.
* Updated setOutputFileName() to automatically choose PostScript or
PDF as the output format for .ps or .pdf suffixes.
- QProcess
* Added support for channel redirection to allow data to be redirected
to files or between processes.
- QPushButton
* Ensured that, when a menu is added to a push button, its action is
also added to enable keyboard shortcuts.
- QRect, QRectF, QRegion
* Renamed unite(), intersect(), subtract(), and eor() to united(),
intersected(), subtracted(), and xored() respectively.
* Added QRegion::intersects(QRegion) and QRegion::intersects(QRect).
* Fixed case where rect1 & rect2 & rect3 would return a non-empty
result for disjoint rectangles.
- QRegExp
* Added RegExp2 syntax, providing greedy quantifiers (+, *, etc.).
* Marks (QChar::isMark()) are now treated as word characters,
affecting the behavior of '\b', '\w', and '\W' for languages
that use diacritic marks (e.g., Arabic).
* Fix reentrancy issue with the regexp cache.
- QScrollArea
* Added the ensureWidgetVisible() function to facilitate scrolling to
specific child widgets in a scroll area.
- QScrollBar
* Ensured that a SliderMove action is triggered when the slider value is
changed through a wheel event.
- QSet
* Added QSet::iterator and QMutableSetIterator.
- QSettings
* Store key sequences as readable entries in INI files.
* Detect NFS to prevent hanging when lockd isn't running.
- QShortcut
* Added the setAutoRepeat(bool) function to disable auto-repeating
actions on keyboard shortcuts.
- QSize
* Fixed potential overflow issue in scale().
- QSlider
* Added support for jump-to-here positioning.
- QSortFilterProxyModel
* Handle source model changes (e.g., data changes, item insertion
and removal) in a fine-grained manner, so that the proxy model
behaves more like a "real" model.
* Added sortRole, filterRole and dynamicSortFilter properties.
* Perform stable sorting of items.
* Fixed support for drag and drop operations where one item is dropped
on top of another.
* Ensure that persistent indexes are updated when the layout of the
source model changes.
* Made match() respect the current sorting and filtering settings.
* Forward mimeTypes() and supportedDropActions() calls to source
models.
* Added the ability to filter on all the columns.
* Added the filterChanged() function to enable custom filtering to be
implemented.
- QSqlQuery
* Added execBatch() for executing SQL commands in a batch. Currently
only implemented for the Oracle driver.
* Fixed a case where executedQuery() would not return the executed
query.
- QSqlRelationalTableModel
* Fixed issue related to sorting a relational column when using the
PostgreSQL driver.
* revertAll() now correctly reverts relational columns.
- QStackedLayout
* Fixed crash that occurred when removing widgets under certain
conditions.
- QStackedWidget
* Fixed crash that occurred when removing widgets under certain
conditions.
* Fixed issue where the size hint of the current widget would not be
respected.
- QStandardItemModel
* Added an item-based API for use with QStandardItem.
* Reimplemented sort().
* Added the sortRole property.
- QStatusBar
* Added the insertWidget() and insertPermanentWidget() functions.
- QString
* Added support for case-insensitive comparison in compare().
* Added toUcs4() and fromUcs4() functions.
- QStyle
* Added the following style hint selectors:
SH_Slider_AbsoluteSetButtons, SH_Slider_PageSetButtons,
SH_Menu_KeyboardSearch, SH_TabBar_ElideMode, SH_DialogButtonLayout,
SH_ComboBox_PopupFrameStyle, SH_MessageBox_TextInteractionFlags,
SH_DialogButtonBox_ButtonsHaveIcons, SH_SpellCheckUnderlineStyle,
SH_MessageBox_CenterButtons, SH_Menu_SelectionWrap,
SH_ItemView_MovementWithoutUpdatingSelection.
* Added the following standard pixmap selectors:
SP_DirIcon, SP_DialogOkButton, SP_DialogCancelButton,
SP_DialogHelpButton, SP_DialogOpenButton, SP_DialogSaveButton,
SP_DialogCloseButton, SP_DialogApplyButton, SP_DialogResetButton,
SP_DialogDiscardButton, SP_DialogYesButton, SP_DialogNoButton,
SP_ArrowUp, SP_ArrowDown, SP_ArrowLeft, SP_ArrowRight, SP_ArrowBack,
SP_ArrowForward.
* Added PE_PanelScrollAreaCorner and PE_Widget as primitive element
selectors.
* Added PM_MessageBoxIconSize and PM_ButtonIconSize as pixel metric
selectors.
* Added SE_LineEditContents and SE_FrameContents as sub-element
selectors.
* Added SE_FrameContents to control the contents rectangle of a
QFrame.
- QSvgHandler
* Improved style sheet parsing and handling.
* Added support for both embedded and external style sheets.
* Improved parsing of local url() references.
* Improved coordinate system handling.
* Fixed issue where the viewbox dimensions would be truncated to integer
values.
* Fixed support for gradient transformations.
* Fixed opacity inheritance behavior.
* Added support for gradient spreads.
* Fixed gradient stop inheritance behavior.
* Fixed parsing of fill and stroke properties specified in style sheets.
* Added support for reading and writing the duration of animated SVGs.
* Fixed incorrect rendering of SVGs that do not specify default viewboxes.
* Fixed radial gradient rendering for the case where no focal point is
specified.
- QSyntaxHighlighter
* Added various performance improvements.
- Qt namespace
* Added ForegroundRole and BackgroundRole, allowing itemviews to use
any QBrush (not just QColor, as previously) when rendering items.
* Added NoDockWidgetArea to the ToolBarArea enum.
* Added NoToolBarArea to the DockWidgetArea enum.
* Added GroupSwitchModifier to the KeyboardModifiers enum. It
represents special keys, such as the "AltGr" key found on many
keyboards.
* Added several missing keys to the Key enum: Key_Cancel, Key_Printer,
Key_Execute, Key_Sleep, Key_Play and Key_Zoom.
* Added OpenHandCursor and ClosedHandCursor for use with QCursor.
- QTabBar
* QTabBar text can now be elided; this is controlled by the elideMode
property.
* You can now turn on or off the "scroll buttons" for the tab bar with
the usesScrollButtons property.
* Non-pixmap based styles will now fill the background of the tab with
the palette's window role.
- QTabletEvent:
* Ensured that QTabletEvents are dispatched with the proper relative
coordinates.
* Added proximity as another type of a tablet event (currently only sent
to QApplication).
- QTableView
* Added API for spanning cells.
* Ensured that cells are selected when the user right clicks on them.
* Added a corner widget.
* Added the setSortingEnabled property.
- QTableWidget
* Added the clearContents() function to enable the contents of the view
to be cleared while not resetting the headers.
* QTableWidget now uses stable sorting.
* Allow sorting of non-numerical data.
* Add convenience table item constructor that takes an icon as well as
a string.
- QTabWidget
* Added missing selected() Qt3Support signal.
* Clarified documentation for setCornerWidget().
* Ensured that the tab widget's frame is drawn correctly when the tab
bar is hidden.
* Ensured that the internal widgets have object names.
* Added iconSize, elideMode, and usesScrollButtons as properties (see
QTabBar).
- QTcpSocket
* Fixed a rare data corruption problem occurring on heavily loaded
Windows servers.
- QTemporaryFile
* Added support for file extensions and other suffixes.
* Fixed one constructor which could corrupt the temporary file path.
- QTextBrowser
* Fixed various bugs with the handling of relative URLs and custom
protocols.
* Added isBackwardAvailable(), isForwardAvailable(), and
clearHistory() functions.
- QTextCodec
* Allow locale-dependent features of Qt, such as QFile::exists(), to
be accessed during global destruction.
- QTextCursor
* Added columnNumber(), blockNumber(), and insertHtml() convenience
functions.
- QTextDocument
* Added convenience properties and functions: textWidth, idealWidth(),
size, adjustSize(), drawContents(), blockCount, maximumBlockCount.
* Added support for forced page breaks before/after paragraphs and
tables.
* Added CSS support to the HTML importer, including support for
CSS selectors.
* Added defaultStyleSheet property that is applied automatically for
every HTML import.
* Improved performance when importing HTML, especially with tables.
* Improved pagination of tables across page boundaries.
- QTextEdit
* Fixed append() to use the current character format.
* Changed mergeCurrentCharFormat() to behave in the same way as
QTextCursor::mergeCharFormat, without applying the format to the
word under the cursor.
* QTextEdit now ensures that the cursor is visible the first time the
widget is shown or when replacing the contents entirely with
setPlainText() or setHtml().
* Fixed issue where the setPlainText() discarded the current character
format after the new text had been added to the document.
* Re-added setText() as non-compatibility function with well-defined
heuristics.
* Added a moveCursor() convenience function.
* Changed the default margin from 4 to 2 pixels for consistency with
QLineEdit.
* Added support for extra selections.
- QTextFormat
* Fixed the default value for QTextBlockFormat::alignment() to return
a logical left alignment instead of an invalid alignment.
* Added UnderlineStyle formatting, including SpellCheckUnderline.
- QTextStream
* Added the pos() function, which returns the current byte-position
of the stream.
- QTextTableCell
* Added the setFormat() function to enable the cell's character format
to be changed.
- QThread
* Related to changes to QObject, currentThread() always returns a
valid pointer. (Previous versions of Qt would return zero if called
from non-QThread threads; this does not happen in Qt 4.2).
- QToolBar
* Introduced various fixes to better support tool buttons, button
groups and comboboxes in the toolbar extension menu.
* Fixed crash that occurred when QApplication::setStyle() was called
twice.
- QToolButton
* Fixed an alignment bug for tool buttons with multi-line labels and
TextUnderIcon style.
- QToolTip
* Added the hideText() convenience function.
* Added the showText() function that takes a QRect argument specifying
the valid area for the tooltip. (If you move the cursor outside this
area the tooltip will hide.)
* Added a widget attribute to show tooltips for inactive windows.
- QTranslator
* Added support for plural forms through a new QObject::tr() overload.
* Ensured that a LanguageChange event is not generated if the
translator fails to load.
* Fixed a bug in isEmpty().
* Added Q_DECLARE_TR_FUNCTIONS() as a means for declaring tr()
functions in non-QObject classes.
- QTreeView
* Ensured that no action is taken when the root index passed to
setRootIndex() is the same as the current root index.
* When hiding items the view no longer performs a complete re-layout.
* Fixed possible segfault in isRowHidden().
* Significantly speed up isRowHidden() for the common case.
* Improved row painting performance.
* After expanding, fetchMore() is called on the expanded index giving
the model a way to dynamically populate the children.
* Fixed issue where an item could expand when all children were
hidden.
* Added support for horizontal scrolling using the left/right arrow
keys.
* Added a property to enable the focus rectangle in a tree view to be
shown over all columns.
* Added more key bindings for expanding and collapsing the nodes.
* Added the expandAll() and collapseAll() slots.
* Added animations for expanding and collapsing branches.
* Take all rows into account when computing the size hint for a
column.
* Added the setSortingEnabled property.
* Fixed the behavior of the scrollbars so that they no longer
disappear after removing and re-inserting items while the view is
hidden.
* Fixed memory corruption that could occur when inserting and removing
rows.
* Don't draw branches for hidden rows.
- QTreeWidget
* Added the const indexOfTopLevelItem() function.
* Improved item insertion speed.
* Fixed crash caused by calling QTreeWidgetItem::setData() with a
negative number.
* QTreeWidget now uses stable sorting.
* Made construction of single column items a bit more convenient.
* Added the invisibleRootItem() function.
* Made addTopLevelItems() add items in correct (not reverse) order.
* Ensured that the header is repainted immediately when the header
data changes.
- QUiLoader
* Exposed workingDirectory() and setWorkingDirectory() from
QAbstractFormBuilder to assist with run-time form loading.
- QUrl
* Added errorString() to improve error reporting.
* Added hasQuery() and hasFragment() functions.
* Correctly parse '+' when calling queryItems().
* Correctly parse the authority when calling setAuthority().
* Added missing implementation of StripTrailingSlash in toEncoded().
- QVariant
* Added support for all QMetaType types.
* Added support for QMatrix as a known meta-type.
* Added support for conversions from QBrush to QColor and QPixmap,
and from QColor and QPixmap to QBrush.
* Added support for conversions between QSize and QSizeF, between
QLine and QLineF, from long long to char, and from unsigned long
long to char.
* Added support for conversions from QPointF to QPoint and from QRectF
to QRect.
* Fixed issue where QVariant(Qt::blue) would not create a variant of
type QVariant::Color.
* Added support for conversions from int, unsigned int, long long,
unsigned long long, and double to QByteArray.
- QWhatsThis
* Improved look and feel.
- QWidget
* Delayed creation: Window system resources are no longer allocated in
the QWidget constructor, but later on demand.
* Added a styleSheet property to set/read the widget style sheet.
* Added saveGeometry() and restoreGeometry() convenience functions for
saving and restoring a window's geometry.
* Fixed memory leak for Qt::WA_PaintOnScreen widgets with null paint
engines.
* Ensured that widget styles propagate to child widgets.
* Reduced flicker when adding widget to layout with visible parent.
* Fixed child visibility when calling setLayout() on a visible widget.
* Speed up creation/destruction/showing of widgets with many children.
* Avoid painting obscured widgets when updating overlapping widgets.
- QWorkspace
* Resolved issue causing the maximized controls to overlap with the
menu in reverse mode.
* Fixed issue where child windows could grow a few pixels when
restoring geometry in certain styles.
* Ensured that right-to-left layout is respected when positioning new
windows.
* Fixed crash that occurred when a child widget did not have a title
bar.
* Fixed issue where maximized child windows could be clipped at the
bottom of the workspace.
- quintptr and qptrdiff
* New integral typedefs have been added.
- Q3ButtonGroup
* Fixed inconsistencies with respect to exclusiveness of elements in
Qt 3.
* Fixed ID management to be consistent with Qt 3.
- Q3Canvas
* Fixed several clipping bugs introduced in 4.1.0.
- Q3CanvasView
* Calling setCanvas() now always triggers a full update.
- Q3Grid, Q3Hbox, Q3VBox
* Fixed layout problem.
- Q3IconView
* Fixed a case where selected icons disappeared.
- Q3ListBox
* Fixed inconsistencies in selectAll() with respect to Qt 3.
* Fixed possible crash after deleting items.
- Q3ListView
Fixed possible crash in Q3ListView after calling clear().
Fixed inconsistent drag and drop behavior with respect to Qt 3.
- Q3Process
* Stability fixes in start().
- Q3Socket
* No longer (incorrectly) reports itself as non-sequential.
- Q3Table
* Improved behavior for combobox table elements.
****************************************************************************
* Database Drivers *
****************************************************************************
- Interbase driver
* Fixed data truncation for 64 bit integers on 64 bit operating
systems.
- MySQL driver
* When using MySQL 5.0.7 or larger, let the server do the text
encoding conversion.
* Added UNIX_SOCKET connection option.
* Improved handling of TEXT fields.
- OCI driver
* Improved speed for meta-data retrieval.
* Fixed potential crash on Windows with string OUT parameters.
* Improved handling of mixed-case table and field names.
- ODBC driver
* Improved error reporting if driver doesn't support static result
sets.
* Improved support for the Sybase ODBC driver.
- SQLite driver
* QSqlDatabase::tables() now also returns temporary tables.
* Improved handling of mixed-case field names.
****************************************************************************
* QTestLib *
****************************************************************************
- Added "-silent" options that outputs only test failures and warnings.
- Reset failure count when re-executing a test object
- Added nicer output for QRectF, QSizeF, and QPointF
****************************************************************************
* Platform Specific Changes *
****************************************************************************
Qtopia Core
-----------
- Fixed the -exceptions configure switch.
- Fixed a build issue preventing the use of MMX instructions when
available.
- Fixed leak of semaphore arrays during an application crash.
- Fixed cases where the wrong cursor was shown.
- Fixed cases where QWidget::normalGeometry() would return wrong value.
- Allow widgets inside QScrollArea to have a minimum size larger than the
screen size.
- Allow (0,0) as a valid size for top-level windows.
- VNC driver
* Fixed keyboard shortcut problem when using the VNC driver.
* Fixed issue with the VNC driver that prevented client applications to
connect in some cases.
* Fixed a leak of shared memory segments in the VNC driver.
* Reduced CPU consumption in the VNC driver.
* Implemented dynamic selection of the underlying driver for the VNC and
transformed screen drivers.
* Improved error handling when clients connects to the server.
- Graphics system
* Introduced new API for accelerated graphics hardware drivers.
* Implemented support for multiple screens.
* QScreen has binary incompatible changes. All existing screen drivers
must be recompiled.
* QWSWindow, QWSClient, QWSDisplay and QWSEvent have binary
incompatible changes. QWSBackingStore has been removed.
Existing code using these classes must be recompiled.
* Added support for OpenGL ES in QGLWidget.
* Implemented support for actual screen resolution in QFont.
* Removed internal limitation of 10 display servers.
* Improved memory usage when using screens with depths less than 16
bits-per-pixel.
* Fixed 16 bits-per-pixel screens on big-endian CPUs.
* Optimized CPU usage when widgets are partially hidden.
* Improved detection of 18 bits-per-pixel framebuffers.
* Improved performance when using a rotated screen with 18 or 24
bits-per-pixel depths.
* Improved speed of drawing gradients.
* Introduced the QWSWindowSurface as a technique to create
accelerated paint engines derived from QPaintEngine.
* Implemented the Qt::WA_PaintOnScreen flag for top-level widgets.
* Extended QDirectPainter to include non-blocking API and support for
overlapping windows. Existing code that subclasses QDirectPainter
must be recompiled.
* Implemented QWSEmbedWidget which enables window embedding.
* Removed hardcoded 72 DPI display limitation.
- Device handling
* QWSMouseHandler has binary incompatible changes. All existing mouse
drivers must be recompiled.
* Fixed an issue of getting delayed mouse events when using the
vr41xx driver.
* Improved event compression in the vr41xx mouse handler.
* Improved algorithm for mouse calibration which works for all
screen orientations.
* Fixed an issue causing mouse release events with wrong positions
when using a calibrated and filtered mouse handler on a rotated
screen.
* Made the tty device configurable for the Linux framebuffer screen
driver.
* Fixed a deadlock issue when using drag and drop and a calibrated
mouse handler.
* Autodetection of serial mice is turned off to avoid disrupt serial
port communication. Set QWS_MOUSE_PROTO to use a serial mouse.
- QVFb
* Fixed an issue preventing QVFb from starting on some systems.
* Added support for dual screen device emulation in QVFb.
- QCopChannel
* Added a flush() function so that the QWS socket can be flushed,
enabling applications to ensure that QCop messages are delivered.
Linux and UNIX systems
----------------------
- Printing
* Improved CUPS support by sending PDF instead of Postscript to
CUPS on systems that have a recent CUPS library, improving the
print quality.
* Added a new and improved QPrintDialog.
* Improved font embedding on systems without FontConfig.
- QApplication
* When available, use Glib's mainloop functions to implement event
dispatching.
- QPlastiqueStyle
* Added support to enable KDE icons to be automatically used on
systems where they are available.
- QTextCodec
* Uses iconv(3) (when available) to implement the codec returned by
QTextCodec::codecForLocale(). The new codec's name is "System"
(i.e., QTextCodec::codecForLocale()->name() returns "System"
when iconv(3) support is enabled).
AIX
---
- The makeC++SharedLib tool is deprecated; use the "-qmkshrobj" compiler
option to generate shared libraries instead.
X11
---
- Added support to internally detect the current desktop environment.
- QAbstractItemView
* Fixed assertion caused by interrupting a drag and drop operation
with a modal dialog on X11.
* Ensured that release events dispatched when closing a dialog
with a double click, are not propagated through to the window
underneath.
- QCursor
* Fixed crash occuring when the X11 context had been released before
the cursor was destructed.
- QGLWidget
* Fixed crashes that could occur with TightVNC.
* Improved interaction between QGLWidget and the Mesa library.
- QMenu
* Made it possible for popup menus to cover the task bar on KDE.
- QMotifStyle
* Ensured that the font set on a menu item is respected.
- QX11EmbedContainer, QX11EmbedWidget
* Added missing error() functions.
- QX11PaintEngine
* Increased speed when drawing polygons with a solid pixmap brush.
* Fixed masked pixmap brushes.
* Increased QImage drawing performance.
- Motif Drop support
* Support for drops from Motif applications has been refactored and is
now working properly. QMimeData reports non-textual data offered in
Motif Drops using a MIME type of the form "x-motif-dnd/ATOM", where
ATOM is the name of the Atom offered by the Motif application.
- Font rendering
* Improved stability when rendering huge scaled fonts.
* Enabled OpenType shaping for the Latin, Cyrillic, and Greek
writing systems.
* Improved sub-pixel anti-aliasing.
* Improved font loading speed.
Mac OS X
--------
- Mac OS 10.2 support dropped.
- QuickDraw support in QPaintEngine dropped; everything folded into the
CoreGraphics support.
- All libraries in Qt are now built as frameworks when -framework mode is
selected (default) during the configuration process.
- Many accessibility improvements, including better VoiceOver support. The
following widgets have had their accessibilty updated for this release:
QSplitter, QScrollBar, QLabel, QCheckBox, QRadioButton, QTabBar,
QTabWidget, QSlider, and QScrollBar.
- Hidden files are now reported as hidden by QFileInfo, QDirModel, etc.
- Windows now have a transparent size grips, an attribute for specifying an
opaque size grip was added.
- Metrowerks generator has been removed.
- Ensured that the anti-aliasing threshold setting is followed.
- Added a standard "Minimize" menu item to Assistant's Window menu.
- The documentation now has "Xcode-compatible" links so that it can be added
into Xcode's documentation viewer. This needs to be done by the developer
as regenerating Xcode's index takes quite a long time
- QAbstractScrollArea
* Improved look and feel by aligning the scroll bars with the size
grip.
- QClipboard
* Data copied to the clipboard now stays available after the
application exits.
* Added support for the Find clipboard buffer.
* Fixed encoding of URLs passed as MIME-encoded data.
- QComboBox
* Improved the popup sizing so it's always wide enough to display its
contents.
* Improved the popup placement so it stays on screen and does not
overlap the Dock.
* The minimumSizeHint() and sizeHint() functions now honor
minimumContentsLength.
- QKeyEvent
* The text() of a QKeyEvent is filled with the control character if
the user pressed the real Control key (Meta in Qt) and another key.
This brings the behavior of Qt on Mac OS X more in line with Qt on
other platforms.
- QLibrary
* Removed the dependency on dlcompat for library loading and resolving
in favor of native calls. This means that you can unload libraries
on Mac OS X 10.4 or later, but not on 10.3 (since that uses dlcompat
itself).
- QMacStyle
* QMacStyle only uses HITheme for drawing now (no use of Appearance
Manager).
* Fixed placement of text on buttons and group boxes for non-Latin
locales.
* Fixed rendering of small and mini buttons.
* Attempt to be a bit smarter before changing a push button to bevel
button when the size gets too small.
* Draws the focus ring for line edits when they are near the "top" of
the widget hierarchy.
* Ensured that the tickmarks are drawn correctly.
* Implemented the standardIconImplementation() function.
* Fixed the look of line edits.
* "Colorless" controls now look better.
* Fixed the sort indicator.
* Improved the look of text controls, such as QTextEdit, to fit in
better with the native style.
- QMenu
* Popups no longer show up in Expose.
* Ensured that the proper PageUp and PageDown behavior are used.
- QMenuBar
* Added support for explicit merging of items using QAction::MenuRole.
* Added support for localization of merged items.
- QMessageBox
* A message box that is set to be window modal will automatically
become a sheet.
* Improved the look of the icons used to fit in with the native style.
- QPainter
* Fixed off-by-one error when drawing certain primitives.
* Fixed off-by-many error when drawing certain primitives using a
scaling matrix.
* Fixed clipping so that setting an empty clip will clip away
everything.
* Fixed changing between custom dash patterns.
* Added combinedMatrix() which contains both world and viewport/window
transformations.
* Added the setOpacity() function.
* Added MiterJoins that are compliant with SVG miter joins.
- QPainterPath
* Added the arcMoveTo() and setElementPosition() functions.
- QPixmap
* Added functions to convert to/from a CGImageRef (for CoreGraphics
interoperability).
* Fixed various Qt/Mac masking and alpha transparency issues.
- QPrinter
* Made QPrinter objects resuable.
- QProcess
* Always use UTF-8 encoding when passing commands.
- QScrollBar
* Improved handling of the case where the scrollbar is to short to
draw all its controls.
- QTextEdit
* Improved the look of the widget to fit in with the native style.
- QWidget
* All HIViewRefs inside Qt/Mac are created with the
kWindowStandardHandlerAttribute.
* Added the ability to wrap a native HIViewRef with create().
* Windows that have parents with the WindowStaysOnTopHint also get the
WindowStaysOnTopHint.
Windows
-------
- Ensured that widgets do not show themselves in a hover state if a popup
has focus.
- Fixed issues with rendering system icons on 16 bits-per-pixel displays.
- Fixed issue where fonts or colors would be reset on the application
whenever windows produced a WM_SETTINGSCHANGE event.
- Fixed a bug with Japanese input methods.
- Compile SQLite SQL plugin by default, as on all the other platforms.
- Fixed build issue when not using Precompiled Headers (PCH).
- Made Visual Studio compilers older than 2005 handle (NULL == p)
statements, where p is of QPointer type.
- Fixed HDC leak that could cause applications to slow down significantly.
- Ensured that timers with the same ID are not skipped if they go to different
HWNDs.
- Improved MIME data handling
* Resolved an issue related to drag and drop of attachments from some
applications.
* Resolved an issue where pasting HTML into some applications would
include parts of the clipboard header.
* Improved support for drag and drop of Unicode text.
* Made it possible to set an arbitrary hotspot on the drag cursor on
Windows 98/Me.
- ActiveQt
* Fixed issues with the compilation of code generated by dumpcpp.
* Made ActiveQt controls behave better when inserted into Office
applications.
* Ensured that slots and properties are generated for hidden functions and
classes.
* Ensured that the quitOnLastWindowClosed property is disabled when
QApplication runs an ActiveX server.
* Ensured that controls become active when the user clicks into a subwidget.
* Added support for CoClassAlias class information to give COM class a
different name than the C++ class.
- QAccessible
* Ensured that the application does not try to play a sound for
accessibility updates when no sound is registered.
- QAxBase
* Fixed potential issue with undefined types.
- QDir
* Fixed bug where exists() would return true for a non-existent drive
simply because the specified string used the correct syntax.
* Improved homePath() to work with Japanese user names.
- QFileDialog
* Added support for relative file paths in native dialogs.
* Enabled setLabelText() to allow context menu entries to be changed.
* Ensured that users are denied entry into directories where they
don't have execution permission.
* Disabled renaming and deleting actions for non-editable items.
* Added a message box asking the user to confirm when deleting files.
- QFileInfo
* Fixed absoluteFilePath() to return a path that begins with the
current drive label.
- QGLWidget
* Fixed usage of GL/WGL extension function pointers. They are now
correctly resolved within the context in which they are used.
- QGLColormap
* Fixed cases where the colormap was not applied correctly.
- QMenu
* Made it possible for popup menus to cover the task bar.
- QPrinter
* Added support for printers that do not have a DEVMODE.
* Fixed a drawing bug in the PDF generator on Windows 98/Me.
* Made it possible to programmatically change the number of copies
to be printed.
* Fixed possible crash when accessing non-existent printers.
- QProcess
* Fixed lock-up when writing data to a dead child process.
- QSettings
* Fixed bug causing byte arrays to be incorrectly stored on
Win95/98/Me.
* Allow keys to contain HKEY_CLASSES_ROOT and HKEY_USERS to allow all
registry keys to be read and prevent unintentional use of
HKEY_LOCAL_MACHINE.
* Fall back to the local machine handle if a key does not start with a
handle name.
- QUdpSocket
* Introduced fixes for UDP broadcasting on Windows.
- QWhatsThis
* Improved native appearance.
- QWidget
* Top-level widgets now respect the closestAcceptableSize of their
layouts.
* Ensured that getDC() always returns a valid HDC.
- QWindowsStyle
* We no longer draw splitter handles in Windows style. This resolves
an inconsistency with XP style, so that the two styles can use the
same layout interchangeably. Note that it is fully possible to style
splitter handles (if a custom style or handle is required) using
style sheets.
* Disabled comboboxes now have the same background color as disabled
line edits.
- QWindowsXPStyle
* Made QPushButton look more native when pressed.
* Improved the look of checked tool buttons.
* Defined several values that are not present in MinGW's header files.
****************************************************************************
* Significant Documentation Changes *
****************************************************************************
- Updated information about the mailing list to be used for porting issues
(qt-interest).
- Demos / Examples
* Added a new directory containing desktop examples and moved the
Screenshot example into it.
* Added a new Chat client network example which uses QUdpSocket to
broadcast on all QNetworkInterface's interfaces to discover its
peers.
* The Spreadsheet demo now uses the QItemDelegate, QCompleter, and
QDateTimeEdit with calendar popup.
* An OpenGL button is added to some of the demos to toggle usage of
the OpenGL paint engine.
* Fixed crash resulting from incorrect painter usage in the Image
Composition example
****************************************************************************
* Tools *
****************************************************************************
Assistant
---------
- Middle clicking on links will open up new tabs.
- Added "Find as you type" feature to search documentation pages.
- Added "Sync with Table of Contents" feature to select the current page in
the contents.
- Fixed issue where activating a context menu over a link would cause the
link to be activated.
- Provides a default window title when not specified in a profile.
- Fixed JPEG viewing support for static builds.
- Fixed crash that could occur when opening Assistant with old and invalid
settings.
- Fixed display of Unicode text in the About dialog.
Designer
--------
- Added QWidget and the new widgets in this release to Designer's widget
box.
- Updated the dialog templates to use the new QDialogButtonBox class.
- Backup files created by Designer no longer overwrite existing files.
- Promoted widgets inherit the task menu items of the base class.
- Enums are no longer ordered alphabetically in the property editor.
- Fixed issue where shortcuts could be corrupted in certain situations.
- Line endings in .ui files now match the standard line endings for the
platform the files are created on.
- Ensured that a warning is displayed whenever duplicate connections are
made in the connections editor.
- Added shortcuts for the "Bring to Front" and "Send to Back" form editor
actions.
- Added new 22 x 22 icons.
- Fixed selection of dock widgets in loaded forms.
- Made QWidget::windowOpacity a designable property.
- Numerous improvements and fixes to the action and property editors.
- Windows only
* The default mode is Docked Window.
- Mac OS X only
* Preview of widgets is no longer modal.
* Passing really long relative paths into the resource will no longer
cause a crash.
Linguist
--------
- Added a new "Check for place markers" validation feature.
- Added the "Search And Translate" feature.
- Added the "Batch translation" feature.
- Added support for editing plural forms.
- Extended the .ts file format to support target language, plural forms,
source filename, and line numbers.
- Added the "Translated Form Preview" feature.
- Added placeholders for "hidden" whitespace (i.e., tabs and newlines) in
the translation editor.
lupdate
-------
- Added the -extensions command-line option in order to recursively scan
through a large set of files with the specified extensions.
- Made lupdate verbose by default (use -silent to obtain the old behavior).
- Improved parsing of project files.
- Fixed some issues related to parsing C++ source files.
lrelease
--------
- Made lrelease verbose by default (use -silent to obtain the old behavior).
- Disabled .qm file compression by default (pass -compress to obtain the old
behavior).
moc
---
- Fixed support for enums and flags defined in classes that are themselves
declared in namespaces.
- Added support for the -version and -help command line options (for
consistency with the other tools).
rcc
---
- Added support for the -binary option to generate resources that are
registered at run-time.
qmake
-----
- Added support for an Objective C compiler on platforms that support it via
OBJECTIVE_SOURCES. Additionally, Objective C precompiled headers are
generated as necessary.
- Added support for a qt.conf to allow easy changing of internal target
directories in qmake.
- Added support for the recursive switch (-r) in shadow builds.
- Introduced QMAKE_CFLAGS_STATIC_LIB to allow modified flags to be
passed to temporary files when compiling a static library.
- Added a target.targets for extra qmake INSTALLS. The $files() function
is now completely consistent with wildcard matching as specified to
input file variables.
- Added QMAKE_FUNC_* variables to EXTRA_COMPILERS for late evaluation
of paths to be calculated at generation time. $$fromfile() will no
longer parse input file multiple times.
- Added support for -F arguments in LIBS line in the Xcode generator.
- $$quote() has changed to only do an explicit quote, no escape sequences
are expanded. A new function $$escape_expand() has been added to allow
expansion of escape sequences: \n, \t, etc.
- Added a $$QMAKE_HOST variable to express host information about the
machine running qmake.
- Added a $$replace() function.
- Ensured that PWD is always consulted first when attempting to resolve an
include for dependency analysis.
- Added support for UTF-8 encoded text in .pro files.
- Variables $$_PRO_FILE_ and $$_PRO_FILE_PWD_ added for features to detect
where the .pro really lives.
- Added QMAKE_FRAMEWORK_VERSION to override the version inside a .framework,
though VERSION is still the default value.
- Added support for custom bundle types on Mac OS X.
- Added support for Mac OS X resources (.rsrc) in REZ_FILES.
qt3to4
------
- qt3to4 now appends to the log file instead of overwriting it.
- Fixed one case where qt3to4 was inserting UNIX-style line endings on
Windows.
- Added the new Q3VGroupBox and Q3HGroupBox classes to ease porting.
- Updated the porting rules for this release.
uic
---
- Added support for more variant types: QStringList, QRectF, QSizeF,
QPointF, QUrl, QChar, qlonglong, and qulonglong.
- Fixed code generated by uic for retranslating item view widgets so that
the widgets are not cleared when they are retranslated.
- Ensured that no code is generated to translate empty strings.
uic3
----
- Added line numbers to warnings.
- Ensured that warnings show the objectName of the widget in question.
- Added support for word wrapping in labels when converting files from uic3
format.
- Ensured that the default layouts are respected when converting files from
uic3 format.
- Ensured that double type properties are handled correctly.
|