File: qwidget.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (2531 lines) | stat: -rw-r--r-- 198,482 bytes parent folder | download
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
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QWidget Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QWidget Class Reference</h1><br clear="all">
<p>
The QWidget class is the base class of all user interface objects.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;</code>
<p>
Inherits <a href="qobject.html">QObject</a> and <a href="qpaintdevice.html">QPaintDevice</a>.
<p>Inherited by <a href="qbutton.html">QButton</a>, <a href="qcombobox.html">QComboBox</a>, <a href="qdial.html">QDial</a>, <a href="qdialog.html">QDialog</a>, <a href="qframe.html">QFrame</a>, <a href="qglwidget.html">QGLWidget</a>, <a href="qheader.html">QHeader</a>, <a href="qlineedit.html">QLineEdit</a>, <a href="qmainwindow.html">QMainWindow</a>, <a href="qnpwidget.html">QNPWidget</a>, <a href="qscrollbar.html">QScrollBar</a>, <a href="qsemimodal.html">QSemiModal</a>, <a href="qsizegrip.html">QSizeGrip</a>, <a href="qslider.html">QSlider</a>, <a href="qstatusbar.html">QStatusBar</a>, <a href="qtabbar.html">QTabBar</a>, <a href="qtabwidget.html">QTabWidget</a>, <a href="qtoolbar.html">QToolBar</a>, <a href="qworkspace.html">QWorkspace</a> and <a href="qxtwidget.html">QXtWidget</a>.
<p><a href="qwidget-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#49eb47"><b>QWidget</b></a>(QWidget*parent=0, constchar*name=0, WFlagsf=0)</div>
<li><div class="fn"><a href="#fb52f4"><b>~QWidget</b></a>()</div>
<li><div class="fn">WId<a href="#653917"><b>winId</b></a>()const</div>
<li><div class="fn">QStyle&amp;<a href="#027381"><b>style</b></a>()const</div>
<li><div class="fn">void<a href="#287f79"><b>setStyle</b></a>(QStyle*)</div>
<li><div class="fn">bool<a href="#17338a"><b>isTopLevel</b></a>()const</div>
<li><div class="fn">bool<a href="#c271f0"><b>isModal</b></a>()const</div>
<li><div class="fn">bool<a href="#1fc663"><b>isPopup</b></a>()const</div>
<li><div class="fn">bool<a href="#38c72f"><b>isDesktop</b></a>()const</div>
<li><div class="fn">bool<a href="#f9af61"><b>isEnabled</b></a>()const</div>
<li><div class="fn">bool<a href="#1123d2"><b>isEnabledTo</b></a>(QWidget*)const</div>
<li><div class="fn">boolisEnabledToTLW()const<em>(obsolete)</em></div>
<li><div class="fn">QRect<a href="#ca6d0d"><b>frameGeometry</b></a>()const</div>
<li><div class="fn">constQRect&amp;<a href="#e515c8"><b>geometry</b></a>()const</div>
<li><div class="fn">int<a href="#6f017a"><b>x</b></a>()const</div>
<li><div class="fn">int<a href="#800909"><b>y</b></a>()const</div>
<li><div class="fn">QPoint<a href="#2691c9"><b>pos</b></a>()const</div>
<li><div class="fn">QSize<a href="#12d64e"><b>frameSize</b></a>()const</div>
<li><div class="fn">QSize<a href="#50b75e"><b>size</b></a>()const</div>
<li><div class="fn">int<a href="#2edab1"><b>width</b></a>()const</div>
<li><div class="fn">int<a href="#e3c588"><b>height</b></a>()const</div>
<li><div class="fn">QRect<a href="#75ae71"><b>rect</b></a>()const</div>
<li><div class="fn">QRect<a href="#d6ac48"><b>childrenRect</b></a>()const</div>
<li><div class="fn">QRegion<a href="#52c8ac"><b>childrenRegion</b></a>()const</div>
<li><div class="fn">QSize<a href="#b24d94"><b>minimumSize</b></a>()const</div>
<li><div class="fn">QSize<a href="#fe9f6b"><b>maximumSize</b></a>()const</div>
<li><div class="fn">int<a href="#3dae47"><b>minimumWidth</b></a>()const</div>
<li><div class="fn">int<a href="#f115b7"><b>minimumHeight</b></a>()const</div>
<li><div class="fn">int<a href="#b39f1b"><b>maximumWidth</b></a>()const</div>
<li><div class="fn">int<a href="#f44411"><b>maximumHeight</b></a>()const</div>
<li><div class="fn">void<a href="#68f09f"><b>setMinimumSize</b></a>(constQSize&amp;)</div>
<li><div class="fn">virtualvoid<a href="#c0b5fb"><b>setMinimumSize</b></a>(intminw, intminh)</div>
<li><div class="fn">void<a href="#30296d"><b>setMaximumSize</b></a>(constQSize&amp;)</div>
<li><div class="fn">virtualvoid<a href="#c78dce"><b>setMaximumSize</b></a>(intmaxw, intmaxh)</div>
<li><div class="fn">void<a href="#893704"><b>setMinimumWidth</b></a>(intminw)</div>
<li><div class="fn">void<a href="#e24afa"><b>setMinimumHeight</b></a>(intminh)</div>
<li><div class="fn">void<a href="#99d237"><b>setMaximumWidth</b></a>(intmaxw)</div>
<li><div class="fn">void<a href="#4e5337"><b>setMaximumHeight</b></a>(intmaxh)</div>
<li><div class="fn">QSize<a href="#12fe89"><b>sizeIncrement</b></a>()const</div>
<li><div class="fn">void<a href="#baa891"><b>setSizeIncrement</b></a>(constQSize&amp;)</div>
<li><div class="fn">virtualvoid<a href="#16748e"><b>setSizeIncrement</b></a>(intw, inth)</div>
<li><div class="fn">QSize<a href="#4543f1"><b>baseSize</b></a>()const</div>
<li><div class="fn">void<a href="#cb5440"><b>setBaseSize</b></a>(constQSize&amp;)</div>
<li><div class="fn">void<a href="#bcd0af"><b>setBaseSize</b></a>(intbasew, intbaseh)</div>
<li><div class="fn">void<a href="#87e3f4"><b>setFixedSize</b></a>(constQSize&amp;)</div>
<li><div class="fn">void<a href="#ff8057"><b>setFixedSize</b></a>(intw, inth)</div>
<li><div class="fn">void<a href="#f6c250"><b>setFixedWidth</b></a>(intw)</div>
<li><div class="fn">void<a href="#5e7ab2"><b>setFixedHeight</b></a>(inth)</div>
<li><div class="fn">QPoint<a href="#eb4b9c"><b>mapToGlobal</b></a>(constQPoint&amp;)const</div>
<li><div class="fn">QPoint<a href="#cb3348"><b>mapFromGlobal</b></a>(constQPoint&amp;)const</div>
<li><div class="fn">QPoint<a href="#df0a14"><b>mapToParent</b></a>(constQPoint&amp;)const</div>
<li><div class="fn">QPoint<a href="#7f1edd"><b>mapFromParent</b></a>(constQPoint&amp;)const</div>
<li><div class="fn">QPoint<a href="#7b471b"><b>mapTo</b></a>(QWidget*, constQPoint&amp;)const</div>
<li><div class="fn">QPoint<a href="#f65daf"><b>mapFrom</b></a>(QWidget*, constQPoint&amp;)const</div>
<li><div class="fn">QWidget*<a href="#aa50f8"><b>topLevelWidget</b></a>()const</div>
<li><div class="fn">enum<a href="#BackgroundMode"><b>BackgroundMode</b></a>{FixedColor, FixedPixmap, NoBackground, PaletteForeground, PaletteButton, PaletteLight, PaletteMidlight, PaletteDark, PaletteMid, PaletteText, PaletteBrightText, PaletteBase, PaletteBackground, PaletteShadow, PaletteHighlight, PaletteHighlightedText, PaletteButtonText, X11ParentRelative}</div>
<li><div class="fn">BackgroundMode<a href="#fb9fc2"><b>backgroundMode</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#e84bbe"><b>setBackgroundMode</b></a>(BackgroundMode)</div>
<li><div class="fn">constQColor&amp;<a href="#d5be64"><b>backgroundColor</b></a>()const</div>
<li><div class="fn">constQColor&amp;<a href="#c9040d"><b>foregroundColor</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#c09181"><b>setBackgroundColor</b></a>(constQColor&amp;)</div>
<li><div class="fn">constQPixmap*<a href="#9b2957"><b>backgroundPixmap</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#7e417f"><b>setBackgroundPixmap</b></a>(constQPixmap&amp;)</div>
<li><div class="fn">constQColorGroup&amp;<a href="#d92bf4"><b>colorGroup</b></a>()const</div>
<li><div class="fn">constQPalette&amp;<a href="#370880"><b>palette</b></a>()const</div>
<li><div class="fn">bool<a href="#d656ac"><b>ownPalette</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#d7e4b9"><b>setPalette</b></a>(constQPalette&amp;)</div>
<li><div class="fn">void<a href="#40fd45"><b>unsetPalette</b></a>()</div>
<li><div class="fn">QFont<a href="#167922"><b>font</b></a>()const</div>
<li><div class="fn">bool<a href="#aa1cc8"><b>ownFont</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#c52788"><b>setFont</b></a>(constQFont&amp;)</div>
<li><div class="fn">void<a href="#27a4a2"><b>unsetFont</b></a>()</div>
<li><div class="fn">QFontMetrics<a href="#386569"><b>fontMetrics</b></a>()const</div>
<li><div class="fn">QFontInfo<a href="#205244"><b>fontInfo</b></a>()const</div>
<li><div class="fn">enum<a href="#PropagationMode"><b>PropagationMode</b></a>{NoChildren, AllChildren, SameFont, SamePalette=SameFont}</div>
<li><div class="fn">PropagationModefontPropagation()const<em>(obsolete)</em></div>
<li><div class="fn">virtualvoidsetFontPropagation(PropagationMode)<em>(obsolete)</em></div>
<li><div class="fn">PropagationModepalettePropagation()const<em>(obsolete)</em></div>
<li><div class="fn">virtualvoidsetPalettePropagation(PropagationMode)<em>(obsolete)</em></div>
<li><div class="fn">constQCursor&amp;<a href="#5fad9d"><b>cursor</b></a>()const</div>
<li><div class="fn">bool<a href="#dd9a8a"><b>ownCursor</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#9b6e22"><b>setCursor</b></a>(constQCursor&amp;)</div>
<li><div class="fn">virtualvoid<a href="#215c33"><b>unsetCursor</b></a>()</div>
<li><div class="fn">QString<a href="#f852bc"><b>caption</b></a>()const</div>
<li><div class="fn">constQPixmap*<a href="#126b68"><b>icon</b></a>()const</div>
<li><div class="fn">QString<a href="#975b5d"><b>iconText</b></a>()const</div>
<li><div class="fn">bool<a href="#2831c6"><b>hasMouseTracking</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#3aa0a1"><b>setMask</b></a>(constQBitmap&amp;)</div>
<li><div class="fn">virtualvoid<a href="#588d30"><b>setMask</b></a>(constQRegion&amp;)</div>
<li><div class="fn">void<a href="#0b7ae4"><b>clearMask</b></a>()</div>
<li><div class="fn">enum<a href="#FocusPolicy"><b>FocusPolicy</b></a>{NoFocus=0, TabFocus=0x1, ClickFocus=0x2, StrongFocus=0x3, WheelFocus=0x7}</div>
<li><div class="fn">bool<a href="#331f68"><b>isActiveWindow</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#238801"><b>setActiveWindow</b></a>()</div>
<li><div class="fn">bool<a href="#2f25f0"><b>isFocusEnabled</b></a>()const</div>
<li><div class="fn">FocusPolicy<a href="#3d478d"><b>focusPolicy</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#f92b0f"><b>setFocusPolicy</b></a>(FocusPolicy)</div>
<li><div class="fn">bool<a href="#26f85d"><b>hasFocus</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#cddadb"><b>setFocusProxy</b></a>(QWidget*)</div>
<li><div class="fn">QWidget*<a href="#c1135e"><b>focusProxy</b></a>()const</div>
<li><div class="fn">void<a href="#647db0"><b>grabMouse</b></a>()</div>
<li><div class="fn">void<a href="#5bdd5f"><b>grabMouse</b></a>(constQCursor&amp;)</div>
<li><div class="fn">void<a href="#369707"><b>releaseMouse</b></a>()</div>
<li><div class="fn">void<a href="#6830ee"><b>grabKeyboard</b></a>()</div>
<li><div class="fn">void<a href="#0fadfc"><b>releaseKeyboard</b></a>()</div>
<li><div class="fn">bool<a href="#7af9d5"><b>isUpdatesEnabled</b></a>()const</div>
<li><div class="fn">virtualbool<a href="#866e52"><b>close</b></a>(boolalsoDelete)</div>
<li><div class="fn">bool<a href="#4d2aa7"><b>isVisible</b></a>()const</div>
<li><div class="fn">bool<a href="#8e72d3"><b>isVisibleTo</b></a>(QWidget*)const</div>
<li><div class="fn">boolisVisibleToTLW()const<em>(obsolete)</em></div>
<li><div class="fn">QRect<a href="#a93076"><b>visibleRect</b></a>()const</div>
<li><div class="fn">bool<a href="#4fdbf8"><b>isHidden</b></a>()const</div>
<li><div class="fn">bool<a href="#99b34b"><b>isMinimized</b></a>()const</div>
<li><div class="fn">bool<a href="#3e7791"><b>isMaximized</b></a>()const</div>
<li><div class="fn">virtualQSize<a href="#4511d1"><b>sizeHint</b></a>()const</div>
<li><div class="fn">virtualQSize<a href="#553e08"><b>minimumSizeHint</b></a>()const</div>
<li><div class="fn">virtualQSizePolicy<a href="#23726d"><b>sizePolicy</b></a>()const</div>
<li><div class="fn">void<a href="#9230b0"><b>setSizePolicy</b></a>(QSizePolicy)</div>
<li><div class="fn">virtualint<a href="#1a2d58"><b>heightForWidth</b></a>(int)const</div>
<li><div class="fn">virtualvoid<a href="#2ec710"><b>adjustSize</b></a>()</div>
<li><div class="fn">QLayout*<a href="#839758"><b>layout</b></a>()const</div>
<li><div class="fn">void<a href="#5f7c35"><b>updateGeometry</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#4591aa"><b>reparent</b></a>(QWidget*parent, WFlags, constQPoint&amp;, boolshowIt=FALSE)</div>
<li><div class="fn">void<a href="#b2d9e4"><b>reparent</b></a>(QWidget*parent, constQPoint&amp;, boolshowIt=FALSE)</div>
<li><div class="fn">void<a href="#f4f1b7"><b>erase</b></a>()</div>
<li><div class="fn">void<a href="#d64cc6"><b>erase</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">void<a href="#56d8c5"><b>erase</b></a>(constQRect&amp;)</div>
<li><div class="fn">void<a href="#10cf79"><b>erase</b></a>(constQRegion&amp;)</div>
<li><div class="fn">void<a href="#4a08f1"><b>scroll</b></a>(intdx, intdy)</div>
<li><div class="fn">void<a href="#d7aad8"><b>scroll</b></a>(intdx, intdy, constQRect&amp;)</div>
<li><div class="fn">void<a href="#df83d0"><b>drawText</b></a>(intx, inty, constQString&amp;)</div>
<li><div class="fn">void<a href="#67929e"><b>drawText</b></a>(constQPoint&amp;, constQString&amp;)</div>
<li><div class="fn">QWidget*<a href="#88b8cf"><b>focusWidget</b></a>()const</div>
<li><div class="fn">QRect<a href="#838204"><b>microFocusHint</b></a>()const</div>
<li><div class="fn">bool<a href="#130768"><b>acceptDrops</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#8169cb"><b>setAcceptDrops</b></a>(boolon)</div>
<li><div class="fn">virtualvoid<a href="#efa8f9"><b>setAutoMask</b></a>(bool)</div>
<li><div class="fn">bool<a href="#898d4a"><b>autoMask</b></a>()const</div>
<li><div class="fn">enum<a href="#BackgroundOrigin"><b>BackgroundOrigin</b></a>{WidgetOrigin, ParentOrigin}</div>
<li><div class="fn">void<a href="#67b25b"><b>setBackgroundOrigin</b></a>(BackgroundOrigin)</div>
<li><div class="fn">BackgroundOrigin<a href="#456fbe"><b>backgroundOrigin</b></a>()const</div>
<li><div class="fn">virtualbool<a href="#eeb880"><b>customWhatsThis</b></a>()const</div>
<li><div class="fn">QWidget*<a href="#ba8a09"><b>parentWidget</b></a>()const</div>
<li><div class="fn">bool<b>testWState</b>(uintn)const(internal)</div>
<li><div class="fn">bool<a href="#be9b50"><b>testWFlags</b></a>(WFlagsf)const</div>
<li><div class="fn">voidsetPalette(constQPalette&amp;, booliReallyMeanIt)<em>(obsolete)</em></div>
<li><div class="fn">voidsetFont(constQFont&amp;, booliReallyMeanIt)<em>(obsolete)</em></div>
</ul>
<h2>Public Slots</h2>
<ul>
<li><div class="fn">virtualvoid<a href="#4b103c"><b>setEnabled</b></a>(bool)</div>
<li><div class="fn">void<a href="#2d200f"><b>setDisabled</b></a>(bool)</div>
<li><div class="fn">virtualvoid<a href="#d6a291"><b>setCaption</b></a>(constQString&amp;)</div>
<li><div class="fn">virtualvoid<a href="#504fc4"><b>setIcon</b></a>(constQPixmap&amp;)</div>
<li><div class="fn">virtualvoid<a href="#2f0f0d"><b>setIconText</b></a>(constQString&amp;)</div>
<li><div class="fn">virtualvoid<a href="#36406c"><b>setMouseTracking</b></a>(boolenable)</div>
<li><div class="fn">virtualvoid<a href="#25775a"><b>setFocus</b></a>()</div>
<li><div class="fn">void<a href="#44c03a"><b>clearFocus</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#b37820"><b>setUpdatesEnabled</b></a>(boolenable)</div>
<li><div class="fn">void<a href="#f3f721"><b>update</b></a>()</div>
<li><div class="fn">void<a href="#a66a88"><b>update</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">void<a href="#3e43cd"><b>update</b></a>(constQRect&amp;)</div>
<li><div class="fn">void<a href="#d5cfc3"><b>repaint</b></a>()</div>
<li><div class="fn">void<a href="#d8ac68"><b>repaint</b></a>(boolerase)</div>
<li><div class="fn">void<a href="#898fb1"><b>repaint</b></a>(intx, inty, intw, inth, boolerase=TRUE)</div>
<li><div class="fn">void<a href="#138c7b"><b>repaint</b></a>(constQRect&amp;, boolerase=TRUE)</div>
<li><div class="fn">void<a href="#7569b1"><b>repaint</b></a>(constQRegion&amp;, boolerase=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#200ee5"><b>show</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#410481"><b>hide</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#c10123"><b>showMinimized</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#b6e000"><b>showMaximized</b></a>()</div>
<li><div class="fn">void<a href="#1ac501"><b>showFullScreen</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#8a8f06"><b>showNormal</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#c14a09"><b>polish</b></a>()</div>
<li><div class="fn">void<a href="#533b52"><b>constPolish</b></a>()const</div>
<li><div class="fn">bool<a href="#3d9c87"><b>close</b></a>()</div>
<li><div class="fn">void<a href="#4c1b49"><b>raise</b></a>()</div>
<li><div class="fn">void<a href="#afe0aa"><b>lower</b></a>()</div>
<li><div class="fn">void<a href="#e1aab1"><b>stackUnder</b></a>(QWidget*)</div>
<li><div class="fn">virtualvoid<a href="#39930b"><b>move</b></a>(intx, inty)</div>
<li><div class="fn">void<a href="#f753ed"><b>move</b></a>(constQPoint&amp;)</div>
<li><div class="fn">virtualvoid<a href="#8fcbbe"><b>resize</b></a>(intw, inth)</div>
<li><div class="fn">void<a href="#ff9d07"><b>resize</b></a>(constQSize&amp;)</div>
<li><div class="fn">virtualvoid<a href="#9ede68"><b>setGeometry</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#5e9ab1"><b>setGeometry</b></a>(constQRect&amp;)</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">void<a href="#20c984"><b>setTabOrder</b></a>(QWidget*, QWidget*)</div>
<li><div class="fn">QWidget*<a href="#fbd34e"><b>mouseGrabber</b></a>()</div>
<li><div class="fn">QWidget*<a href="#e2ce48"><b>keyboardGrabber</b></a>()</div>
<li><div class="fn">QWidget*<a href="#000061"><b>find</b></a>(WId)</div>
<li><div class="fn">QWidgetMapper*<b>wmapper</b>()(internal)</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">virtualbool<a href="#6ff658"><b>event</b></a>(QEvent*)</div>
<li><div class="fn">virtualvoid<a href="#2ecc04"><b>mousePressEvent</b></a>(QMouseEvent*)</div>
<li><div class="fn">virtualvoid<a href="#9aa77f"><b>mouseReleaseEvent</b></a>(QMouseEvent*)</div>
<li><div class="fn">virtualvoid<a href="#e36586"><b>mouseDoubleClickEvent</b></a>(QMouseEvent*)</div>
<li><div class="fn">virtualvoid<a href="#a51d92"><b>mouseMoveEvent</b></a>(QMouseEvent*)</div>
<li><div class="fn">virtualvoid<a href="#6f6c80"><b>wheelEvent</b></a>(QWheelEvent*)</div>
<li><div class="fn">virtualvoid<a href="#0a4482"><b>keyPressEvent</b></a>(QKeyEvent*)</div>
<li><div class="fn">virtualvoid<a href="#4b620f"><b>keyReleaseEvent</b></a>(QKeyEvent*)</div>
<li><div class="fn">virtualvoid<a href="#21a4b8"><b>focusInEvent</b></a>(QFocusEvent*)</div>
<li><div class="fn">virtualvoid<a href="#de664a"><b>focusOutEvent</b></a>(QFocusEvent*)</div>
<li><div class="fn">virtualvoid<a href="#5d1d18"><b>enterEvent</b></a>(QEvent*)</div>
<li><div class="fn">virtualvoid<a href="#7eaa8a"><b>leaveEvent</b></a>(QEvent*)</div>
<li><div class="fn">virtualvoid<a href="#e3d821"><b>paintEvent</b></a>(QPaintEvent*)</div>
<li><div class="fn">virtualvoid<a href="#3f1b15"><b>moveEvent</b></a>(QMoveEvent*)</div>
<li><div class="fn">virtualvoid<a href="#7d375f"><b>resizeEvent</b></a>(QResizeEvent*)</div>
<li><div class="fn">virtualvoid<a href="#c04094"><b>closeEvent</b></a>(QCloseEvent*)</div>
<li><div class="fn">virtualvoid<a href="#c8639f"><b>dragEnterEvent</b></a>(QDragEnterEvent*)</div>
<li><div class="fn">virtualvoid<a href="#3b47df"><b>dragMoveEvent</b></a>(QDragMoveEvent*)</div>
<li><div class="fn">virtualvoid<a href="#fdd48c"><b>dragLeaveEvent</b></a>(QDragLeaveEvent*)</div>
<li><div class="fn">virtualvoid<a href="#e9b4c3"><b>dropEvent</b></a>(QDropEvent*)</div>
<li><div class="fn">virtualvoid<a href="#542dc0"><b>showEvent</b></a>(QShowEvent*)</div>
<li><div class="fn">virtualvoid<a href="#ab7e05"><b>hideEvent</b></a>(QHideEvent*)</div>
<li><div class="fn">virtualvoid<a href="#6ecc2e"><b>customEvent</b></a>(QCustomEvent*)</div>
<li><div class="fn">virtualvoid<a href="#b8a07f"><b>updateMask</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#5e2e23"><b>styleChange</b></a>(QStyle&amp;)</div>
<li><div class="fn">virtualvoid<a href="#048926"><b>enabledChange</b></a>(bool)</div>
<li><div class="fn">virtualvoid<a href="#f146a8"><b>backgroundColorChange</b></a>(constQColor&amp;)</div>
<li><div class="fn">virtualvoid<a href="#61a18f"><b>backgroundPixmapChange</b></a>(constQPixmap&amp;)</div>
<li><div class="fn">virtualvoid<a href="#5825b1"><b>paletteChange</b></a>(constQPalette&amp;)</div>
<li><div class="fn">virtualvoid<a href="#ac5c83"><b>fontChange</b></a>(constQFont&amp;)</div>
<li><div class="fn">virtualint<a href="#f0e10e"><b>metric</b></a>(int)const</div>
<li><div class="fn">virtualvoid<a href="#5791cc"><b>create</b></a>(WId=0, boolinitializeWindow=TRUE, booldestroyOldWindow=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#8a2b53"><b>destroy</b></a>(booldestroyWindow=TRUE, booldestroySubWindows=TRUE)</div>
<li><div class="fn">uint<b>getWState</b>()const(internal)</div>
<li><div class="fn">virtualvoid<b>setWState</b>(uint)(internal)</div>
<li><div class="fn">void<b>clearWState</b>(uintn)(internal)</div>
<li><div class="fn">WFlags<a href="#825ef3"><b>getWFlags</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#9dd055"><b>setWFlags</b></a>(WFlags)</div>
<li><div class="fn">void<a href="#ef7827"><b>clearWFlags</b></a>(WFlagsn)</div>
<li><div class="fn">virtualvoid<b>setFRect</b>(constQRect&amp;)(internal)</div>
<li><div class="fn">virtualvoid<b>setCRect</b>(constQRect&amp;)(internal)</div>
<li><div class="fn">virtualbool<a href="#8d74a1"><b>focusNextPrevChild</b></a>(boolnext)</div>
<li><div class="fn">QWExtra*<b>extraData</b>()(internal)</div>
<li><div class="fn">QTLWExtra*<b>topData</b>()(internal)</div>
<li><div class="fn">QFocusData*<a href="#77742d"><b>focusData</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#55438e"><b>setKeyCompression</b></a>(bool)</div>
<li><div class="fn">virtualvoid<a href="#04c503"><b>setMicroFocusHint</b></a>(intx, inty, intw, inth, booltext=TRUE)</div>
</ul>
<h2>Properties</h2>
<table border=1 cellpadding=3 cellspacing=0>
<tr><th>Type<th>Name<th>READ<th>WRITE<th>Options
<tr><td>bool<td>isTopLevel<td>isTopLevel<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>isModal<td>isModal<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>isPopup<td>isPopup<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>isDesktop<td>isDesktop<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>enabled<td>isEnabled<td>setEnabled<td>&nbsp;
<tr><td>QRect<td>geometry<td>geometry<td>setGeometry<td>&nbsp;
<tr><td>QRect<td>frameGeometry<td>frameGeometry<td>&nbsp;<td>&nbsp;
<tr><td>int<td>x<td>x<td>&nbsp;<td>&nbsp;
<tr><td>int<td>y<td>y<td>&nbsp;<td>&nbsp;
<tr><td>QPoint<td>pos<td>pos<td>&nbsp;<td>&nbsp;
<tr><td>QSize<td>frameSize<td>frameSize<td>&nbsp;<td>&nbsp;
<tr><td>QSize<td>size<td>size<td>resize<td> DESIGNABLE false
<tr><td>int<td>width<td>width<td>&nbsp;<td>&nbsp;
<tr><td>int<td>height<td>height<td>&nbsp;<td>&nbsp;
<tr><td>QRect<td>rect<td>rect<td>&nbsp;<td>&nbsp;
<tr><td>QRect<td>childrenRect<td>childrenRect<td>&nbsp;<td>&nbsp;
<tr><td>QRegion<td>childrenRegion<td>childrenRegion<td>&nbsp;<td>&nbsp;
<tr><td>QSizePolicy<td>sizePolicy<td>sizePolicy<td>setSizePolicy<td>&nbsp;
<tr><td>QSize<td>minimumSize<td>minimumSize<td>setMinimumSize<td>&nbsp;
<tr><td>QSize<td>maximumSize<td>maximumSize<td>setMaximumSize<td>&nbsp;
<tr><td>int<td>minimumWidth<td>minimumWidth<td>setMinimumWidth<td> STORED false
<tr><td>int<td>minimumHeight<td>minimumHeight<td>setMinimumHeight<td> STORED false
<tr><td>int<td>maximumWidth<td>maximumWidth<td>setMaximumWidth<td> STORED false
<tr><td>int<td>maximumHeight<td>maximumHeight<td>setMaximumHeight<td> STORED false
<tr><td>QSize<td>sizeIncrement<td>sizeIncrement<td>setSizeIncrement<td>&nbsp;
<tr><td>QSize<td>baseSize<td>baseSize<td>setBaseSize<td>&nbsp;
<tr><td>BackgroundMode<td>backgroundMode<td>backgroundMode<td>setBackgroundMode<td> DESIGNABLE false
<tr><td>QColor<td>backgroundColor<td>backgroundColor<td>setBackgroundColor<td> DESIGNABLE false
<tr><td>QColor<td>foregroundColor<td>foregroundColor<td>&nbsp;<td>&nbsp;
<tr><td>QPixmap<td>backgroundPixmap<td>backgroundPixmap<td>setBackgroundPixmap<td> DESIGNABLE false
<tr><td>QColorGroup<td>colorGroup<td>colorGroup<td>&nbsp;<td>&nbsp;
<tr><td>QPalette<td>palette<td>palette<td>setPalette<td> RESET unsetPalette
<tr><td>bool<td>ownPalette<td>ownPalette<td>&nbsp;<td>&nbsp;
<tr><td>QFont<td>font<td>font<td>setFont<td> RESET unsetFont
<tr><td>bool<td>ownFont<td>ownFont<td>&nbsp;<td>&nbsp;
<tr><td>QCursor<td>cursor<td>cursor<td>setCursor<td> RESET unsetCursor
<tr><td>bool<td>ownCursor<td>ownCursor<td>&nbsp;<td>&nbsp;
<tr><td>QString<td>caption<td>caption<td>setCaption<td>&nbsp;
<tr><td>QPixmap<td>icon<td>icon<td>setIcon<td>&nbsp;
<tr><td>QString<td>iconText<td>iconText<td>setIconText<td>&nbsp;
<tr><td>bool<td>mouseTracking<td>hasMouseTracking<td>setMouseTracking<td>&nbsp;
<tr><td>bool<td>isActiveWindow<td>isActiveWindow<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>focusEnabled<td>isFocusEnabled<td>&nbsp;<td>&nbsp;
<tr><td>FocusPolicy<td>focusPolicy<td>focusPolicy<td>setFocusPolicy<td>&nbsp;
<tr><td>bool<td>focus<td>hasFocus<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>updatesEnabled<td>isUpdatesEnabled<td>setUpdatesEnabled<td> DESIGNABLE false
<tr><td>bool<td>visible<td>isVisible<td>&nbsp;<td>&nbsp;
<tr><td>QRect<td>visibleRect<td>visibleRect<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>hidden<td>isHidden<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>minimized<td>isMinimized<td>&nbsp;<td>&nbsp;
<tr><td>QSize<td>sizeHint<td>sizeHint<td>&nbsp;<td>&nbsp;
<tr><td>QSize<td>minimumSizeHint<td>minimumSizeHint<td>&nbsp;<td>&nbsp;
<tr><td>QRect<td>microFocusHint<td>microFocusHint<td>&nbsp;<td>&nbsp;
<tr><td>bool<td>acceptDrops<td>acceptDrops<td>setAcceptDrops<td>&nbsp;
<tr><td>bool<td>autoMask<td>autoMask<td>setAutoMask<td>&nbsp;
<tr><td>BackgroundOrigin<td>backgroundOrigin<td>backgroundOrigin<td>setBackgroundOrigin<td>&nbsp;
<tr><td>bool<td>customWhatsThis<td>customWhatsThis<td>&nbsp;<td>&nbsp;
</table>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QWidget class is the base class of all user interface objects.
<p>
The widget is the atom of the user interface: It receives mouse,
keyboard and other events from the window system, and paints a
representation of itself on the screen.  Every widget is
rectangular, and they are sorted in a Z-order.  A widget is clipped
by its parent and by the widgets in front of it.
<p>A widget that isn't embedded in a parent widget is called a
top-level widget. Usually, top-level widgets are windows with a
frame and a title bar (though it is also possible to create top
level widgets without such decoration by the use of <a
href="qt.html#WidgetFlags">widget flags</a>).  In Qt, <a href="qmainwindow.html">QMainWindow</a> and the
various subclasses of <a href="qdialog.html">QDialog</a> are the most common top-level windows.
<p>A widget without a parent widget is always a top-level widget.
<p>The opposite of top-level widgets are child widgets. Those are child
windows in their parent widgets.  You usually cannot distinguish a
child widget from its parent visually.  Most other widgets in Qt are
useful only as child widgets.  (You <em>can</em> make a e.g. button into a
top-level widget, but most people prefer to put their buttons in
e.g. dialogs.)
<p>QWidget has many member functions, but some of them have little
direct functionality - for example it has a font but never uses it
itself. There are many subclasses which provide real functionality,
as diverse as <a href="qpushbutton.html">QPushButton</a>, <a href="qlistbox.html">QListBox</a> and <a href="qtabdialog.html">QTabDialog</a>.
<p><strong>Groups of functions:</strong>
<ul>
<li> Window functions:
<a href="#200ee5">show</a>(),
<a href="#410481">hide</a>(),
<a href="#4c1b49">raise</a>(),
<a href="#afe0aa">lower</a>(),
<a href="#3d9c87">close</a>().
<li> Top level windows:
<a href="#f852bc">caption</a>(),
<a href="#d6a291">setCaption</a>(),
<a href="#126b68">icon</a>(),
<a href="#504fc4">setIcon</a>(),
<a href="#975b5d">iconText</a>(),
<a href="#2f0f0d">setIconText</a>(),
<a href="#331f68">isActiveWindow</a>(),
<a href="#238801">setActiveWindow</a>(),
<a href="#c10123">showMinimized</a>().
<a href="#b6e000">showMaximized</a>(),
<a href="#1ac501">showFullScreen</a>(),
<a href="#8a8f06">showNormal</a>().
<li> Window contents:
<a href="#a66a88">update</a>(),
<a href="#7569b1">repaint</a>(),
<a href="#10cf79">erase</a>(),
<a href="#d7aad8">scroll</a>(),
<a href="#b8a07f">updateMask</a>().
<li> Geometry:
<a href="#2691c9">pos</a>(),
<a href="#50b75e">size</a>(),
<a href="#75ae71">rect</a>(),
<a href="#6f017a">x</a>(),
<a href="#800909">y</a>(),
<a href="#2edab1">width</a>(),
<a href="#e3c588">height</a>(),
<a href="#23726d">sizePolicy</a>(),
<a href="#9230b0">setSizePolicy</a>(),
<a href="#4511d1">sizeHint</a>(),
<a href="#5f7c35">updateGeometry</a>(),
<a href="#839758">layout</a>(),
<a href="#39930b">move</a>(),
<a href="#8fcbbe">resize</a>(),
<a href="#9ede68">setGeometry</a>(),
<a href="#ca6d0d">frameGeometry</a>(),
<a href="#e515c8">geometry</a>(),
<a href="#d6ac48">childrenRect</a>(),
<a href="#2ec710">adjustSize</a>(),
<a href="#cb3348">mapFromGlobal</a>(),
<a href="#7f1edd">mapFromParent</a>()
<a href="#eb4b9c">mapToGlobal</a>(),
<a href="#df0a14">mapToParent</a>(),
<a href="#fe9f6b">maximumSize</a>(),
<a href="#b24d94">minimumSize</a>(),
<a href="#12fe89">sizeIncrement</a>(),
<a href="#c78dce">setMaximumSize</a>(),
<a href="#c0b5fb">setMinimumSize</a>(),
<a href="#16748e">setSizeIncrement</a>(),
<a href="#bcd0af">setBaseSize</a>(),
<a href="#87e3f4">setFixedSize</a>()
<li> Mode:
<a href="#4d2aa7">isVisible</a>(),
<a href="#8e72d3">isVisibleTo</a>(),
<a href="#a93076">visibleRect</a>(),
<a href="#99b34b">isMinimized</a>(),
<a href="#38c72f">isDesktop</a>(),
<a href="#f9af61">isEnabled</a>(),
<a href="#1123d2">isEnabledTo</a>(),
<a href="#c271f0">isModal</a>(),
<a href="#1fc663">isPopup</a>(),
<a href="#17338a">isTopLevel</a>(),
<a href="#4b103c">setEnabled</a>(),
<a href="#2831c6">hasMouseTracking</a>(),
<a href="#36406c">setMouseTracking</a>(),
<a href="#7af9d5">isUpdatesEnabled</a>(),
<a href="#b37820">setUpdatesEnabled</a>(),
<li> Look and feel:
<a href="#027381">style</a>(),
<a href="#287f79">setStyle</a>(),
<a href="#5fad9d">cursor</a>(),
<a href="#9b6e22">setCursor</a>()
<a href="#167922">font</a>(),
<a href="#090d60">setFont</a>(),
<a href="#370880">palette</a>(),
<a href="#d7e4b9">setPalette</a>(),
<a href="#fb9fc2">backgroundMode</a>(),
<a href="#e84bbe">setBackgroundMode</a>(),
<a href="#9b2957">backgroundPixmap</a>(),
<a href="#7e417f">setBackgroundPixmap</a>(),
setTranslateBackground(),
<a href="#d5be64">backgroundColor</a>(),
<a href="#d92bf4">colorGroup</a>(),
<a href="#386569">fontMetrics</a>(),
<a href="#205244">fontInfo</a>().
<li> Keyboard focus functions:
<a href="#2f25f0">isFocusEnabled</a>(),
<a href="#f92b0f">setFocusPolicy</a>(),
<a href="#3d478d">focusPolicy</a>(),
<a href="#26f85d">hasFocus</a>(),
<a href="#25775a">setFocus</a>(),
<a href="#44c03a">clearFocus</a>(),
<a href="#20c984">setTabOrder</a>(),
<a href="#cddadb">setFocusProxy</a>().
<li> Mouse and keyboard grabbing:
<a href="#5bdd5f">grabMouse</a>(),
<a href="#369707">releaseMouse</a>(),
<a href="#6830ee">grabKeyboard</a>(),
<a href="#0fadfc">releaseKeyboard</a>(),
<a href="#fbd34e">mouseGrabber</a>(),
<a href="#e2ce48">keyboardGrabber</a>().
<li> Event handlers:
<a href="#6ff658">event</a>(),
<a href="#2ecc04">mousePressEvent</a>(),
<a href="#9aa77f">mouseReleaseEvent</a>(),
<a href="#e36586">mouseDoubleClickEvent</a>(),
<a href="#a51d92">mouseMoveEvent</a>(),
<a href="#0a4482">keyPressEvent</a>(),
<a href="#4b620f">keyReleaseEvent</a>(),
<a href="#21a4b8">focusInEvent</a>(),
<a href="#de664a">focusOutEvent</a>(),
<a href="#6f6c80">wheelEvent</a>(),
<a href="#5d1d18">enterEvent</a>(),
<a href="#7eaa8a">leaveEvent</a>(),
<a href="#e3d821">paintEvent</a>(),
<a href="#3f1b15">moveEvent</a>(),
<a href="#7d375f">resizeEvent</a>(),
<a href="#c04094">closeEvent</a>(),
<a href="#c8639f">dragEnterEvent</a>(),
<a href="#3b47df">dragMoveEvent</a>(),
<a href="#fdd48c">dragLeaveEvent</a>(),
<a href="#e9b4c3">dropEvent</a>(),
<a href="qobject.html#27f3ff">childEvent</a>(),
<a href="#542dc0">showEvent</a>(),
<a href="#ab7e05">hideEvent</a>(),
<a href="#6ecc2e">customEvent</a>().
<li> Change handlers:
<a href="#f146a8">backgroundColorChange</a>(),
<a href="#61a18f">backgroundPixmapChange</a>(),
<a href="#048926">enabledChange</a>(),
<a href="#ac5c83">fontChange</a>(),
<a href="#5825b1">paletteChange</a>(),
<a href="#5e2e23">styleChange</a>().
<li> System functions:
<a href="#ba8a09">parentWidget</a>(),
<a href="#aa50f8">topLevelWidget</a>(),
<a href="#4591aa">reparent</a>(),
<a href="#c14a09">polish</a>(),
<a href="#653917">winId</a>(),
<a href="#000061">find</a>(),
<a href="#f0e10e">metric</a>().
<li> Internal kernel functions:
<a href="#fd06a0">setFRect</a>(),
<a href="#cb0019">setCRect</a>(),
<a href="#8d74a1">focusNextPrevChild</a>(),
<a href="#53ffa9">wmapper</a>(),
<a href="#ef7827">clearWFlags</a>(),
<a href="#825ef3">getWFlags</a>(),
<a href="#9dd055">setWFlags</a>(),
<a href="#be9b50">testWFlags</a>().
<li> What's this help:
<a href="#eeb880">customWhatsThis</a>()
</ul>
<p>Every widget's constructor accepts two or three standard arguments:
<ul>
<li><code>QWidget *parent = 0</code> is the parent of the new widget.
If it is 0 (the default), the new widget will be a top-level window.
If not, it will be a child of <em>parent,</em> and be constrained by <em>parent's</em> geometry (Unless you specify <code>WType_TopLevel</code> as
widget flag).
<li><code>const char *name = 0</code> is the widget name of the new
widget.  You can access it using <a href="qobject.html#e90504">name</a>().  The widget name is little
used by programmers but is quite useful with GUI builders such as the
Qt Designer (you can name a widget in the builder, and <a href="qobject.html#7f8e37">connect</a>() to
it by name in your code).  The <a href="qobject.html#c21cea">dumpObjectTree</a>() debugging function also
uses it.
<li><code>WFlags f = 0</code> (where available) sets the <a
href="qt.html#WidgetFlags">widget flags</a>; the default is good for almost
all widgets, but to get e.g. top-level widgets without a window
system frame you must use special flags.
</ul>
<p>The tictac/tictac.cpp example program is good example of a simple
widget.  It contains a few event handlers (as all widgets must), a
few custom routines that are peculiar to it (as all useful widgets
must), and has a few children and connections.  Everything it does
is done in response to an event: This is by far the most common way
to design GUI applications.
<p>You will need to supply the content for your widgets yourself, but
here is a brief run-down of the events, starting with the most common
ones: <ul>
<li> paintEvent() - called whenever the widget needs to be
repainted.  Every widget which displays output must implement it,
and it is sensible to <em>never</em> paint on the screen outside
paintEvent().
<li> resizeEvent() - called when the widget has been resized.
<li> mousePressEvent() - called when a mouse button is pressed.
There are six mouse-related events, mouse press and mouse release
events are by far the most important.  A widget receives mouse press
events when the widget is inside it, or when it has grabbed the
mouse using grabMouse().
<li> mouseReleaseEvent() - called when a mouse button is released.
A widget receives mouse release events when it has received the
corresponding mouse press event.  This means that if the user
presses the mouse inside <em>your</em> widget, then drags the mouse to
somewhere else, then releases, <em>your</em> widget receives the release
event.  There is one exception, however: If a popup menu appears
while the mouse button is held down, that popup steals the mouse
events at once.
<li> mouseDoubleClickEvent() - not quite as obvious as it might seem.
If the user double-clicks, the widget receives a mouse press event
(perhaps a mouse move event or two if he/she does not hold the mouse
quite steady), a mouse release event and finally this event.  It is <em>not possible</em> to distinguish a click from a double click until you've
seen whether the second click arrives.  (This is one reason why most GUI
books recommend that double clicks be an extension of single clicks,
rather than trigger a different action.)
</ul>
<p>If your widget only contains child widgets, you probably do not need to
implement any event handlers.
<p>Widgets that accept keyboard input need to reimplement a few more
event handlers: <ul>
<li> keyPressEvent() - called whenever a key is pressed, and again
when a key has been held down long enough for it to auto-repeat.
Note that the Tab and shift-Tab keys are only passed to the widget
if they are not used by the focus-change mechanisms.  To force those
keys to be processed by your widget, you must reimplement
<a href="#6ff658">QWidget::event</a>().
<li> focusInEvent() - called when the widget gains keyboard focus
(assuming you have called setFocusPolicy(), of course). Well
written widgets indicate that they own the keyboard focus in a clear
but discreet way.
<li> focusOutEvent() - called when the widget loses keyboard
focus.
</ul>
<p>Some widgets will need to reimplement some more obscure event
handlers, too: <ul>
<li> mouseMoveEvent() - called whenever the mouse moves while a
button is held down.  This is useful for e.g. dragging.  If you call
setMouseTracking(TRUE), you get mouse move events even when no
buttons are held down.  (Note that applications which make use of
mouse tracking are often not very useful on low-bandwidth X
connections.)
<li> keyReleaseEvent() - called whenever a key is released, and also
while it is held down if the key is auto-repeating.  In that case
the widget receives a key release event and immediately a key press
event for every repeat.  Note that the Tab and shift-Tab keys are
only passed to the widget if they are not used by the focus-change
mechanisms.  To force those keys to be processed by your widget, you
must reimplement QWidget::event().
<li> wheelEvent() -- called whenever the user turns the mouse wheel
while the widget has the focus.
<li> enterEvent() - called when the mouse enters the widget's screen
space.  (This excludes screen space owned by any children of the
widget.)
<li> leaveEvent() - called when the mouse leaves the widget's screen
space.
<li> moveEvent() - called when the widget has been moved relative to its
parent.
<li> closeEvent() - called when the user closes the widget (or when
close() is called).
</ul>
<p>There are also some <em>really</em> obscure events.  They are listed in
<a href="qevent-h.html">qevent.h</a> and you need to reimplement event() to handle them.  The
default implementation of event() handles Tab and shift-Tab (to move
the keyboard focus), and passes on most other events to one of the
more specialized handlers above.
<p>When writing a widget, there are a few more things to look out
for. <ul>
<li> In the constructor, be sure to set up your member variables
early on, before there's any chance that you might receive an event.
<li>It is almost always useful to reimplement sizeHint() and to set
the correct size policy with setSizePolicy(), so users of your class
can set up layout management more easily.  A size policy lets you
supply good defaults for the layout management handling, so that
other widgets can contain and manage yours easily.  sizeHint()
indicates a "good" size for the widget.
<li>If your widget is a top-level window, setCaption() and setIcon() set
the title bar and icon respectively.
<p></ul>
<p>See also  <a href="qevent.html">QEvent</a>, <a href="qpainter.html">QPainter</a>, <a href="qgridlayout.html">QGridLayout</a> and <a href="qboxlayout.html">QBoxLayout</a>.
<p>Examples:
 <a href="iconview-main-cpp.html#QWidget">iconview/main.cpp</a>
 <a href="drawlines-connect-cpp.html#QWidget">drawlines/connect.cpp</a>
 <a href="mainlyQt-editor-cpp.html#QWidget">mainlyQt/editor.cpp</a>
 <a href="xform-xform-cpp.html#QWidget">xform/xform.cpp</a>
 <a href="layout-layout-cpp.html#QWidget">layout/layout.cpp</a>
 <a href="i18n-main-cpp.html#QWidget">i18n/main.cpp</a>
 <a href="popup-popup-cpp.html#QWidget">popup/popup.cpp</a>
 <a href="menu-menu-cpp.html#QWidget">menu/menu.cpp</a>
 <a href="progress-progress-cpp.html#QWidget">progress/progress.cpp</a>
 <a href="qmag-qmag-cpp.html#QWidget">qmag/qmag.cpp</a>
 <a href="splitter-splitter-cpp.html#QWidget">splitter/splitter.cpp</a>
 <a href="forever-forever-cpp.html#QWidget">forever/forever.cpp</a>
 <a href="desktop-desktop-cpp.html#QWidget">desktop/desktop.cpp</a>
 <a href="scrollview-scrollview-cpp.html#QWidget">scrollview/scrollview.cpp</a>
 <a href="customlayout-main-cpp.html#QWidget">customlayout/main.cpp</a>

<hr><h2>Member Type Documentation</h2>
<h3 class="fn"><a name="BackgroundMode">QWidget::BackgroundMode</a></h3>
This enum describes how the background of a widget changes, as the
widget's palette changes.
<p>The background is what the widget contains when <a href="#e3d821">paintEvent</a>() is
called.  To minimize flicker, this should be the most common color
or pixmap in the widget.  For <code>PaletteBackground,</code> use
<a href="#d92bf4">colorGroup</a>().brush( <code>QColorGroup::Background</code> ), and so on.  There
are also three special values, listed at the end: <ul>
<li> <code>PaletteForeground</code>
<li> <code>PaletteBackground</code>
<li> <code>PaletteButton</code>
<li> <code>PaletteLight</code>
<li> <code>PaletteMidlight</code>
<li> <code>PaletteDark</code>
<li> <code>PaletteMid</code>
<li> <code>PaletteText</code>
<li> <code>PaletteBrightText</code>
<li> <code>PaletteButtonText</code>
<li> <code>PaletteBase</code>
<li> <code>PaletteShadow</code>
<li> <code>PaletteHighlight</code>
<li> <code>PaletteHighlightedText</code>
<li> <code>NoBackground</code> - the widget is not cleared before paintEvent().
If the widget's paint event always draws on all the pixels, using
this mode can be both fast and flicker-free.
<li> <code>FixedColor</code> - the widget is cleared to a fixed color,
normally different from all the ones in the <a href="#370880">palette</a>().  Set using
<a href="#c09181">setBackgroundColor</a>().
<li> <code>FixedPixmap</code> - the widget is cleared to a fixed pixmap,
normally different from all the ones in the palette().  Set using
<a href="#7e417f">setBackgroundPixmap</a>().
<p></ul>
<p><code>FixedColor</code> and <code>FixedPixmap</code> sometimes are just the right
thing, but if you use them, make sure that your application looks
right when the desktop color scheme has been changed.  (On X11, a
quick way to test is e.g. "./yourapp -bg paleblue".  On Windows, you
have to use the control panel.)
<p>See also  <a href="#e84bbe">setBackgroundMode</a>(), <a href="#fb9fc2">backgroundMode</a>(), <a href="#7e417f">setBackgroundPixmap</a>() and <a href="#c09181">setBackgroundColor</a>().
<h3 class="fn"><a name="BackgroundOrigin">QWidget::BackgroundOrigin</a></h3>
This enum defines the origin used to draw a widget's background
pixmap.
<p><ul>
<li> <code>WidgetOrigin</code> - the pixmap is drawn in the widget's coordinate system.
<li><code>ParentOrigin</code> - the pixmap is drawn in the parent's coordinate system.
</ul>
<h3 class="fn"><a name="FocusPolicy">QWidget::FocusPolicy</a></h3>
This enum type defines the various policies a widget can have with
respect to acquiring keyboard focus.
<p>The <em>policy</em> can be:
<ul>
<li> <code>QWidget::TabFocus</code> - the widget accepts focus by tabbing.
<li> <code>QWidget::ClickFocus</code> - the widget accepts focus by clicking.
<li> <code>QWidget::StrongFocus</code> - the widget accepts focus by both tabbing
and clicking.
<li> <code>QWidget::WheelFocus</code> - like StrongFocus plus the widget accepts
focus by using the mouse wheel.
<li> <code>QWidget::NoFocus</code> - the widget does not accept focus.
</ul>
<h3 class="fn"><a name="PropagationMode">QWidget::PropagationMode</a></h3>
<b>This member is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>This enum used to determine how fonts and palette changes are propagated to
children of a widget.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="49eb47"></a>QWidget::QWidget(QWidget*parent=0, constchar*name=0, WFlagsf=0)</h3>
<p>Constructs a widget which is a child of <em>parent,</em> with the name <em>name</em> and
widget flags set to <em>f.</em>
<p>If <em>parent</em> is 0, the new widget becomes a top-level window.  If <em>parent</em> is another widget, this widget becomes a child window inside
<em>parent.</em>  The new widget is deleted when <em>parent</em> is.
<p>The <em>name</em> is sent to the <a href="qobject.html">QObject</a> constructor.
<p>The widget flags argument <em>f</em> is normally 0, but it can be set to
customize the window frame of a top-level widget (i.e. <em>parent</em> must be
zero). To customize the frame, set the <code>WStyle_Customize</code> flag OR'ed with
any of the <a href="qt.html#WidgetFlags">Qt::WidgetFlags</a>.
<p>Note that the X11 version of Qt may not be able to deliver all
combinations of style flags on all systems.  This is because on X11,
Qt can only ask the window manager, and the window manager can
override the application's settings.  On Windows, Qt can set
whatever flags you want.
<p>Example:
<pre>    <a href="qlabel.html">QLabel</a> *spashScreen = new <a href="qlabel.html">QLabel</a>( 0, "mySplashScreen",
                                  WStyle_Customize | WStyle_NoBorder |
                                  WStyle_Tool );
</pre>
<h3 class="fn"><a name="fb52f4"></a>QWidget::~QWidget()</h3>
<p>Destructs the widget.
<p>All children of this widget are deleted first.
The application exits if this widget is (was) the main widget.
<h3 class="fn">bool<a name="130768"></a>QWidget::acceptDrops()const</h3>
<p>Returns TRUE if drop events are enabled for this widget.
<p>See also  <a href="#8169cb">setAcceptDrops</a>().
<h3 class="fn">void<a name="2ec710"></a>QWidget::adjustSize() <code>[virtual]</code></h3>
<p>Adjusts the size of the widget to fit the contents.
<p>Uses <a href="#4511d1">sizeHint</a>() if valid (i.e if the size hint's width and height are
equal to or greater than 0), otherwise sets the size to the children
rectangle (the union of all child widget geometries).
<p>See also  <a href="#4511d1">sizeHint</a>() and <a href="#d6ac48">childrenRect</a>().
<p>Examples:
 <a href="xform-xform-cpp.html#adjustSize">xform/xform.cpp</a>
<p>Reimplemented in <a href="qmessagebox.html#aacc15">QMessageBox</a>.
<h3 class="fn">bool<a name="898d4a"></a>QWidget::autoMask()const</h3>
<p>Returns whether or not the  widget has the auto mask feature enabled.
<p>See also  <a href="#efa8f9">setAutoMask</a>(), <a href="#b8a07f">updateMask</a>(), <a href="#3aa0a1">setMask</a>() and <a href="#0b7ae4">clearMask</a>().
<h3 class="fn">const<a href="qcolor.html">QColor</a>&amp;<a name="d5be64"></a>QWidget::backgroundColor()const</h3>
<p>Returns the background color of this widget, which is normally set
implicitly by <a href="#e84bbe">setBackgroundMode</a>(), but can also be set explicitly by
<a href="#c09181">setBackgroundColor</a>().
<p>If there is a background pixmap (set using <a href="#7e417f">setBackgroundPixmap</a>()),
then the return value of this function is indeterminate.
<p>See also  <a href="#c09181">setBackgroundColor</a>(), <a href="#c9040d">foregroundColor</a>(), <a href="#d92bf4">colorGroup</a>() and <a href="#370880">palette</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#backgroundColor">grapher/grapher.cpp</a>
 <a href="xform-xform-cpp.html#backgroundColor">xform/xform.cpp</a>
<h3 class="fn">void<a name="f146a8"></a>QWidget::backgroundColorChange(const<a href="qcolor.html">QColor</a>&amp;oldBackgroundColor) <code>[virtualprotected]</code></h3>
<p>This virtual function is called from <a href="#c09181">setBackgroundColor</a>().
<em>oldBackgroundColor</em> is the previous background color; you can get the new
background color from <a href="#d5be64">backgroundColor</a>().
<p>Reimplement this function if your widget needs to know when its
background color changes.  You will almost certainly need to call
this implementation of the function.
<p>See also  <a href="#c09181">setBackgroundColor</a>(), <a href="#d5be64">backgroundColor</a>(), <a href="#d7e4b9">setPalette</a>(), <a href="#7569b1">repaint</a>() and <a href="#a66a88">update</a>().
<h3 class="fn">QWidget::BackgroundMode<a name="fb9fc2"></a>QWidget::backgroundMode()const</h3>
<p>Returns the mode most recently set by <a href="#e84bbe">setBackgroundMode</a>().  The
default is PaletteBackground.
<p>See also  <a href="#BackgroundMode">BackgroundMode</a> and <a href="#e84bbe">setBackgroundMode</a>().
<h3 class="fn">QWidget::BackgroundOrigin<a name="456fbe"></a>QWidget::backgroundOrigin()const</h3>
<p>Returns the current background origin.
<p>See also  <a href="#67b25b">setBackgroundOrigin</a>().
<h3 class="fn">const<a href="qpixmap.html">QPixmap</a>*<a name="9b2957"></a>QWidget::backgroundPixmap()const</h3>
<p>Returns the background pixmap if one has been set.  If the widget
has <a href="#fb9fc2">backgroundMode</a>() NoBackground, the return value is a pixmap for
which QPixmao:isNull() is true.  If the widget has no pixmap is the
background, the return value is a null pointer.
<p>See also  <a href="#7e417f">setBackgroundPixmap</a>() and <a href="#e84bbe">setBackgroundMode</a>().
<h3 class="fn">void<a name="61a18f"></a>QWidget::backgroundPixmapChange(const<a href="qpixmap.html">QPixmap</a>&amp;oldBackgroundPixmap) <code>[virtualprotected]</code></h3>
<p>This virtual function is called from <a href="#7e417f">setBackgroundPixmap</a>().
<em>oldBackgroundPixmap</em> is the previous background pixmap; you can get the
new background pixmap from <a href="#9b2957">backgroundPixmap</a>().
<p>Reimplement this function if your widget needs to know when its
background pixmap changes.  You will almost certainly need to call
this implementation of the function.
<p>See also  <a href="#7e417f">setBackgroundPixmap</a>(), <a href="#9b2957">backgroundPixmap</a>(), <a href="#7569b1">repaint</a>() and <a href="#a66a88">update</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="4543f1"></a>QWidget::baseSize()const</h3>
<p>Returns the widget base size
<p>The base size is used to calculate a proper widget size in case the
widget defines <a href="#12fe89">sizeIncrement</a>().
<p>See also  <a href="#bcd0af">setBaseSize</a>() and <a href="#16748e">setSizeIncrement</a>().
<h3 class="fn"><a href="qstring.html">QString</a><a name="f852bc"></a>QWidget::caption()const</h3>
<p>Returns the widget caption.  If no caption has been set (common for
child widgets), this functions returns a null string.
<p>See also  <a href="#d6a291">setCaption</a>(), <a href="#126b68">icon</a>(), <a href="#975b5d">iconText</a>() and <a href="qstring.html#7a8210">QString::isNull</a>().
<p>Examples:
 <a href="i18n-main-cpp.html#caption">i18n/main.cpp</a>
<h3 class="fn"><a href="qrect.html">QRect</a><a name="d6ac48"></a>QWidget::childrenRect()const</h3>
<p>Returns the bounding rectangle of the widget's children.
<p>Explicitely hidden children are excluded.
<p>See also  <a href="#52c8ac">childrenRegion</a>().
<h3 class="fn"><a href="qregion.html">QRegion</a><a name="52c8ac"></a>QWidget::childrenRegion()const</h3>
<p>Returns the combined region of the widget's children <a href="#e515c8">geometry</a>().
<p>Explicitely hidden children are excluded.
<p>See also  <a href="#d6ac48">childrenRect</a>().
<h3 class="fn">void<a name="44c03a"></a>QWidget::clearFocus() <code>[slot]</code></h3>
<p>Takes keyboard input focus from the widget.
<p>If the widget has active focus, a <a href="#de664a">focus out
event</a> is sent to this widget to tell it that it is about to
lose the focus.
<p>This widget must enable focus setting in order to get the keyboard input
focus, i.e. it must call <a href="#f92b0f">setFocusPolicy</a>().
<p>See also  <a href="#26f85d">hasFocus</a>(), <a href="#25775a">setFocus</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#f92b0f">setFocusPolicy</a>() and <a href="qapplication.html#df8f4c">QApplication::focusWidget</a>().
<h3 class="fn">void<a name="0b7ae4"></a>QWidget::clearMask()</h3>
<p>Removes any mask set by <a href="#3aa0a1">setMask</a>().
<p>See also  <a href="#3aa0a1">setMask</a>().
<h3 class="fn">void<a name="ef7827"></a>QWidget::clearWFlags(WFlagsf) <code>[protected]</code></h3>
<p>Clears the widget flags <em>f.</em>
<p>Widget flags are a combination of <a href="qt.html#WidgetFlags">Qt::WidgetFlags</a>.
<p>See also  <a href="#be9b50">testWFlags</a>(), <a href="#825ef3">getWFlags</a>() and <a href="#9dd055">setWFlags</a>().
<h3 class="fn">bool<a name="3d9c87"></a>QWidget::close() <code>[slot]</code></h3>
<p>Closes this widget. Returns TRUE if the widget was closed, otherwise
FALSE.
<p>First it sends the widget a <a href="qcloseevent.html">QCloseEvent</a>. The widget is <a href="#410481">hidden</a> if it <a href="qcloseevent.html#7cf66f">accepts</a> the
close event. The default implementation of <a href="#c04094">QWidget::closeEvent</a>()
accepts the close event.
<p>The <a href="qapplication.html#4b242c">QApplication::lastWindowClosed</a>() signal is emitted when the last
visible top level widget is closed.
<p>See also  close(bool).
<p>Examples:
 <a href="popup-popup-cpp.html#close">popup/popup.cpp</a>
<h3 class="fn">bool<a name="866e52"></a>QWidget::close(boolalsoDelete) <code>[virtual]</code></h3>
<p>Closes this widget. Returns TRUE if the widget was closed, otherwise
FALSE.
<p>If <em>alsoDelete</em> is TRUE or the widget has the <code>WDestructiveClose</code>
widget flag, the widget is also deleted.  The widget can prevent
itself from being closed by rejecting the <a href="qcloseevent.html">QCloseEvent</a> it gets.
<p>The <a href="qapplication.html#4b242c">QApplication::lastWindowClosed</a>() signal is emitted when the last
visible top level widget is closed.
<p>Note that closing the <a href="qapplication.html#85380c">QApplication::mainWidget()</a> terminates the
application.
<p>See also  <a href="#c04094">closeEvent</a>(), <a href="qcloseevent.html">QCloseEvent</a>, <a href="#410481">hide</a>(), <a href="qapplication.html#1af5b8">QApplication::quit</a>(), <a href="qapplication.html#7ad759">QApplication::setMainWidget</a>() and <a href="qapplication.html#4b242c">QApplication::lastWindowClosed</a>().
<h3 class="fn">void<a name="c04094"></a>QWidget::closeEvent(<a href="qcloseevent.html">QCloseEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget close events.
<p>The default implementation calls e->accept(), which hides this widget.
See the <a href="qcloseevent.html">QCloseEvent</a> documentation for more details.
<p>See also  <a href="#6ff658">event</a>(), <a href="#410481">hide</a>(), <a href="#3d9c87">close</a>() and <a href="qcloseevent.html">QCloseEvent</a>.
<p>Reimplemented in <a href="qdialog.html#21ef0e">QDialog</a>, <a href="qpopupmenu.html#711e61">QPopupMenu</a> and <a href="qprogressdialog.html#0d44b3">QProgressDialog</a>.
<h3 class="fn">const<a href="qcolorgroup.html">QColorGroup</a>&amp;<a name="d92bf4"></a>QWidget::colorGroup()const</h3>
<p>Returns the current color group of the widget palette.
<p>The color group is determined by the state of the widget.
<p>A disabled widget returns the <a href="qpalette.html#50d5fa">QPalette::disabled</a>() color group, a
widget in the window with keyboard focus returns the
<a href="qpalette.html#caf9a6">QPalette::active</a>() color group, and all inactive  widgets return the
<a href="qpalette.html#da2718">QPalette::inactive</a>() color group.
<p>See also  <a href="#370880">palette</a>() and <a href="#d7e4b9">setPalette</a>().
<h3 class="fn">void<a name="533b52"></a>QWidget::constPolish()const <code>[slot]</code></h3>
<p>Ensures that the widget is properly initialized by calling <a href="#c14a09">polish</a>().
<p>Call constPolish() from functions like <a href="#4511d1">sizeHint</a>() that depends on
the widget being initialized, and that may be called before <a href="#200ee5">show</a>().<p><b>Warning:</b> Do not call constPolish() on a widget from inside that
widget's constructor.
<p>See also  <a href="#c14a09">polish</a>().
<h3 class="fn">void<a name="5791cc"></a>QWidget::create(WIdwindow=0, boolinitializeWindow=TRUE, booldestroyOldWindow=TRUE) <code>[virtualprotected]</code></h3>
<p>Creates a new widget window if <em>window</em> is null, otherwise sets the
widget's window to <em>window.</em>
<p>Initializes the window (sets the geometry etc.) if <em>initializeWindow</em>
is TRUE.  If <em>initializeWindow</em> is FALSE, no initialization is
performed.  This parameter makes only sense if <em>window</em> is a valid
window.
<p>Destroys the old window if <em>destroyOldWindow</em> is TRUE.  If <em>destroyOldWindow</em> is FALSE, you are responsible for destroying
the window yourself (using platform native code).
<p>The QWidget constructor calls create(0,TRUE,TRUE) to create a window for
this widget.
<h3 class="fn">const<a href="qcursor.html">QCursor</a>&amp;<a name="5fad9d"></a>QWidget::cursor()const</h3>
<p>Returns the widget cursor. If no cursor has been set the parent
widget's cursor is returned.
<p>See also  <a href="#9b6e22">setCursor</a>() and <a href="#215c33">unsetCursor</a>();.
<h3 class="fn">void<a name="6ecc2e"></a>QWidget::customEvent(<a href="qcustomevent.html">QCustomEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
custom events. Custom events are user-defined events with a type
value at least as large as the "User" item of the <a href="qevent.html#Type">QEvent::Type</a> enum,
and is typically a <a href="qcustomevent.html">QCustomEvent</a> or QCustomEvent subclass.
<p>See also  <a href="#6ff658">event</a>() and <a href="qcustomevent.html">QCustomEvent</a>.
<h3 class="fn">bool<a name="eeb880"></a>QWidget::customWhatsThis()const <code>[virtual]</code></h3>
<p>Returns whether the widget wants to handle What's This help
manually. The default implementation returns FALSE, which means the
widget will not receive any events in Whats This mode.
<p>The widget may leave Whats This mode by calling
<a href="qwhatsthis.html#d31af1">QWhatsThis::leaveWhatsThisMode</a>(), with or without actually
displaying any help text.
<p>You may also reimplement customWhatsThis() if your widget is a
so-called "passive interactor" that is supposed to work under all
circumstances. Simply don't call QWhatsThis::leaveWhatsThisMode() in
that case.
<p>See also  <a href="qwhatsthis.html#592093">QWhatsThis::inWhatsThisMode</a>() and <a href="qwhatsthis.html#d31af1">QWhatsThis::leaveWhatsThisMode</a>().
<p>Reimplemented in <a href="qpopupmenu.html#d48b16">QPopupMenu</a> and <a href="qmenubar.html#a44d5a">QMenuBar</a>.
<h3 class="fn">void<a name="8a2b53"></a>QWidget::destroy(booldestroyWindow=TRUE, booldestroySubWindows=TRUE) <code>[virtualprotected]</code></h3>
<p>Frees up window system resources.
Destroys the widget window if <em>destroyWindow</em> is TRUE.
<p>destroy() calls itself recursively for all the child widgets,
passing <em>destroySubWindows</em> for the <em>destroyWindow</em> parameter.
To have more control over destruction of subwidgets,
destroy subwidgets selectively first.
<p>This function is usually called from the QWidget destructor.
<h3 class="fn">void<a name="c8639f"></a>QWidget::dragEnterEvent(<a href="qdragenterevent.html">QDragEnterEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler is called when a drag is in progress and the
mouse enters this widget.
<p>See the <a href="dnd.html">Drag-and-drop documentation</a> for
an overview of how to provide drag-and-drop in your application.
<p>See also  <a href="qtextdrag.html">QTextDrag</a>, <a href="qimagedrag.html">QImageDrag</a> and <a href="qdragenterevent.html">QDragEnterEvent</a>.
<p>Reimplemented in <a href="qmultilineedit.html#50a11a">QMultiLineEdit</a> and <a href="qlineedit.html#c806fb">QLineEdit</a>.
<h3 class="fn">void<a name="fdd48c"></a>QWidget::dragLeaveEvent(<a href="qdragleaveevent.html">QDragLeaveEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler is called when a drag is in progress and the
mouse leaves this widget.
<p>See the <a href="dnd.html">Drag-and-drop documentation</a> for
an overview of how to provide drag-and-drop in your application.
<p>See also  <a href="qtextdrag.html">QTextDrag</a>, <a href="qimagedrag.html">QImageDrag</a> and <a href="qdragleaveevent.html">QDragLeaveEvent</a>.
<p>Reimplemented in <a href="qmultilineedit.html#e04308">QMultiLineEdit</a>.
<h3 class="fn">void<a name="3b47df"></a>QWidget::dragMoveEvent(<a href="qdragmoveevent.html">QDragMoveEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler is called when a drag is in progress and the
mouse enters this widget, and whenever it moves within
the widget.
<p>See the <a href="dnd.html">Drag-and-drop documentation</a> for
an overview of how to provide drag-and-drop in your application.
<p>See also  <a href="qtextdrag.html">QTextDrag</a>, <a href="qimagedrag.html">QImageDrag</a> and <a href="qdragmoveevent.html">QDragMoveEvent</a>.
<p>Reimplemented in <a href="qmultilineedit.html#6c9be6">QMultiLineEdit</a>.
<h3 class="fn">void<a name="df83d0"></a>QWidget::drawText(intx, inty, const<a href="qstring.html">QString</a>&amp;str)</h3>
<p>Writes <em>str</em> at position <em>x,y.</em>
<p>The <em>y</em> position is the base line position of the text.  The text is
drawn using the default font and the default foreground color.
<p>This function is provided for convenience.  You will generally get
more flexible results and often higher speed by using a a <a href="qpainter.html">painter</a> instead.
<p>See also  <a href="#090d60">setFont</a>(), <a href="#c9040d">foregroundColor</a>() and <a href="qpainter.html#0f088f">QPainter::drawText</a>().
<h3 class="fn">void<a name="67929e"></a>QWidget::drawText(const<a href="qpoint.html">QPoint</a>&amp;pos, const<a href="qstring.html">QString</a>&amp;str)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="e9b4c3"></a>QWidget::dropEvent(<a href="qdropevent.html">QDropEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler is called when the drag is dropped on this
widget.
<p>See the <a href="dnd.html">Drag-and-drop documentation</a> for
an overview of how to provide drag-and-drop in your application.
<p>See also  <a href="qtextdrag.html">QTextDrag</a>, <a href="qimagedrag.html">QImageDrag</a> and <a href="qdropevent.html">QDropEvent</a>.
<p>Reimplemented in <a href="qmultilineedit.html#1b58bf">QMultiLineEdit</a> and <a href="qlineedit.html#9a9daa">QLineEdit</a>.
<h3 class="fn">void<a name="048926"></a>QWidget::enabledChange(boololdEnabled) <code>[virtualprotected]</code></h3>
<p>This virtual function is called from <a href="#4b103c">setEnabled</a>(). <em>oldEnabled</em> is the
previous setting; you can get the new setting from <a href="#f9af61">isEnabled</a>().
<p>Reimplement this function if your widget needs to know when it becomes
enabled or disabled. You will almost certainly need to update the widget
using <a href="#a66a88">update</a>().
<p>The default implementation repaints the visible part of the widget.
<p>See also  <a href="#4b103c">setEnabled</a>(), <a href="#f9af61">isEnabled</a>(), <a href="#7569b1">repaint</a>(), <a href="#a66a88">update</a>() and <a href="#a93076">visibleRect</a>().
<p>Reimplemented in <a href="qlistview.html#f176c0">QListView</a> and <a href="qbutton.html#84617b">QButton</a>.
<h3 class="fn">void<a name="5d1d18"></a>QWidget::enterEvent(<a href="qevent.html">QEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget enter events.
<p>An event is sent to the widget when the mouse cursor enters the widget.
<p>See also  <a href="#7eaa8a">leaveEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>() and <a href="#6ff658">event</a>().
<p>Reimplemented in <a href="qtoolbutton.html#58e96a">QToolButton</a>.
<h3 class="fn">void<a name="10cf79"></a>QWidget::erase(const<a href="qregion.html">QRegion</a>&amp;reg)</h3>
<p>Erases the area defined by <em>reg,</em> without generating a
<a href="#e3d821">paint event</a>.
<p>Child widgets are not affected.
<p>Examples:
 <a href="drawlines-connect-cpp.html#erase">drawlines/connect.cpp</a>
<h3 class="fn">void<a name="d64cc6"></a>QWidget::erase(intx, inty, intw, inth)</h3>
<p>Erases the specified area <em>(x,y,w,h)</em> in the widget without generating
a <a href="#e3d821">paint event</a>.
<p>If <em>w</em> is negative, it is replaced with <code><a href="#2edab1">width</a>() - x</code>.
If <em>h</em> is negative, it is replaced width <code><a href="#e3c588">height</a>() - y</code>.
<p>Child widgets are not affected.
<p>See also  <a href="#7569b1">repaint</a>().
<h3 class="fn">void<a name="f4f1b7"></a>QWidget::erase()</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>This version erases the entire widget.
<h3 class="fn">void<a name="56d8c5"></a>QWidget::erase(const<a href="qrect.html">QRect</a>&amp;r)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">bool<a name="6ff658"></a>QWidget::event(<a href="qevent.html">QEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This is the main event handler. You may reimplement this function
in a subclass, but we recommend using one of the specialized event
handlers instead.
<p>The main event handler first passes an event through all <a href="qobject.html#185219">event filters</a> that have been
installed.  If none of the filters intercept the event, it calls one
of the specialized event handlers.
<p>Key press/release events are treated differently from other events.
event() checks for Tab and shift-Tab and tries to move the focus
appropriately.  If there is no widget to move the focus to (or the
key press is not Tab or shift-Tab), event() calls <a href="#0a4482">keyPressEvent</a>().
<p>This function returns TRUE if it is able to pass the event over to
someone, or FALSE if nobody wanted the event.
<p>See also  <a href="#c04094">closeEvent</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#5d1d18">enterEvent</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>(), <a href="#7eaa8a">leaveEvent</a>(), <a href="#e36586">mouseDoubleClickEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>(), <a href="#2ecc04">mousePressEvent</a>(), <a href="#9aa77f">mouseReleaseEvent</a>(), <a href="#3f1b15">moveEvent</a>(), <a href="#e3d821">paintEvent</a>(), <a href="#7d375f">resizeEvent</a>(), <a href="qobject.html#c67adb">QObject::event</a>() and <a href="qobject.html#7fd5bf">QObject::timerEvent</a>().
<p>Reimplemented from <a href="qobject.html#c67adb">QObject.</a>
<h3 class="fn">QWidget*<a name="000061"></a>QWidget::find(WIdid) <code>[static]</code></h3>
<p>Returns a pointer to the widget with window identifer/handle <em>id.</em>
<p>The window identifier type depends by the underlying window system,
see <a href="qwindowdefs-h.html">qwindowdefs.h</a> for the actual definition.
If there is no widget with this identifier, a null pointer is returned.
<p>See also  <a href="#53ffa9">wmapper</a>() and <a href="#653917">winId</a>().
<h3 class="fn"><a href="qfocusdata.html">QFocusData</a>*<a name="77742d"></a>QWidget::focusData() <code>[protected]</code></h3>
<p>Returns a pointer to the focus data for this widget's top-level
widget.
<p>Focus data always belongs to the top-level widget.  The focus data
list contains all the widgets in this top-level widget that can
accept focus, in tab order.  An iterator points to the current focus
widget (<a href="#88b8cf">focusWidget</a>() returns a pointer to this widget).
<p>This information is useful for implementing advanced versions
of <a href="#8d74a1">focusNextPrevChild</a>().
<h3 class="fn">void<a name="21a4b8"></a>QWidget::focusInEvent(<a href="qfocusevent.html">QFocusEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
keyboard focus events (focus received) for the widget.
<p>A widget normally must <a href="#f92b0f">setFocusPolicy</a>() to something other than
NoFocus in order to receive focus events.  (Note that the
application programmer can call <a href="#25775a">setFocus</a>() on any widget, even those
that do not normally accept focus.)
<p>The default implementation updates the widget if it accepts
focus (see <a href="#3d478d">focusPolicy</a>()).  It also calls <a href="#04c503">setMicroFocusHint</a>(), hinting any
system-specific input tools about the focus of the user's attention.
<p>See also  <a href="#de664a">focusOutEvent</a>(), <a href="#f92b0f">setFocusPolicy</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>(), <a href="#6ff658">event</a>() and <a href="qfocusevent.html">QFocusEvent</a>.
<p>Reimplemented in <a href="qlineedit.html#87c1db">QLineEdit</a>, <a href="qdial.html#d689dd">QDial</a>, <a href="qtable.html#1c075b">QTable</a>, <a href="qmenubar.html#94239f">QMenuBar</a>, <a href="qradiobutton.html#d1d657">QRadioButton</a>, <a href="qlistbox.html#71b09a">QListBox</a>, <a href="qtabbar.html#91c126">QTabBar</a>, <a href="qlistview.html#aeb5d4">QListView</a>, <a href="qpushbutton.html#19eb30">QPushButton</a>, <a href="qbutton.html#3d41e1">QButton</a>, <a href="qgroupbox.html#5b5439">QGroupBox</a>, <a href="qcombobox.html#f318de">QComboBox</a>, <a href="qpopupmenu.html#912b79">QPopupMenu</a>, <a href="qtextview.html#7dd99d">QTextView</a>, <a href="qslider.html#5be196">QSlider</a> and <a href="qmultilineedit.html#d0afd5">QMultiLineEdit</a>.
<h3 class="fn">bool<a name="8d74a1"></a>QWidget::focusNextPrevChild(boolnext) <code>[virtualprotected]</code></h3>
<p>Finds a new widget to give the keyboard focus to, as appropriate for
Tab/shift-Tab, and returns TRUE if is can find a new widget and
FALSE if it can't,
<p>If <em>next</em> is true, this function searches "forwards", if <em>next</em> is
FALSE, "backwards".
<p>Sometimes, you will want to reimplement this function.  For example,
a web browser might reimplement it to move its "current active link"
forwards or backwards, and call QWidget::focusNextPrevChild() only
when it reaches the last/first.
<p>Child widgets call focusNextPrevChild() on their parent widgets, and
only the top-level widget will thus make the choice of where to redirect
focus.  By overriding this method for an object, you thus gain control
of focus traversal for all child widgets.
<p>See also  <a href="#77742d">focusData</a>().
<p>Reimplemented in <a href="qmultilineedit.html#e09aac">QMultiLineEdit</a>, <a href="qscrollview.html#f61ea5">QScrollView</a>, <a href="qpopupmenu.html#55b0a0">QPopupMenu</a> and <a href="qbutton.html#1568d9">QButton</a>.
<h3 class="fn">void<a name="de664a"></a>QWidget::focusOutEvent(<a href="qfocusevent.html">QFocusEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
keyboard focus events (focus lost) for the widget.
<p>A widget normally must <a href="#f92b0f">setFocusPolicy</a>() to something other than
NoFocus in order to receive focus events.  (Note that the
application programmer can call <a href="#25775a">setFocus</a>() on any widget, even those
that do not normally accept focus.)
<p>The default implementation calls <a href="#7569b1">repaint</a>() since the widget's
<a href="#d92bf4">colorGroup</a>() changes from active to normal, so the widget probably
needs repainting.  It also calls <a href="#04c503">setMicroFocusHint</a>(), hinting any
system-specific input tools about the focus of the user's attention.
<p>See also  <a href="#21a4b8">focusInEvent</a>(), <a href="#f92b0f">setFocusPolicy</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>(), <a href="#6ff658">event</a>() and <a href="qfocusevent.html">QFocusEvent</a>.
<p>Reimplemented in <a href="qtable.html#3bc5e9">QTable</a>, <a href="qlistbox.html#1d784e">QListBox</a>, <a href="qtextview.html#54892c">QTextView</a>, <a href="qlineedit.html#361367">QLineEdit</a>, <a href="qlistview.html#d35c06">QListView</a>, <a href="qbutton.html#2b50f0">QButton</a>, <a href="qslider.html#062221">QSlider</a>, <a href="qpushbutton.html#0953da">QPushButton</a>, <a href="qdial.html#5a764c">QDial</a>, <a href="qmultilineedit.html#e964c8">QMultiLineEdit</a>, <a href="qtabbar.html#51b4dc">QTabBar</a>, <a href="qpopupmenu.html#914706">QPopupMenu</a> and <a href="qmenubar.html#8e55b7">QMenuBar</a>.
<h3 class="fn">QWidget::FocusPolicy<a name="3d478d"></a>QWidget::focusPolicy()const</h3>
<p>Returns <code>QWidget::TabFocus</code> if the widget accepts focus by tabbing, <code>QWidget::ClickFocus</code> if the widget accepts focus by clicking, <code>QWidget::StrongFocus</code> if it accepts both and <code>QWidget::NoFocus</code> if it
does not accept focus at all.
<p>See also  <a href="#2f25f0">isFocusEnabled</a>(), <a href="#f92b0f">setFocusPolicy</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>() and <a href="#f9af61">isEnabled</a>().
<h3 class="fn">QWidget*<a name="c1135e"></a>QWidget::focusProxy()const</h3>
<p>Returns a pointer to the focus proxy, or 0 if there is no focus
proxy.
<p>See also  <a href="#cddadb">setFocusProxy</a>().
<h3 class="fn">QWidget*<a name="88b8cf"></a>QWidget::focusWidget()const</h3>
<p>Returns the focus widget in this widget's window.  This
is not the same as <a href="qapplication.html#df8f4c">QApplication::focusWidget</a>(), which returns the
focus widget in the currently active window.
<h3 class="fn"><a href="qfont.html">QFont</a><a name="167922"></a>QWidget::font()const</h3>
<p>Returns the font currently set for the widget.
<p><a href="#205244">fontInfo</a>() tells you what font is actually being used.
<p>As long as no special font has been set, this is either a special
font for the widget class, the parent's font or - if this widget is
a toplevel widget - the default application font.
<p>See also  <a href="#090d60">setFont</a>(), <a href="#205244">fontInfo</a>(), <a href="#386569">fontMetrics</a>() and <a href="qapplication.html#f31495">QApplication::font</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#font">grapher/grapher.cpp</a>
 <a href="xform-xform-cpp.html#font">xform/xform.cpp</a>
 <a href="menu-menu-cpp.html#font">menu/menu.cpp</a>
<h3 class="fn">void<a name="ac5c83"></a>QWidget::fontChange(const<a href="qfont.html">QFont</a>&amp;oldFont) <code>[virtualprotected]</code></h3>
<p>This virtual function is called from <a href="#090d60">setFont</a>().  <em>oldFont</em> is the
previous font; you can get the new font from <a href="#167922">font</a>().
<p>Reimplement this function if your widget needs to know when its font
changes.  You will almost certainly need to update the widget using
<a href="#a66a88">update</a>().
<p>The default implementation updates the widget including its
geometry.
<p>See also  <a href="#090d60">setFont</a>(), <a href="#167922">font</a>(), <a href="#a66a88">update</a>() and <a href="#5f7c35">updateGeometry</a>().
<p>Reimplemented in <a href="qmenubar.html#15ea9b">QMenuBar</a>, <a href="qgroupbox.html#25b1c0">QGroupBox</a> and <a href="qlabel.html#be4345">QLabel</a>.
<h3 class="fn"><a href="qfontinfo.html">QFontInfo</a><a name="205244"></a>QWidget::fontInfo()const</h3>
<p>Returns the font info for the widget's current font.
Equivalent to QFontInto(widget-><a href="#167922">font</a>()).
<p>See also  <a href="#167922">font</a>(), <a href="#386569">fontMetrics</a>() and <a href="#090d60">setFont</a>().
<h3 class="fn"><a href="qfontmetrics.html">QFontMetrics</a><a name="386569"></a>QWidget::fontMetrics()const</h3>
<p>Returns the font metrics for the widget's current font.
Equivalent to <a href="qfontmetrics.html">QFontMetrics</a>(widget-><a href="#167922">font</a>()).
<p>See also  <a href="#167922">font</a>(), <a href="#205244">fontInfo</a>() and <a href="#090d60">setFont</a>().
<p>Examples:
 <a href="xform-xform-cpp.html#fontMetrics">xform/xform.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#fontMetrics">drawdemo/drawdemo.cpp</a>
 <a href="qmag-qmag-cpp.html#fontMetrics">qmag/qmag.cpp</a>
<h3 class="fn">QWidget::PropagationMode<a name="c660eb"></a>QWidget::fontPropagation()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>The return value is meaningless
<p>See also  <a href="#b2c696">setFontPropagation</a>().
<h3 class="fn">const<a href="qcolor.html">QColor</a>&amp;<a name="c9040d"></a>QWidget::foregroundColor()const</h3>
<p>Returns the foreground color of this widget.
<p>The foreground color is also accessible as <a href="#d92bf4">colorGroup</a>().foreground().
<p>See also  <a href="#d5be64">backgroundColor</a>() and <a href="#d92bf4">colorGroup</a>().
<h3 class="fn"><a href="qrect.html">QRect</a><a name="ca6d0d"></a>QWidget::frameGeometry()const</h3>
<p>Returns the geometry of the widget, relative to its parent and
including the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#e515c8">geometry</a>(), <a href="#6f017a">x</a>(), <a href="#800909">y</a>() and <a href="#2691c9">pos</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="12d64e"></a>QWidget::frameSize()const</h3>
<p>Returns the size of the window system frame (for top level widgets).
<h3 class="fn">const<a href="qrect.html">QRect</a>&amp;<a name="e515c8"></a>QWidget::geometry()const</h3>
<p>Returns the geometry of the widget, relative to its parent widget
and excluding the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#ca6d0d">frameGeometry</a>(), <a href="#50b75e">size</a>() and <a href="#75ae71">rect</a>().
<p>Examples:
 <a href="qmag-qmag-cpp.html#geometry">qmag/qmag.cpp</a>
<h3 class="fn">WFlags<a name="825ef3"></a>QWidget::getWFlags()const <code>[protected]</code></h3>
<p>Returns the widget flags for this this widget.
<p>Widget flags are a combination of <a href="qt.html#WidgetFlags">Qt::WidgetFlags</a>.
<p>See also  <a href="#be9b50">testWFlags</a>(), <a href="#9dd055">setWFlags</a>() and <a href="#ef7827">clearWFlags</a>().
<h3 class="fn">void<a name="6830ee"></a>QWidget::grabKeyboard()</h3>
<p>Grabs all keyboard input.
<p>This widget will receive all keyboard events, independent of the active
window.<p><b>Warning:</b> Grabbing the keyboard might lock the terminal.
<p>See also  <a href="#0fadfc">releaseKeyboard</a>(), <a href="#5bdd5f">grabMouse</a>() and <a href="#369707">releaseMouse</a>().
<h3 class="fn">void<a name="647db0"></a>QWidget::grabMouse()</h3>
<p>Grabs the mouse input.
<p>This widget will be the only one to receive mouse events until
<a href="#369707">releaseMouse</a>() is called.<p><b>Warning:</b> Grabbing the mouse might lock the terminal.
<p>It is almost never necessary to grab the mouse when using Qt since
Qt grabs and releases it sensibly.  In particular, Qt grabs the
mouse when a button is pressed and keeps it until the last button is
released.
<p>Beware that only widgets actually shown on the screen may grab the
mouse input.
<p>See also  <a href="#369707">releaseMouse</a>(), <a href="#6830ee">grabKeyboard</a>() and <a href="#0fadfc">releaseKeyboard</a>().
<h3 class="fn">void<a name="5bdd5f"></a>QWidget::grabMouse(const<a href="qcursor.html">QCursor</a>&amp;cursor)</h3>
<p>Grabs the mouse input and changes the cursor shape.
<p>The cursor will assume shape <em>cursor</em> (for as long as the mouse focus is
grabbed) and this widget will be the only one to receive mouse events
until <a href="#369707">releaseMouse</a>() is called().<p><b>Warning:</b> Grabbing the mouse might lock the terminal.
<p>See also  <a href="#369707">releaseMouse</a>(), <a href="#6830ee">grabKeyboard</a>(), <a href="#0fadfc">releaseKeyboard</a>() and <a href="#9b6e22">setCursor</a>().
<p>Examples:
 <a href="qmag-qmag-cpp.html#grabMouse">qmag/qmag.cpp</a>
<h3 class="fn">bool<a name="26f85d"></a>QWidget::hasFocus()const</h3>
<p>Returns TRUE if this widget (or its focus proxy) has the keyboard
input focus, otherwise FALSE.
<p>Equivalent to <code>qApp-><a href="#88b8cf">focusWidget</a>() == this</code>.
<p>See also  <a href="#25775a">setFocus</a>(), <a href="#44c03a">clearFocus</a>(), <a href="#f92b0f">setFocusPolicy</a>() and <a href="qapplication.html#df8f4c">QApplication::focusWidget</a>().
<h3 class="fn">bool<a name="2831c6"></a>QWidget::hasMouseTracking()const</h3>
<p>Returns TRUE if mouse tracking is enabled for this widget, or FALSE
if mouse tracking is disabled.
<p>See also  <a href="#36406c">setMouseTracking</a>().
<h3 class="fn">int<a name="e3c588"></a>QWidget::height()const</h3>
<p>Returns the height of the widget, excluding the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#e515c8">geometry</a>(), <a href="#2edab1">width</a>() and <a href="#50b75e">size</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#height">grapher/grapher.cpp</a>
 <a href="xform-xform-cpp.html#height">xform/xform.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#height">drawdemo/drawdemo.cpp</a>
 <a href="qmag-qmag-cpp.html#height">qmag/qmag.cpp</a>
<h3 class="fn">int<a name="1a2d58"></a>QWidget::heightForWidth(intw)const <code>[virtual]</code></h3>
<p>Returns the preferred height for this widget, given the width <em>w.</em>
The default implementation returns 0, indicating that the preferred
height does not depend on the width.<p><b>Warning:</b> Does not look at the widget's layout.
<p>Reimplemented in <a href="qmenubar.html#ecc869">QMenuBar</a>, <a href="qtextview.html#7b0897">QTextView</a> and <a href="qlabel.html#b651ea">QLabel</a>.
<h3 class="fn">void<a name="410481"></a>QWidget::hide() <code>[virtualslot]</code></h3>
<p>Hides the widget.
<p>You almost never have to reimplement this function. If you need to
do something after a widget is hidden, use <a href="#ab7e05">hideEvent</a>() instead.
<p>See also  isHhideEvent(), <a href="#4fdbf8">isHidden</a>(), <a href="#200ee5">show</a>(), <a href="#c10123">showMinimized</a>(), <a href="#4d2aa7">isVisible</a>() and <a href="#3d9c87">close</a>().
<p>Examples:
 <a href="xform-xform-cpp.html#hide">xform/xform.cpp</a>
 <a href="popup-popup-cpp.html#hide">popup/popup.cpp</a>
 <a href="progress-progress-cpp.html#QWidget::hide">progress/progress.cpp</a>
 <a href="scrollview-scrollview-cpp.html#hide">scrollview/scrollview.cpp</a>
<p>Reimplemented in <a href="qtoolbar.html#9f9323">QToolBar</a>, <a href="qdialog.html#74d5c5">QDialog</a>, <a href="qpopupmenu.html#2d90fa">QPopupMenu</a> and <a href="qmenubar.html#64310d">QMenuBar</a>.
<h3 class="fn">void<a name="ab7e05"></a>QWidget::hideEvent(<a href="qhideevent.html">QHideEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget hide events.
<p>Hide events are sent to widgets right after they have been hidden.
<p>See also  <a href="#6ff658">event</a>() and <a href="qhideevent.html">QHideEvent</a>.
<h3 class="fn">const<a href="qpixmap.html">QPixmap</a>*<a name="126b68"></a>QWidget::icon()const</h3>
<p>Returns the widget icon pixmap, or null if no icon has been set.
<p>See also  <a href="#504fc4">setIcon</a>(), <a href="#975b5d">iconText</a>() and <a href="#f852bc">caption</a>().
<h3 class="fn"><a href="qstring.html">QString</a><a name="975b5d"></a>QWidget::iconText()const</h3>
<p>Returns the widget icon text.  If no icon text has been set (common for
child widgets), this functions returns a null string.
<p>See also  <a href="#2f0f0d">setIconText</a>(), <a href="#126b68">icon</a>(), <a href="#f852bc">caption</a>() and <a href="qstring.html#7a8210">QString::isNull</a>().
<h3 class="fn">bool<a name="331f68"></a>QWidget::isActiveWindow()const</h3>
<p>Returns TRUE if this widget is in the active window, i.e. the
window that has keyboard focus.
<p>When popup windows are visible, this function returns TRUE for both
the active window and the popup.
<p>See also  <a href="#238801">setActiveWindow</a>() and <a href="qapplication.html#aee839">QApplication::activeWindow</a>().
<h3 class="fn">bool<a name="38c72f"></a>QWidget::isDesktop()const</h3>
<p>Returns TRUE if the widget is a desktop widget, otherwise FALSE.
<p>A desktop widget is also a top-level widget.
<p>See also  <a href="#17338a">isTopLevel</a>() and <a href="qapplication.html#d8ed8c">QApplication::desktop</a>().
<h3 class="fn">bool<a name="f9af61"></a>QWidget::isEnabled()const</h3>
<p>Returns TRUE if the widget is enabled, or FALSE if it is disabled.
<p>See also  <a href="#4b103c">setEnabled</a>().
<h3 class="fn">bool<a name="1123d2"></a>QWidget::isEnabledTo(QWidget*ancestor)const</h3>
<p>Returns TRUE if this widget would become enabled if <em>ancestor</em> is
enabled.
<p>This is the case if neither the widget itself nor every parent up to
but excluding <em>ancestor</em> has been explicitly disabled.
<p>isEnabledTo(0) is equivalent to <a href="#f9af61">isEnabled</a>().
<p>See also  <a href="#4b103c">setEnabled</a>() and <a href="#f9af61">isEnabled</a>().
<h3 class="fn">bool<a name="e87953"></a>QWidget::isEnabledToTLW()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>This function is deprecated. It is equivalent to <a href="#f9af61">isEnabled</a>()
<p>See also  <a href="#4b103c">setEnabled</a>() and <a href="#f9af61">isEnabled</a>().
<h3 class="fn">bool<a name="2f25f0"></a>QWidget::isFocusEnabled()const</h3>
<p>Returns TRUE if the widget accepts keyboard focus, or FALSE if it does
not.
<p>Keyboard focus is initially disabled (i.e. <a href="#3d478d">focusPolicy</a>() ==
<code>QWidget::NoFocus).</code>
<p>You must enable keyboard focus for a widget if it processes keyboard
events.  This is normally done from the widget's constructor.  For
instance, the <a href="qlineedit.html">QLineEdit</a> constructor calls
<a href="#f92b0f">setFocusPolicy</a>(<code>QWidget::StrongFocus).</code>
<p>See also  <a href="#f92b0f">setFocusPolicy</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>() and <a href="#f9af61">isEnabled</a>().
<h3 class="fn">bool<a name="4fdbf8"></a>QWidget::isHidden()const</h3>
<p>Returns TRUE if the widget is explicitly hidden, or FALSE if it
is visible or would become visible if all its ancestors became visible.
<p>See also  <a href="#410481">hide</a>(), <a href="#200ee5">show</a>(), <a href="#4d2aa7">isVisible</a>() and <a href="#8e72d3">isVisibleTo</a>().
<h3 class="fn">bool<a name="3e7791"></a>QWidget::isMaximized()const</h3>
<p>Returns TRUE if this widget is a top-level widget that is maximized,
or else FALSE.
<p>Note that due to limitations in some window-systems,
this does not always report expected results (eg. if the user on X11
maximizes the window via the window manager, Qt has no way of telling
this from any other resize). This will improve as window manager
protocols advance.
<p>See also  <a href="#b6e000">showMaximized</a>().
<h3 class="fn">bool<a name="99b34b"></a>QWidget::isMinimized()const</h3>
<p>Returns TRUE if this widget is a top-level widget that is minimized
(iconified), or else FALSE.
<p>See also  <a href="#c10123">showMinimized</a>(), <a href="#4d2aa7">isVisible</a>(), <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#8a8f06">showNormal</a>().
<h3 class="fn">bool<a name="c271f0"></a>QWidget::isModal()const</h3>
<p>Returns TRUE if the widget is a modal widget, otherwise FALSE.
<p>A modal widget is also a top-level widget.
<p>See also  <a href="#17338a">isTopLevel</a>() and <a href="qdialog.html">QDialog</a>.
<h3 class="fn">bool<a name="1fc663"></a>QWidget::isPopup()const</h3>
<p>Returns TRUE if the widget is a popup widget, otherwise FALSE.
<p>A popup widget is created by specifying the widget flag <code>WType_Popup</code>
to the widget constructor.
<p>A popup widget is also a top-level widget.
<p>See also  <a href="#17338a">isTopLevel</a>().
<h3 class="fn">bool<a name="17338a"></a>QWidget::isTopLevel()const</h3>
<p>Returns TRUE if the widget is a top-level widget, otherwise FALSE.
<p>A top-level widget is a widget which usually has a frame and a <a href="#d6a291">caption</a> (title bar). <a href="#1fc663">Popup</a>
and <a href="#38c72f">desktop</a> widgets are also top-level
widgets.
<p>A top-level widgets can have a <a href="#ba8a09">parent
widget</a>. It will then be grouped with its parent: deleted
when the parent is deleted, minimized when the parent is minimized
etc. If supported by the window manager, it will also have a common
taskbar entry with its parent.
<p><a href="qdialog.html">QDialog</a> and <a href="qmainwindow.html">QMainWindow</a> widgets are by default top-level, even if a
parent widget is specified in the constructor. This behavior is
specified by the <code>WType_TopLevel</code> widget flag.
<p>Child widgets are the opposite of top-level widgets.
<p>See also  <a href="#aa50f8">topLevelWidget</a>(), <a href="#c271f0">isModal</a>(), <a href="#1fc663">isPopup</a>(), <a href="#38c72f">isDesktop</a>() and <a href="#ba8a09">parentWidget</a>().
<h3 class="fn">bool<a name="7af9d5"></a>QWidget::isUpdatesEnabled()const</h3>
<p>Returns TRUE if updates are enabled, otherwise FALSE.
<p>See also  <a href="#b37820">setUpdatesEnabled</a>().
<h3 class="fn">bool<a name="4d2aa7"></a>QWidget::isVisible()const</h3>
<p>Returns TRUE if the widget itself is visible, or else FALSE.
<p>Calling <a href="#200ee5">show</a>() sets the widget to visible status if all its parent
widgets up to the toplevel widget are visible. If an ancestor is not
visible, the widget won't become visible until all its ancestors are
shown.
<p>Calling <a href="#410481">hide</a>() hides a widget explicitly. An explicitly hidden
widget will never become visible, even if all its ancestors become
visible.
<p>Iconified top-level widgets also have hidden status, as well as
having <a href="#99b34b">isMinimized</a>() return TRUE. Windows that live on another
virtual desktop (on platforms that support this concept) also have
hidden status.
<p>This function returns TRUE if the widget currently is obscured by
other windows on the screen, but would be visible if moved.
<p>A widget receives show- and hide events when its visibility status
changes. Between a hide and a show event, there is no need in
wasting any CPU on preparing or displaying information to the
user. A video application, for example, might simply stop generating
new frames.
<p>See also  <a href="#200ee5">show</a>(), <a href="#410481">hide</a>(), <a href="#4fdbf8">isHidden</a>(), <a href="#8e72d3">isVisibleTo</a>(), <a href="#99b34b">isMinimized</a>(), <a href="#542dc0">showEvent</a>() and <a href="#ab7e05">hideEvent</a>().
<h3 class="fn">bool<a name="8e72d3"></a>QWidget::isVisibleTo(QWidget*ancestor)const</h3>
<p>Returns TRUE if this widget would become visible if <em>ancestor</em> is
shown.
<p>This is the case if neither the widget itself nor every parent up to
but excluding <em>ancestor</em> has been explicitly hidden.
<p>This function returns TRUE if the widget it is obscured by other
windows on the screen, but would be visible if moved.
<p>isVisibleTo(0) is very similar to <a href="#4d2aa7">isVisible</a>(), with the exception
that it does not cover the iconfied-case or the situation where the
window lives on another virtual desktop.
<p>See also  <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#4d2aa7">isVisible</a>().
<h3 class="fn">bool<a name="e7b494"></a>QWidget::isVisibleToTLW()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>This function is deprecated. It is equivalent to <a href="#4d2aa7">isVisible</a>()
<p>See also  <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#4d2aa7">isVisible</a>().
<h3 class="fn">void<a name="0a4482"></a>QWidget::keyPressEvent(<a href="qkeyevent.html">QKeyEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive key
press events for the widget.
<p>A widget must call <a href="#f92b0f">setFocusPolicy</a>() to accept focus initially and
have focus in order to receive a key press event.
<p>If you reimplement this handler, it is very important that you
ignore() the event if you do not understand it, so that the widget's
parent can interpret it.
<p>The default implementation closes popup widgets if you hit
escape.  Otherwise the event is ignored.
<p>See also  <a href="#4b620f">keyReleaseEvent</a>(), <a href="qkeyevent.html#d9375a">QKeyEvent::ignore</a>(), <a href="#f92b0f">setFocusPolicy</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#6ff658">event</a>() and <a href="qkeyevent.html">QKeyEvent</a>.
<p>Reimplemented in <a href="qtabbar.html#2e33c6">QTabBar</a>, <a href="qpopupmenu.html#eef3e4">QPopupMenu</a>, <a href="qbutton.html#029bf3">QButton</a>, <a href="qfiledialog.html#6ac082">QFileDialog</a>, <a href="qtextbrowser.html#9010ef">QTextBrowser</a>, <a href="qlineedit.html#169fc6">QLineEdit</a>, <a href="qdialog.html#8acb39">QDialog</a>, <a href="qtable.html#979515">QTable</a>, <a href="qtextview.html#bb07eb">QTextView</a>, <a href="qdial.html#5f6c63">QDial</a>, <a href="qmessagebox.html#9b0ada">QMessageBox</a>, <a href="qlistbox.html#ade87c">QListBox</a>, <a href="qmenubar.html#a93e50">QMenuBar</a>, <a href="qslider.html#c84ef2">QSlider</a>, <a href="qlistview.html#18b362">QListView</a>, <a href="qmultilineedit.html#ea13f2">QMultiLineEdit</a>, <a href="qscrollbar.html#d42206">QScrollBar</a> and <a href="qcombobox.html#a5e157">QComboBox</a>.
<h3 class="fn">void<a name="4b620f"></a>QWidget::keyReleaseEvent(<a href="qkeyevent.html">QKeyEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
key release events for the widget.
<p>A widget must <a href="#f92b0f">accept focus</a> initially
and <a href="#26f85d">have focus</a> in order to receive a key
release event.
<p>If you reimplement this handler, it is very important that you <a href="qkeyevent.html">ignore()</a> the release if you do not understand it,
so that the widget's parent can interpret it.
<p>The default implementation ignores the event.
<p>See also  <a href="#0a4482">keyPressEvent</a>(), <a href="qkeyevent.html#d9375a">QKeyEvent::ignore</a>(), <a href="#f92b0f">setFocusPolicy</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#6ff658">event</a>() and <a href="qkeyevent.html">QKeyEvent</a>.
<p>Reimplemented in <a href="qbutton.html#947905">QButton</a>.
<h3 class="fn">QWidget*<a name="e2ce48"></a>QWidget::keyboardGrabber() <code>[static]</code></h3>
<p>Returns a pointer to the widget that is currently grabbing the
keyboard input.
<p>If no widget in this application is currently grabbing the keyboard, 0
is returned.
<p>See also  <a href="#5bdd5f">grabMouse</a>() and <a href="#fbd34e">mouseGrabber</a>().
<h3 class="fn"><a href="qlayout.html">QLayout</a>*<a name="839758"></a>QWidget::layout()const</h3>
<p>Returns a pointer to the layout engine that manages the geometry of
this widget's children.
<p>If the widget does not have a layout, layout() returns a null pointer.
<p>See also  <a href="#23726d">sizePolicy</a>().
<h3 class="fn">void<a name="7eaa8a"></a>QWidget::leaveEvent(<a href="qevent.html">QEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget leave events.
<p>A leave event is sent to the widget when the mouse cursor leaves
the widget.
<p>See also  <a href="#5d1d18">enterEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>() and <a href="#6ff658">event</a>().
<p>Reimplemented in <a href="qlineedit.html#16e9f1">QLineEdit</a>, <a href="qspinbox.html#74af0b">QSpinBox</a>, <a href="qmenubar.html#15f36a">QMenuBar</a>, <a href="qtoolbutton.html#a3aaa6">QToolButton</a> and <a href="qmultilineedit.html#0bfb04">QMultiLineEdit</a>.
<h3 class="fn">void<a name="afe0aa"></a>QWidget::lower() <code>[slot]</code></h3>
<p>Lowers the widget to the bottom of the parent widget's stack.
<p>If there are siblings of this widget that overlap it on the screen, this
widget will be obscured by its siblings afterwards.
<p>See also  <a href="#4c1b49">raise</a>() and <a href="#e1aab1">stackUnder</a>().
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="f65daf"></a>QWidget::mapFrom(QWidget*parent, const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the widget coordinate <em>pos</em> from the coordinate system
of <em>parent</em> to this widget's coordinate system, which must be non-null
and be a parent widget of this.
<p>See also  <a href="#7b471b">mapTo</a>(), <a href="#7f1edd">mapFromParent</a>() and <a href="#cb3348">mapFromGlobal</a>().
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="cb3348"></a>QWidget::mapFromGlobal(const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the global screen coordinate <em>pos</em> to widget coordinates.
<p>See also  <a href="#eb4b9c">mapToGlobal</a>(), <a href="#f65daf">mapFrom</a>() and <a href="#7f1edd">mapFromParent</a>().
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="7f1edd"></a>QWidget::mapFromParent(const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the parent widget coordinate <em>pos</em> to widget coordinates.
<p>Same as <a href="#cb3348">mapFromGlobal</a>() if the widget has no parent.
<p>See also  <a href="#df0a14">mapToParent</a>(), <a href="#f65daf">mapFrom</a>() and <a href="#cb3348">mapFromGlobal</a>().
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="7b471b"></a>QWidget::mapTo(QWidget*parent, const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the widget coordinate <em>pos</em> to the coordinate system
of <em>parent,</em> which must be non-null and be a parent widget of this.
<p>See also  <a href="#f65daf">mapFrom</a>(), <a href="#df0a14">mapToParent</a>() and <a href="#eb4b9c">mapToGlobal</a>().
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="eb4b9c"></a>QWidget::mapToGlobal(const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the widget coordinate <em>pos</em> to global screen coordinates.
For example, <pre> mapToGlobal(<a href="qpoint.html">QPoint</a>(0,0))</pre>
 would give the
global coordinates of the top-left pixel of the widget.
<p>See also  <a href="#cb3348">mapFromGlobal</a>(), <a href="#7b471b">mapTo</a>() and <a href="#df0a14">mapToParent</a>().
<p>Examples:
 <a href="popup-popup-cpp.html#mapToGlobal">popup/popup.cpp</a>
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="df0a14"></a>QWidget::mapToParent(const<a href="qpoint.html">QPoint</a>&amp;pos)const</h3>
<p>Translates the widget coordinate <em>pos</em> to a coordinate in the parent widget.
<p>Same as <a href="#eb4b9c">mapToGlobal</a>() if the widget has no parent.
<p>See also  <a href="#7f1edd">mapFromParent</a>(), <a href="#7b471b">mapTo</a>() and <a href="#eb4b9c">mapToGlobal</a>().
<h3 class="fn">int<a name="f44411"></a>QWidget::maximumHeight()const</h3>
<p>Returns the widget's maximum height.
<p>See also  <a href="#fe9f6b">maximumSize</a>() and <a href="#b39f1b">maximumWidth</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="fe9f6b"></a>QWidget::maximumSize()const</h3>
<p>Returns the maximum widget size.
<p>The widget cannot be resized to a larger size than the maximum widget
size.
<p>See also  <a href="#b39f1b">maximumWidth</a>(), <a href="#f44411">maximumHeight</a>(), <a href="#c78dce">setMaximumSize</a>(), <a href="#b24d94">minimumSize</a>() and <a href="#12fe89">sizeIncrement</a>().
<h3 class="fn">int<a name="b39f1b"></a>QWidget::maximumWidth()const</h3>
<p>Returns the widget's maximum width.
<p>See also  <a href="#fe9f6b">maximumSize</a>() and <a href="#f44411">maximumHeight</a>().
<h3 class="fn">int<a name="f0e10e"></a>QWidget::metric(intm)const <code>[virtualprotected]</code></h3>
<p>Internal implementation of the virtual <a href="qpaintdevice.html#43eff7">QPaintDevice::metric</a>() function.
<p>Use the <a href="qpaintdevicemetrics.html">QPaintDeviceMetrics</a> class instead.
<p>Reimplemented from <a href="qpaintdevice.html#43eff7">QPaintDevice.</a>
<h3 class="fn"><a href="qrect.html">QRect</a><a name="838204"></a>QWidget::microFocusHint()const</h3>
<p>Returns the currently set micro focus hint for this widget.
<p>See also  <a href="#04c503">setMicroFocusHint</a>().
<h3 class="fn">int<a name="f115b7"></a>QWidget::minimumHeight()const</h3>
<p>Returns the widget's minimum height.
<p>See also  <a href="#b24d94">minimumSize</a>() and <a href="#3dae47">minimumWidth</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="b24d94"></a>QWidget::minimumSize()const</h3>
<p>Returns the minimum widget size.
<p>The widget cannot be resized to a smaller size than the minimum widget
size.
<p>If the returned minimum size equals (0,0) then it means that there are
no constraints on the minimum size. However, Qt does nevertheless not
allow you to shrink widgets to less than 1 pixel width/height.
<p>See also  <a href="#b39f1b">maximumWidth</a>(), <a href="#f44411">maximumHeight</a>(), <a href="#c0b5fb">setMinimumSize</a>(), <a href="#fe9f6b">maximumSize</a>() and <a href="#12fe89">sizeIncrement</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="553e08"></a>QWidget::minimumSizeHint()const <code>[virtual]</code></h3>
<p>Returns a recommended minimum size for the widget, or an invalid
size if no minimum size is recommended.
<p>The default implementation returns an invalid size if there is no layout
for this widget, the layout's minimum size otherwise.
<p>See also  <a href="qsize.html#7336d9">QSize::isValid</a>(), <a href="#8fcbbe">resize</a>(), <a href="#c0b5fb">setMinimumSize</a>() and <a href="#23726d">sizePolicy</a>().
<p>Reimplemented in <a href="qlineedit.html#2ed685">QLineEdit</a>, <a href="qtabbar.html#9536f1">QTabBar</a>, <a href="qlistbox.html#31647d">QListBox</a>, <a href="qdialog.html#e53930">QDialog</a>, <a href="qmainwindow.html#4a3e2c">QMainWindow</a>, <a href="qlabel.html#83b7f9">QLabel</a>, <a href="qsplitter.html#68adc8">QSplitter</a>, <a href="qlistview.html#69946b">QListView</a>, <a href="qscrollview.html#b82dff">QScrollView</a>, <a href="qtoolbar.html#cf462a">QToolBar</a>, <a href="qmenubar.html#33423d">QMenuBar</a>, <a href="qtabwidget.html#808987">QTabWidget</a>, <a href="qslider.html#dfd60a">QSlider</a>, <a href="qdial.html#6662c3">QDial</a>, <a href="qprogressbar.html#c7a8ed">QProgressBar</a>, <a href="qiconview.html#4789a5">QIconView</a>, <a href="qwidgetstack.html#e95306">QWidgetStack</a> and <a href="qmultilineedit.html#4be07b">QMultiLineEdit</a>.
<h3 class="fn">int<a name="3dae47"></a>QWidget::minimumWidth()const</h3>
<p>Returns the widget's minimum width.
<p>See also  <a href="#b24d94">minimumSize</a>() and <a href="#f115b7">minimumHeight</a>().
<h3 class="fn">void<a name="e36586"></a>QWidget::mouseDoubleClickEvent(<a href="qmouseevent.html">QMouseEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
mouse double click events for the widget.
<p>The default implementation generates a normal mouse press event.
<p>Note that the widgets gets a <a href="#2ecc04">mousePressEvent</a>() and a <a href="#9aa77f">mouseReleaseEvent</a>()
before the mouseDoubleClickEvent().
<p>See also  <a href="#2ecc04">mousePressEvent</a>(), <a href="#9aa77f">mouseReleaseEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>(), <a href="#6ff658">event</a>() and <a href="qmouseevent.html">QMouseEvent</a>.
<p>Reimplemented in <a href="qlistbox.html#27ecc4">QListBox</a>, <a href="qmultilineedit.html#385d3d">QMultiLineEdit</a>, <a href="qcombobox.html#011a20">QComboBox</a> and <a href="qlineedit.html#2f50c3">QLineEdit</a>.
<h3 class="fn">QWidget*<a name="fbd34e"></a>QWidget::mouseGrabber() <code>[static]</code></h3>
<p>Returns a pointer to the widget that is currently grabbing the
mouse input.
<p>If no widget in this application is currently grabbing the mouse, 0 is
returned.
<p>See also  <a href="#5bdd5f">grabMouse</a>() and <a href="#e2ce48">keyboardGrabber</a>().
<h3 class="fn">void<a name="a51d92"></a>QWidget::mouseMoveEvent(<a href="qmouseevent.html">QMouseEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
mouse move events for the widget.
<p>If mouse tracking is switched off, mouse move events only occur if a
mouse button is down while the mouse is being moved.  If mouse
tracking is switched on, mouse move events occur even if no mouse
button is down.
<p><a href="qmouseevent.html#ac6f25">QMouseEvent::pos</a>() reports the position of the mouse cursor, relative to
this widget.  For press and release events, the position is usually
the same as the position of the last mouse move event, but it might be
different if the user moves and clicks the mouse fast.  This is
a feature of the underlying window system, not Qt.
<p>See also  <a href="#36406c">setMouseTracking</a>(), <a href="#2ecc04">mousePressEvent</a>(), <a href="#9aa77f">mouseReleaseEvent</a>(), <a href="#e36586">mouseDoubleClickEvent</a>(), <a href="#6ff658">event</a>() and <a href="qmouseevent.html">QMouseEvent</a>.
<p>Reimplemented in <a href="qmenubar.html#50b34a">QMenuBar</a>, <a href="qheader.html#286de9">QHeader</a>, <a href="qpopupmenu.html#113f0f">QPopupMenu</a>, <a href="qlineedit.html#81136d">QLineEdit</a>, <a href="qbutton.html#ce2be0">QButton</a>, <a href="qslider.html#5ccce3">QSlider</a>, <a href="qdial.html#d76b54">QDial</a>, <a href="qsizegrip.html#e7a7d0">QSizeGrip</a>, <a href="qlistbox.html#f8ff96">QListBox</a>, <a href="qcombobox.html#4d11c4">QComboBox</a>, <a href="qmultilineedit.html#7f486b">QMultiLineEdit</a> and <a href="qscrollbar.html#7b8d5a">QScrollBar</a>.
<h3 class="fn">void<a name="2ecc04"></a>QWidget::mousePressEvent(<a href="qmouseevent.html">QMouseEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
mouse press events for the widget.
<p>If you create new widgets in the mousePressEvent() the
<a href="#9aa77f">mouseReleaseEvent</a>() may not end up where you expect, depending on the
underlying window system (or X11 window manager), the widgets'
location and maybe more.
<p>The default implementation implements the closing of popup widgets
when you click outside the window. For other widget types it does
nothing.
<p>See also  <a href="#9aa77f">mouseReleaseEvent</a>(), <a href="#e36586">mouseDoubleClickEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>(), <a href="#6ff658">event</a>() and <a href="qmouseevent.html">QMouseEvent</a>.
<p>Reimplemented in <a href="qheader.html#0598ab">QHeader</a>, <a href="qscrollbar.html#bde2f8">QScrollBar</a>, <a href="qcombobox.html#14ceab">QComboBox</a>, <a href="qslider.html#baae36">QSlider</a>, <a href="qpopupmenu.html#10529b">QPopupMenu</a>, <a href="qlistbox.html#93fa52">QListBox</a>, <a href="qsizegrip.html#f762fd">QSizeGrip</a>, <a href="qtabbar.html#39000e">QTabBar</a>, <a href="qmultilineedit.html#142b11">QMultiLineEdit</a>, <a href="qbutton.html#c7dcb7">QButton</a>, <a href="qdial.html#6a9724">QDial</a>, <a href="qlineedit.html#6b9b18">QLineEdit</a> and <a href="qmenubar.html#8a5755">QMenuBar</a>.
<h3 class="fn">void<a name="9aa77f"></a>QWidget::mouseReleaseEvent(<a href="qmouseevent.html">QMouseEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
mouse release events for the widget.
<p>See also  mouseReleaseEvent(), <a href="#e36586">mouseDoubleClickEvent</a>(), <a href="#a51d92">mouseMoveEvent</a>(), <a href="#6ff658">event</a>() and <a href="qmouseevent.html">QMouseEvent</a>.
<p>Reimplemented in <a href="qscrollbar.html#c9f0c5">QScrollBar</a>, <a href="qlineedit.html#46e737">QLineEdit</a>, <a href="qdial.html#454939">QDial</a>, <a href="qlistbox.html#5653aa">QListBox</a>, <a href="qmultilineedit.html#5868c6">QMultiLineEdit</a>, <a href="qbutton.html#b1eb12">QButton</a>, <a href="qcombobox.html#7dbbb8">QComboBox</a>, <a href="qpopupmenu.html#565164">QPopupMenu</a>, <a href="qslider.html#600888">QSlider</a>, <a href="qmenubar.html#3c5f28">QMenuBar</a>, <a href="qtabbar.html#d2f1fa">QTabBar</a> and <a href="qheader.html#af0d56">QHeader</a>.
<h3 class="fn">void<a name="39930b"></a>QWidget::move(intx, inty) <code>[virtualslot]</code></h3>
<p>Moves the widget to the position <em>(x,y)</em> relative to the parent widget and
including the window frame.
<p>If the widget is visible, it receives a <a href="#3f1b15">move
event</a> immediately. If the widget is not shown yet, it is
guaranteed to receive an event before it actually becomes visible.
<p>This function is virtual, and all other overloaded move()
implementations call it.<p><b>Warning:</b> If you call move() or <a href="#9ede68">setGeometry</a>() from <a href="#3f1b15">moveEvent</a>(), you
may see infinite recursion.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#2691c9">pos</a>(), <a href="#8fcbbe">resize</a>(), <a href="#9ede68">setGeometry</a>() and <a href="#3f1b15">moveEvent</a>().
<p>Examples:
 <a href="drawdemo-drawdemo-cpp.html#move">drawdemo/drawdemo.cpp</a>
 <a href="popup-popup-cpp.html#move">popup/popup.cpp</a>
<p>Reimplemented in <a href="qdialog.html#9c89b3">QDialog</a>, <a href="qsemimodal.html#7d084a">QSemiModal</a> and <a href="qpushbutton.html#ede724">QPushButton</a>.
<h3 class="fn">void<a name="f753ed"></a>QWidget::move(const<a href="qpoint.html">QPoint</a>&amp;) <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="3f1b15"></a>QWidget::moveEvent(<a href="qmoveevent.html">QMoveEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget move events.  When the widget receives this event, it is
already at the new position.
<p>The old position is accessible through <a href="qmoveevent.html#d57210">QMoveEvent::oldPos</a>().
<p>See also  <a href="#7d375f">resizeEvent</a>(), <a href="#6ff658">event</a>(), <a href="#39930b">move</a>() and <a href="qmoveevent.html">QMoveEvent</a>.
<p>Reimplemented in <a href="qxtwidget.html#562e6b">QXtWidget</a> and <a href="qtoolbutton.html#4023e0">QToolButton</a>.
<h3 class="fn">bool<a name="dd9a8a"></a>QWidget::ownCursor()const</h3>
<p>Returns whether the widget uses its own cursor or its parent
widget's cursor.
<h3 class="fn">bool<a name="aa1cc8"></a>QWidget::ownFont()const</h3>
<p>Returns whether the widget uses its own font or its natural
default font.
<p>See also  <a href="#090d60">setFont</a>() and <a href="#27a4a2">unsetFont</a>().
<h3 class="fn">bool<a name="d656ac"></a>QWidget::ownPalette()const</h3>
<p>Returns whether the widget uses its own palette or its natural
default palette.
<p>See also  <a href="#d7e4b9">setPalette</a>() and <a href="#40fd45">unsetPalette</a>().
<h3 class="fn">void<a name="e3d821"></a>QWidget::paintEvent(<a href="qpaintevent.html">QPaintEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget paint events.
<p>When the paint event occurs, the update region <a href="qpaintevent.html#dc5fc5">QPaintEvent::region</a>()
normally has been cleared to the background color or pixmap. An
exception is when <a href="#7569b1">repaint</a>(FALSE) is called or the widget sets the
WRepaintNoErase or WResizeNoErase flag.  Inside the paint event
handler, <a href="qpaintevent.html#e16dab">QPaintEvent::erased</a>() carries this information.
<p>For many widgets it is sufficient to redraw the entire widget each time,
but some need to consider the update
<a href="qpaintevent.html#2d6e18">rectangle</a>
or
<a href="qpaintevent.html#dc5fc5">region</a>
of the <a href="qpaintevent.html">QPaintEvent</a> to avoid slow update.
<p>During paintEvent(), any <a href="qpainter.html">QPainter</a> you create on the widget will be
clipped to at most the area covered by the update region.
<p><a href="#a66a88">update</a>() and repaint() can be used to force a paint event.
<p>See also  <a href="#6ff658">event</a>(), <a href="#7569b1">repaint</a>(), <a href="#a66a88">update</a>(), <a href="qpainter.html">QPainter</a>, <a href="qpixmap.html">QPixmap</a> and <a href="qpaintevent.html">QPaintEvent</a>.
<p>Reimplemented in <a href="qcombobox.html#f737b9">QComboBox</a>, <a href="qslider.html#d7e45a">QSlider</a>, <a href="qgroupbox.html#9ff0d8">QGroupBox</a>, <a href="qglwidget.html#660c7a">QGLWidget</a>, <a href="qscrollbar.html#772efb">QScrollBar</a>, <a href="qtabbar.html#f42e48">QTabBar</a>, <a href="qframe.html#963e1a">QFrame</a>, <a href="qheader.html#bd2f39">QHeader</a>, <a href="qlineedit.html#646620">QLineEdit</a>, <a href="qsizegrip.html#a329ca">QSizeGrip</a>, <a href="qstatusbar.html#98074a">QStatusBar</a>, <a href="qtableview.html#5343f7">QTableView</a>, <a href="qpopupmenu.html#46c526">QPopupMenu</a>, <a href="qdial.html#e69a38">QDial</a>, <a href="qtabdialog.html#0da949">QTabDialog</a>, <a href="qtoolbar.html#76ae69">QToolBar</a>, <a href="qmainwindow.html#8070de">QMainWindow</a> and <a href="qbutton.html#2b7b2a">QButton</a>.
<h3 class="fn">const<a href="qpalette.html">QPalette</a>&amp;<a name="370880"></a>QWidget::palette()const</h3>
<p>Returns the widget palette.
<p>As long as no special palette has been set, this is either a special
palette for the widget class, the parent's palette or - if this
widget is a toplevel widget - the default application palette.
<p>See also  <a href="#d7e4b9">setPalette</a>(), <a href="#d92bf4">colorGroup</a>() and <a href="qapplication.html#3e6f87">QApplication::palette</a>().
<h3 class="fn">void<a name="5825b1"></a>QWidget::paletteChange(const<a href="qpalette.html">QPalette</a>&amp;oldPalette) <code>[virtualprotected]</code></h3>
<p>This virtual function is called from <a href="#d7e4b9">setPalette</a>().  <em>oldPalette</em> is the
previous palette; you can get the new palette from <a href="#370880">palette</a>().
<p>Reimplement this function if your widget needs to know when its
palette changes.  You will almost certainly need to call this
implementation of the function.
<p>See also  <a href="#d7e4b9">setPalette</a>() and <a href="#370880">palette</a>().
<p>Reimplemented in <a href="qtextview.html#3ed6c0">QTextView</a>.
<h3 class="fn">QWidget::PropagationMode<a name="053b8c"></a>QWidget::palettePropagation()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>The return value is meaningless.
<h3 class="fn">QWidget*<a name="ba8a09"></a>QWidget::parentWidget()const</h3>
<p>Returns a pointer to the parent of this widget, or a null pointer if
it does not have any parent widget.
<h3 class="fn">void<a name="c14a09"></a>QWidget::polish() <code>[virtualslot]</code></h3>
<p>Delayed initialization of a widget.
<p>This function will be called <em>after</em> a widget has been fully created
and <em>before</em> it is shown the very first time.
<p>Polishing is useful for final initialization depending on an
instantiated widget. This is something a constructor cannot
guarantee since the initialization of the subclasses might not be
finished.
<p>After this function, the widget has a proper font and palette and
<a href="qapplication.html#11f8c4">QApplication::polish</a>() has been called.
<p>Remember to call QWidget's implementation when reimplementing this
function.
<p>See also  <a href="#533b52">constPolish</a>() and <a href="qapplication.html#11f8c4">QApplication::polish</a>().
<p>Examples:
 <a href="menu-menu-cpp.html#polish">menu/menu.cpp</a>
<h3 class="fn"><a href="qpoint.html">QPoint</a><a name="2691c9"></a>QWidget::pos()const</h3>
<p>Returns the position of the widget in its parent widget, including
the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#39930b">move</a>(), <a href="#ca6d0d">frameGeometry</a>(), <a href="#6f017a">x</a>() and <a href="#800909">y</a>().
<p>Examples:
 <a href="qmag-qmag-cpp.html#pos">qmag/qmag.cpp</a>
<h3 class="fn">void<a name="4c1b49"></a>QWidget::raise() <code>[slot]</code></h3>
<p>Raises this widget to the top of the parent widget's stack.
<p>If there are any siblings of this widget that overlap it on the screen,
this widget will be visually in front of its siblings afterwards.
<p>See also  <a href="#afe0aa">lower</a>() and <a href="#e1aab1">stackUnder</a>().
<h3 class="fn"><a href="qrect.html">QRect</a><a name="75ae71"></a>QWidget::rect()const</h3>
<p>Returns the the internal geometry of the widget, excluding the window frame.
rect() equals <a href="qrect.html">QRect</a>(0,0,<a href="#2edab1">width</a>(),<a href="#e3c588">height</a>()).
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#50b75e">size</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#rect">grapher/grapher.cpp</a>
 <a href="menu-menu-cpp.html#rect">menu/menu.cpp</a>
 <a href="desktop-desktop-cpp.html#rect">desktop/desktop.cpp</a>
 <a href="picture-picture-cpp.html#rect">picture/picture.cpp</a>
<h3 class="fn">void<a name="0fadfc"></a>QWidget::releaseKeyboard()</h3>
<p>Releases the keyboard grab.
<p>See also  <a href="#6830ee">grabKeyboard</a>(), <a href="#5bdd5f">grabMouse</a>() and <a href="#369707">releaseMouse</a>().
<h3 class="fn">void<a name="369707"></a>QWidget::releaseMouse()</h3>
<p>Releases the mouse grab.
<p>See also  <a href="#5bdd5f">grabMouse</a>(), <a href="#6830ee">grabKeyboard</a>() and <a href="#0fadfc">releaseKeyboard</a>().
<p>Examples:
 <a href="qmag-qmag-cpp.html#releaseMouse">qmag/qmag.cpp</a>
<h3 class="fn">void<a name="7569b1"></a>QWidget::repaint(const<a href="qregion.html">QRegion</a>&amp;reg, boolerase=TRUE) <code>[slot]</code></h3>
<p>Repaints the widget directly by calling <a href="#e3d821">paintEvent</a>() directly,
unless updates are disabled or the widget is hidden.
<p>Erases the widget region  <em>reg</em> if <em>erase</em> is TRUE.
<p>Use repaint if your widget needs to be repainted immediately, for
example when doing some animation. In all other cases, <a href="#a66a88">update</a>() is
to be preferred. Calling update() many times in a row will generate
a single paint event.<p><b>Warning:</b> If you call repaint() in a function which may itself be called
from paintEvent(), you may see infinite recursion. The update() function
never generates recursion.
<p>See also  <a href="#a66a88">update</a>(), <a href="#e3d821">paintEvent</a>(), <a href="#b37820">setUpdatesEnabled</a>() and <a href="#10cf79">erase</a>().
<p>Examples:
 <a href="xform-xform-cpp.html#repaint">xform/xform.cpp</a>
 <a href="qmag-qmag-cpp.html#repaint">qmag/qmag.cpp</a>
<h3 class="fn">void<a name="898fb1"></a>QWidget::repaint(intx, inty, intw, inth, boolerase=TRUE) <code>[slot]</code></h3>
<p>Repaints the widget directly by calling <a href="#e3d821">paintEvent</a>() directly,
unless updates are disabled or the widget is hidden.
<p>Erases the widget area  <em>(x,y,w,h)</em> if <em>erase</em> is TRUE.
<p>If <em>w</em> is negative, it is replaced with <code><a href="#2edab1">width</a>() - x</code>.
If <em>h</em> is negative, it is replaced width <code><a href="#e3c588">height</a>() - y</code>.
<p>Use repaint if your widget needs to be repainted immediately, for
example when doing some animation. In all other cases, <a href="#a66a88">update</a>() is
to be preferred. Calling update() many times in a row will generate
a single paint event.<p><b>Warning:</b> If you call <a href="#7569b1">repaint</a>() in a function which may itself be called
from paintEvent(), you may see infinite recursion. The update() function
never generates recursion.
<p>See also  <a href="#a66a88">update</a>(), <a href="#e3d821">paintEvent</a>(), <a href="#b37820">setUpdatesEnabled</a>() and <a href="#10cf79">erase</a>().
<h3 class="fn">void<a name="d5cfc3"></a>QWidget::repaint() <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>This version erases and repaints the entire widget.
<p>Examples:
 <a href="grapher-grapher-cpp.html#repaint">grapher/grapher.cpp</a>
<h3 class="fn">void<a name="d8ac68"></a>QWidget::repaint(boolerase) <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>This version repaints the entire widget.
<h3 class="fn">void<a name="138c7b"></a>QWidget::repaint(const<a href="qrect.html">QRect</a>&amp;r, boolerase=TRUE) <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="4591aa"></a>QWidget::reparent(QWidget*parent, WFlagsf, const<a href="qpoint.html">QPoint</a>&amp;p, boolshowIt=FALSE) <code>[virtual]</code></h3>
<p>Reparents the widget.  The widget gets a new <em>parent,</em> new widget
flags (<em>f,</em> but as usual, use 0) at a new position in its new
parent (<em>p).</em>
<p>If <em>showIt</em> is TRUE, <a href="#200ee5">show</a>() is called once the widget has been
reparented.
<p>If the new parent widget is in a different top-level widget, the
reparented widget and its children are appended to the end of the
<a href="#f92b0f">TAB chain</a> of the new parent widget,
in the same internal order as before.  If one of the moved widgets
had keyboard focus, reparent() calls <a href="#44c03a">clearFocus</a>() for that widget.
<p>If the new parent widget is in the same top-level widget as the old
parent, reparent doesn't change the TAB order or keyboard focus.<p><b>Warning:</b> Reparenting widgets should be a real exception. In normal
applications, you will almost never need it. Dynamic masks can be
achieved much easier and cleaner with classes like <a href="qwidgetstack.html">QWidgetStack</a> or
on a higher abstraction level, <a href="qwizard.html">QWizard</a>.
<p>See also  <a href="#825ef3">getWFlags</a>().
<h3 class="fn">void<a name="b2d9e4"></a>QWidget::reparent(QWidget*parent, const<a href="qpoint.html">QPoint</a>&amp;p, boolshowIt=FALSE)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>A convenience version of reparent that does not take widget
flags as argument.
<p>Calls <a href="#4591aa">reparent</a>(<em>parent,</em> <a href="#825ef3">getWFlags</a>()&~WType_Mask, <em>p, showit</em> ).
<h3 class="fn">void<a name="8fcbbe"></a>QWidget::resize(intw, inth) <code>[virtualslot]</code></h3>
<p>Resizes the widget to size <em>w</em> by <em>h</em> pixels.
<p>If the widget is visible, it receives a <a href="#7d375f">resize
event</a> immediately. If the widget is not shown yet, it is
guaranteed to receive an event before it actually becomes visible.
<p>The size is adjusted if it is outside the <a href="#c0b5fb">minimum</a> or <a href="#c78dce">maximum</a> widget size.
<p>This function is virtual, and all other overloaded resize()
implementations call it.<p><b>Warning:</b> If you call resize() or <a href="#9ede68">setGeometry</a>() from <a href="#7d375f">resizeEvent</a>(),
you may see infinite recursion.
<p>See also  <a href="#50b75e">size</a>(), <a href="#39930b">move</a>(), <a href="#9ede68">setGeometry</a>(), <a href="#7d375f">resizeEvent</a>(), <a href="#b24d94">minimumSize</a>() and <a href="#fe9f6b">maximumSize</a>().
<p>Examples:
 <a href="aclock-main-cpp.html#resize">aclock/main.cpp</a>
 <a href="checklists-main-cpp.html#resize">checklists/main.cpp</a>
 <a href="buttongroups-main-cpp.html#resize">buttongroups/main.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#resize">drawdemo/drawdemo.cpp</a>
 <a href="qmag-qmag-cpp.html#resize">qmag/qmag.cpp</a>
 <a href="qwerty-main-cpp.html#resize">qwerty/main.cpp</a>
 <a href="rot13-rot13-cpp.html#resize">rot13/rot13.cpp</a>
<p>Reimplemented in <a href="qsemimodal.html#ab35c9">QSemiModal</a> and <a href="qdialog.html#d7e510">QDialog</a>.
<h3 class="fn">void<a name="ff9d07"></a>QWidget::resize(const<a href="qsize.html">QSize</a>&amp;) <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>Examples:
 <a href="rangecontrols-main-cpp.html#resize">rangecontrols/main.cpp</a>
 <a href="themes-main-cpp.html#resize">themes/main.cpp</a>
 <a href="listviews-main-cpp.html#resize">listviews/main.cpp</a>
 <a href="dclock-main-cpp.html#resize">dclock/main.cpp</a>
 <a href="mainlyXt-editor-cpp.html#resize">mainlyXt/editor.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#resize">drawdemo/drawdemo.cpp</a>
 <a href="popup-popup-cpp.html#resize">popup/popup.cpp</a>
 <a href="fileiconview-main-cpp.html#resize">fileiconview/main.cpp</a>
 <a href="scribble-main-cpp.html#resize">scribble/main.cpp</a>
 <a href="qmag-qmag-cpp.html#resize">qmag/qmag.cpp</a>
 <a href="mainlyMotif-editor-cpp.html#resize">mainlyMotif/editor.cpp</a>
 <a href="richtext-main-cpp.html#resize">richtext/main.cpp</a>
 <a href="scrollview-scrollview-cpp.html#resize">scrollview/scrollview.cpp</a>
 <a href="qfd-qfd-cpp.html#resize">qfd/qfd.cpp</a>
 <a href="listboxcombo-main-cpp.html#resize">listboxcombo/main.cpp</a>
<h3 class="fn">void<a name="7d375f"></a>QWidget::resizeEvent(<a href="qresizeevent.html">QResizeEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget resize events. When resizeEvent() is called, the widget
already has its new geometry. The old size is accessible through
<a href="qresizeevent.html#9d3d24">QResizeEvent::oldSize</a>(), though.
<p>The widget will be erased and receive a paint event immediately
after processing the resize event. No drawing has to (and should) be
done inside this handler.
<p>Widgets that have been created with the <code>WResizeNoErase</code> flag will not
be erased. Nevertheless, they will receive a paint event for their
entire area afterwards. Again, no drawing needs to be done inside
this handler.
<p>The default implementation calls <a href="#b8a07f">updateMask</a>() if the widget
has <a href="#efa8f9">automatic masking</a>
enabled.
<p>See also  <a href="#3f1b15">moveEvent</a>(), <a href="#6ff658">event</a>(), <a href="#8fcbbe">resize</a>(), <a href="qresizeevent.html">QResizeEvent</a> and <a href="#e3d821">paintEvent</a>().
<p>Reimplemented in <a href="qtableview.html#cc633e">QTableView</a>, <a href="qmessagebox.html#66e6d5">QMessageBox</a>, <a href="qtabbar.html#3e8389">QTabBar</a>, <a href="qslider.html#7d7415">QSlider</a>, <a href="qlabel.html#ece710">QLabel</a>, <a href="qprogressdialog.html#dec31b">QProgressDialog</a>, <a href="qtable.html#6ff380">QTable</a>, <a href="qframe.html#51ee66">QFrame</a>, <a href="qpushbutton.html#5ccda2">QPushButton</a>, <a href="qsplitter.html#a09069">QSplitter</a>, <a href="qworkspace.html#9b6347">QWorkspace</a>, <a href="qscrollview.html#89deb7">QScrollView</a>, <a href="qlineedit.html#230378">QLineEdit</a>, <a href="qlistbox.html#375cf7">QListBox</a>, <a href="qtabwidget.html#feb1c6">QTabWidget</a>, <a href="qwidgetstack.html#d9c7e2">QWidgetStack</a>, <a href="qstatusbar.html#ca8893">QStatusBar</a>, <a href="qmainwindow.html#68a974">QMainWindow</a>, <a href="qmenubar.html#6b5ce9">QMenuBar</a>, <a href="qmultilineedit.html#18e638">QMultiLineEdit</a>, <a href="qglwidget.html#d2994f">QGLWidget</a>, <a href="qgroupbox.html#1a7b01">QGroupBox</a>, <a href="qtoolbar.html#73bd54">QToolBar</a>, <a href="qscrollbar.html#a12286">QScrollBar</a>, <a href="qcheckbox.html#806122">QCheckBox</a>, <a href="qlistview.html#ce5fcf">QListView</a>, <a href="qdial.html#f42a62">QDial</a>, <a href="qtextview.html#586ea1">QTextView</a>, <a href="qtabdialog.html#d1aeb0">QTabDialog</a>, <a href="qspinbox.html#c6bce4">QSpinBox</a>, <a href="qdialog.html#fc5201">QDialog</a>, <a href="qradiobutton.html#1feff9">QRadioButton</a>, <a href="qcombobox.html#4631c5">QComboBox</a>, <a href="qxtwidget.html#71ff15">QXtWidget</a> and <a href="qfiledialog.html#06bc57">QFileDialog</a>.
<h3 class="fn">void<a name="d7aad8"></a>QWidget::scroll(intdx, intdy, const<a href="qrect.html">QRect</a>&amp;r)</h3>
<p>Scrolls <em>r dx</em> pixels to the right and <em>dy</em> downwards.  Both
<em>dx</em> and <em>dy</em> may be negative.
<p>If <em>r</em> is empty or invalid, the result is undefined.
<p>After scrolling, scroll() sends a paint event for the the part of <em>r</em>
that is read but not written.  For example, when scrolling 10 pixels
rightwards, the leftmost ten pixels of <em>r</em> need repainting. The paint
event may be delivered immediately or later, depending on some heuristics.
<p>This version of scroll() does not move the children of this widget.
<p>See also  <a href="qscrollview.html">QScrollView</a>, <a href="#10cf79">erase</a>() and <a href="qpaintdevice.html#35ae2e">bitBlt</a>().
<h3 class="fn">void<a name="4a08f1"></a>QWidget::scroll(intdx, intdy)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>This version of the function scrolls the entire widget and moves the
widget's children along with the scroll.
<p>See also  <a href="qpaintdevice.html#35ae2e">bitBlt</a>() and <a href="qscrollview.html">QScrollView</a>.
<h3 class="fn">void<a name="8169cb"></a>QWidget::setAcceptDrops(boolon) <code>[virtual]</code></h3>
<p>Announces to the system that this widget <em>may</em> be able to
accept drop events.
<p>If the widgets is <a href="#38c72f">the desktop</a>,
this may fail if another application is using the desktop - you
can call <a href="#130768">acceptDrops</a>() to test if this occurs.
<p>See also  <a href="#130768">acceptDrops</a>().
<p>Examples:
 <a href="scrollview-scrollview-cpp.html#setAcceptDrops">scrollview/scrollview.cpp</a>
<h3 class="fn">void<a name="238801"></a>QWidget::setActiveWindow() <code>[virtual]</code></h3>
<p>Sets the top-level widget containing this widget to be the active
window.
<p>An active window is a visible top-level window that has the keyboard input
focus.
<p>This function performs the same operation as clicking the mouse on
the title bar of a top-level window. On X11, the result depends on
the Window Manager. If you want to ensure that the window is stacked
on top as well, call <a href="#4c1b49">raise</a>() in addition. Note that the window has be
to visible, otherwise setActiveWindow() has no effect.
<p>On Windows, if you are calling this when the application is not
currently the active one then it will not make it the active window.  It
will flash the task bar entry blue to indicate that the window has done
something.  This is due to Microsoft not allowing an application to
interrupt what the user is currently doing in another application.
<p>See also  <a href="#331f68">isActiveWindow</a>(), <a href="#aa50f8">topLevelWidget</a>() and <a href="#200ee5">show</a>().
<p>Reimplemented in <a href="qxtwidget.html#d227d8">QXtWidget</a>.
<h3 class="fn">void<a name="efa8f9"></a>QWidget::setAutoMask(boolenable) <code>[virtual]</code></h3>
<p>Transparent widgets use a <a href="#3aa0a1">mask</a> to define
their visible region. QWidget has some built-in support to make the
task of recalculating the mask easier. When setting auto mask to
TRUE, <a href="#b8a07f">updateMask</a>() will be called whenever the widget is resized or
changes its focus state.
<p>Note: When you re-implement <a href="#7d375f">resizeEvent</a>(), <a href="#21a4b8">focusInEvent</a>() or
<a href="#de664a">focusOutEvent</a>() in your custom widgets and still want to ensure that
the auto mask calculation works, you will have to add
<p><pre>    if ( autoMask() )
          updateMask();
</pre>
<p>at the end of your event handlers. Same holds for all member
functions that change the appearance of the widget in a way that a
recalculation of the mask is necessary.
<p>While being a technically appealing concept, masks have one big
drawback: when using complex masks that cannot be expressed easily
with relatively simple regions, they tend to be very slow on some
window systems. The classic example is a transparent label. The
complex shape of its contents makes it necessary to represent its
mask by a bitmap, which consumes both memory and time.  If all you
want is to blend the background of several neighboring widgets
together seamlessly, you may probably want to use
<a href="#67b25b">setBackgroundOrigin</a>() rather than a mask.
<p>See also  <a href="#898d4a">autoMask</a>(), <a href="#b8a07f">updateMask</a>(), <a href="#3aa0a1">setMask</a>(), <a href="#0b7ae4">clearMask</a>() and <a href="#67b25b">setBackgroundOrigin</a>().
<p>Examples:
 <a href="aclock-main-cpp.html#setAutoMask">aclock/main.cpp</a>
<p>Reimplemented in <a href="qlabel.html#fa2ec1">QLabel</a>.
<h3 class="fn">void<a name="c09181"></a>QWidget::setBackgroundColor(const<a href="qcolor.html">QColor</a>&amp;color) <code>[virtual]</code></h3>
<p>Sets the widget to be cleared to the fixed color <em>color</em> before
<a href="#e3d821">paintEvent</a>() is called.
<p>Note that using this function is very often a mistake.  Here are the
most common mistakes:
<p>If you want to set the background color of a widget to one of the
"usual" colors, <a href="#e84bbe">setBackgroundMode</a>() is usually the best function.
For example, man widgets that usually use white backgrounds (and
black text on it) can use this:
<p><pre>    thatWidget-&gt;setBackgroundMode( QWidget::PaletteBase );
</pre>
<p>If you want to change the color scheme of a widget, the <a href="#d7e4b9">setPalette</a>()
function is better suited.  Here is how to set <em>thatWidget</em> to use a
light green (RGB value 80, 255, 80) as background color, with shades
of green used for all the 3D effects:
<p><pre>    thatWidget-&gt;setPalette( <a href="qpalette.html">QPalette</a>( <a href="qcolor.html">QColor</a>(80, 255, 80) ) );
</pre>
<p>A fixed background color sometimes is just the right thing, but if
you use it, make sure that your application looks right when the
desktop color scheme has been changed.  (On X11, a quick way to test
is e.g. "./yourapp -bg paleblue".  On Windows, you have to use the
control panel.)
<p>See also  <a href="#d7e4b9">setPalette</a>(), <a href="qapplication.html#63c60d">QApplication::setPalette</a>(), <a href="#d5be64">backgroundColor</a>(), <a href="#7e417f">setBackgroundPixmap</a>() and <a href="#e84bbe">setBackgroundMode</a>().
<p>Examples:
 <a href="drawlines-connect-cpp.html#setBackgroundColor">drawlines/connect.cpp</a>
 <a href="xform-xform-cpp.html#setBackgroundColor">xform/xform.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#setBackgroundColor">drawdemo/drawdemo.cpp</a>
 <a href="splitter-splitter-cpp.html#setBackgroundColor">splitter/splitter.cpp</a>
 <a href="desktop-desktop-cpp.html#setBackgroundColor">desktop/desktop.cpp</a>
 <a href="hello-main-cpp.html#setBackgroundColor">hello/main.cpp</a>
 <a href="customlayout-main-cpp.html#setBackgroundColor">customlayout/main.cpp</a>
<h3 class="fn">void<a name="e84bbe"></a>QWidget::setBackgroundMode(<a href="qwidget.html#BackgroundMode">BackgroundMode</a>m)</h3>
<p>Tells the window system how to clear this widget when sending a
paint event.  In other words, this decides how the widgets looks
when <a href="#e3d821">paintEvent</a>() is called.
<p>For most widgets the default (PaletteBackground, normally
gray) suffices, but some need to use PaletteBase (the
background color for text output, normally white) and a few need
other colors.
<p><a href="qlistbox.html">QListBox</a>, which is "sunken" and uses the base color to contrast with
its environment, does this:
<p><pre>    setBackgroundMode( PaletteBase );
</pre>
<p>Note that two of the <a href="#BackgroundMode">BackgroundMode</a> values cannot be used with this
function.  For <code>FixedPixmap,</code> call <a href="#7e417f">setBackgroundPixmap</a>() instead,
and for <code>FixedColor,</code> call <a href="#c09181">setBackgroundColor</a>().
<h3 class="fn">void<a name="67b25b"></a>QWidget::setBackgroundOrigin(<a href="qwidget.html#BackgroundOrigin">BackgroundOrigin</a>origin)</h3>
<p>Sets the widget's background to be drawn relative to <em>origin,</em>
which is either of <code>WidgetOrigin</code> (the default) or <code>ParentOrigin.</code>
<p>This makes a difference only if the widget has a background pixmap
where the positioning matters. In such case, using <code>ParentOrigin</code>
for several neighboring widgets makes the background blend together
seamlessly.
<p>See also  <a href="#456fbe">backgroundOrigin</a>(), <a href="#9b2957">backgroundPixmap</a>() and <a href="#e84bbe">setBackgroundMode</a>().
<h3 class="fn">void<a name="7e417f"></a>QWidget::setBackgroundPixmap(const<a href="qpixmap.html">QPixmap</a>&amp;pixmap) <code>[virtual]</code></h3>
<p>Sets the background pixmap of the widget to <em>pixmap.</em>
<p>The background pixmap is tiled to cover the entire widget.  Note
that some widgets do not work well with a background pixmap, for
example <a href="qlineedit.html">QLineEdit</a>.
<p>If <em>pixmap</em> is part of the widget's <a href="#370880">palette</a>(), we recommend calling
<a href="#e84bbe">setBackgroundMode</a>() instead.
<p>A fixed background pixmap sometimes is just the right thing, but if
you use it, make sure that your application looks right when the
desktop color scheme has been changed.  (On X11, a quick way to test
is e.g. "./yourapp -bg paleblue".  On Windows, you have to use the
control panel.)
<p>See also  <a href="#e84bbe">setBackgroundMode</a>(), <a href="#9b2957">backgroundPixmap</a>(), <a href="#61a18f">backgroundPixmapChange</a>() and <a href="#c09181">setBackgroundColor</a>().
<p>Examples:
 <a href="desktop-desktop-cpp.html#setBackgroundPixmap">desktop/desktop.cpp</a>
<h3 class="fn">void<a name="bcd0af"></a>QWidget::setBaseSize(intbasew, intbaseh)</h3>
<p>Sets the base size of the widget.  The base size is important only
in combination with size increments. See <a href="#16748e">setSizeIncrement</a>() for details.
<p>See also  <a href="#4543f1">baseSize</a>().
<h3 class="fn">void<a name="cb5440"></a>QWidget::setBaseSize(const<a href="qsize.html">QSize</a>&amp;)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="d6a291"></a>QWidget::setCaption(const<a href="qstring.html">QString</a>&amp;caption) <code>[virtualslot]</code></h3>
<p>Sets the window caption (title) to <em>caption.</em>
<p>See also  <a href="#f852bc">caption</a>(), <a href="#504fc4">setIcon</a>() and <a href="#2f0f0d">setIconText</a>().
<p>Examples:
 <a href="showimg-main-cpp.html#setCaption">showimg/main.cpp</a>
 <a href="action-main-cpp.html#setCaption">action/main.cpp</a>
 <a href="rangecontrols-main-cpp.html#setCaption">rangecontrols/main.cpp</a>
 <a href="iconview-main-cpp.html#setCaption">iconview/main.cpp</a>
 <a href="validator-main-cpp.html#setCaption">validator/main.cpp</a>
 <a href="themes-main-cpp.html#setCaption">themes/main.cpp</a>
 <a href="listviews-main-cpp.html#setCaption">listviews/main.cpp</a>
 <a href="aclock-main-cpp.html#setCaption">aclock/main.cpp</a>
 <a href="checklists-main-cpp.html#setCaption">checklists/main.cpp</a>
 <a href="drawlines-connect-cpp.html#setCaption">drawlines/connect.cpp</a>
 <a href="dclock-main-cpp.html#setCaption">dclock/main.cpp</a>
 <a href="wizard-main-cpp.html#setCaption">wizard/main.cpp</a>
 <a href="xform-xform-cpp.html#setCaption">xform/xform.cpp</a>
 <a href="application-main-cpp.html#setCaption">application/main.cpp</a>
 <a href="cursor-cursor-cpp.html#setCaption">cursor/cursor.cpp</a>
 <a href="layout-layout-cpp.html#setCaption">layout/layout.cpp</a>
 <a href="tetrix-tetrix-cpp.html#setCaption">tetrix/tetrix.cpp</a>
 <a href="helpviewer-main-cpp.html#setCaption">helpviewer/main.cpp</a>
 <a href="buttongroups-main-cpp.html#setCaption">buttongroups/main.cpp</a>
 <a href="life-main-cpp.html#setCaption">life/main.cpp</a>
 <a href="i18n-main-cpp.html#setCaption">i18n/main.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#setCaption">drawdemo/drawdemo.cpp</a>
 <a href="lineedits-main-cpp.html#setCaption">lineedits/main.cpp</a>
 <a href="popup-popup-cpp.html#setCaption">popup/popup.cpp</a>
 <a href="listbox-main-cpp.html#setCaption">listbox/main.cpp</a>
 <a href="menu-menu-cpp.html#setCaption">menu/menu.cpp</a>
 <a href="progress-progress-cpp.html#setCaption">progress/progress.cpp</a>
 <a href="scribble-main-cpp.html#setCaption">scribble/main.cpp</a>
 <a href="tabdialog-main-cpp.html#setCaption">tabdialog/main.cpp</a>
 <a href="splitter-splitter-cpp.html#setCaption">splitter/splitter.cpp</a>
 <a href="progressbar-main-cpp.html#setCaption">progressbar/main.cpp</a>
 <a href="tooltip-main-cpp.html#setCaption">tooltip/main.cpp</a>
 <a href="richtext-main-cpp.html#setCaption">richtext/main.cpp</a>
 <a href="qwerty-main-cpp.html#setCaption">qwerty/main.cpp</a>
 <a href="forever-forever-cpp.html#setCaption">forever/forever.cpp</a>
 <a href="rot13-rot13-cpp.html#setCaption">rot13/rot13.cpp</a>
 <a href="xml-tagreader-with-features-tagreader-cpp.html#setCaption">xml/tagreader-with-features/tagreader.cpp</a>
 <a href="scrollview-scrollview-cpp.html#setCaption">scrollview/scrollview.cpp</a>
 <a href="qfd-qfd-cpp.html#setCaption">qfd/qfd.cpp</a>
 <a href="addressbook-main-cpp.html#setCaption">addressbook/main.cpp</a>
 <a href="movies-main-cpp.html#setCaption">movies/main.cpp</a>
 <a href="picture-picture-cpp.html#setCaption">picture/picture.cpp</a>
 <a href="hello-main-cpp.html#setCaption">hello/main.cpp</a>
 <a href="listboxcombo-main-cpp.html#setCaption">listboxcombo/main.cpp</a>
 <a href="tictac-main-cpp.html#setCaption">tictac/main.cpp</a>
 <a href="customlayout-main-cpp.html#setCaption">customlayout/main.cpp</a>
 <a href="mdi-main-cpp.html#setCaption">mdi/main.cpp</a>
 <a href="dirview-main-cpp.html#setCaption">dirview/main.cpp</a>
<h3 class="fn">void<a name="9b6e22"></a>QWidget::setCursor(const<a href="qcursor.html">QCursor</a>&amp;cursor) <code>[virtual]</code></h3>
<p>Sets the widget cursor shape to <em>cursor.</em>
<p>The mouse cursor will assume this shape when it's over this widget.
See a list of predefined cursor objects with a range of useful
shapes in the <a href="qcursor.html">QCursor</a> documentation.
<p>An editor widget would for example use an I-beam cursor:
<pre>    setCursor( ibeamCursor );
</pre>
<p>See also  <a href="#5fad9d">cursor</a>(), <a href="#215c33">unsetCursor</a>() and <a href="qapplication.html#07e1f1">QApplication::setOverrideCursor</a>().
<p>Examples:
 <a href="cursor-cursor-cpp.html#setCursor">cursor/cursor.cpp</a>
<h3 class="fn">void<a name="2d200f"></a>QWidget::setDisabled(booldisable) <code>[slot]</code></h3>
<p>Disables widget input events if <em>disable</em> is TRUE, otherwise enables
input events.
<p>An enabled widget receives keyboard and mouse events; a disabled
widget does not.  Note that an enabled widget receives keyboard
events only when it is in focus.
<p>Some widgets display themselves differently when they are disabled.
For example a button might draw its label grayed out. If your widget
needs to know when it becomes enabled or disabled, you can
reimplement the <a href="#048926">enabledChange</a>() function.
<p>Disabling a widget implicitely disables all its children.  Enabling
respectively enables all child widgets unless they have been
explicitly disabled.
<p>See also  <a href="#4b103c">setEnabled</a>(), <a href="#f9af61">isEnabled</a>(), <a href="#1123d2">isEnabledTo</a>(), <a href="qkeyevent.html">QKeyEvent</a>, <a href="qmouseevent.html">QMouseEvent</a> and <a href="#048926">enabledChange</a>().
<h3 class="fn">void<a name="4b103c"></a>QWidget::setEnabled(boolenable) <code>[virtualslot]</code></h3>
<p>Enables widget input events if <em>enable</em> is TRUE, otherwise disables
input events.
<p>An enabled widget receives keyboard and mouse events; a disabled
widget does not.  Note that an enabled widget receives keyboard
events only when it is in focus.
<p>Some widgets display themselves differently when they are disabled.
For example a button might draw its label grayed out. If your widget
needs to know when it becomes enabled or disabled, you can
reimplement the <a href="#048926">enabledChange</a>() function.
<p>Disabling a widget implicitely disables all its children.  Enabling
respectively enables all child widgets unless they have been
explicitly disabled.
<p>See also  <a href="#f9af61">isEnabled</a>(), <a href="#1123d2">isEnabledTo</a>(), <a href="qkeyevent.html">QKeyEvent</a>, <a href="qmouseevent.html">QMouseEvent</a> and <a href="#048926">enabledChange</a>().
<p>Reimplemented in <a href="qscrollview.html#309e67">QScrollView</a>.
<h3 class="fn">void<a name="5e7ab2"></a>QWidget::setFixedHeight(inth)</h3>
<p>Sets both the minimum and maximum heights of the widget to <em>h</em>
without changing the widths.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<p>Examples:
 <a href="layout-layout-cpp.html#setFixedHeight">layout/layout.cpp</a>
<h3 class="fn">void<a name="87e3f4"></a>QWidget::setFixedSize(const<a href="qsize.html">QSize</a>&amp;s)</h3>
<p>Sets both the minimum and maximum sizes of the widget to <em>s,</em>
thereby preventing it from ever growing or shrinking.
<p>See also  <a href="#c78dce">setMaximumSize</a>() and <a href="#c0b5fb">setMinimumSize</a>().
<h3 class="fn">void<a name="ff8057"></a>QWidget::setFixedSize(intw, inth)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="f6c250"></a>QWidget::setFixedWidth(intw)</h3>
<p>Sets both the minimum and maximum width of the widget to <em>w</em>
without changing the heights.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<h3 class="fn">void<a name="25775a"></a>QWidget::setFocus() <code>[virtualslot]</code></h3>
<p>Gives the keyboard input focus to the widget (or its focus proxy).
<p>First, a <a href="#de664a">focus out event</a> is sent to the
focus widget (if any) to tell it that it is about to lose the
focus. Then a <a href="#21a4b8">focus in event</a> is sent to
this widget to tell it that it just received the focus.
<p>setFocus() gives focus to a widget regardless of its focus policy.<p><b>Warning:</b> If you call setFocus() in a function which may itself be
called from <a href="#de664a">focusOutEvent</a>() or <a href="#21a4b8">focusInEvent</a>(), you may see infinite
recursion.
<p>See also  <a href="#26f85d">hasFocus</a>(), <a href="#44c03a">clearFocus</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#f92b0f">setFocusPolicy</a>() and <a href="qapplication.html#df8f4c">QApplication::focusWidget</a>().
<p>Examples:
 <a href="xform-xform-cpp.html#setFocus">xform/xform.cpp</a>
 <a href="popup-popup-cpp.html#setFocus">popup/popup.cpp</a>
<h3 class="fn">void<a name="f92b0f"></a>QWidget::setFocusPolicy(<a href="qwidget.html#FocusPolicy">FocusPolicy</a>policy)</h3>
<p>Enables or disables the keyboard focus for the widget.
<p>The keyboard focus is initially disabled (i.e. <em>policy</em> ==
<code>QWidget::NoFocus).</code>
<p>You must enable keyboard focus for a widget if it processes keyboard
events. This is normally done from the widget's constructor.  For
instance, the <a href="qlineedit.html">QLineEdit</a> constructor calls
setFocusPolicy(<code>QWidget::StrongFocus).</code>
<p>See also  <a href="#2f25f0">isFocusEnabled</a>(), <a href="#21a4b8">focusInEvent</a>(), <a href="#de664a">focusOutEvent</a>(), <a href="#0a4482">keyPressEvent</a>(), <a href="#4b620f">keyReleaseEvent</a>() and <a href="#f9af61">isEnabled</a>().
<p>Examples:
 <a href="rot13-rot13-cpp.html#setFocusPolicy">rot13/rot13.cpp</a>
<h3 class="fn">void<a name="cddadb"></a>QWidget::setFocusProxy(QWidget*w) <code>[virtual]</code></h3>
<p>Sets this widget's focus proxy to <em>w.</em> If <em>w</em> is 0, this
function resets this widget to not have any focus proxy.
<p>Some widgets, such as <a href="qcombobox.html">QComboBox</a>, can "have focus," but create a
child widget to actually handle the focus.  QComboBox, for example,
creates a <a href="qlineedit.html">QLineEdit</a>.
<p>setFocusProxy() sets the widget which will actually get focus when
"this widget" gets it.  If there is a focus proxy, <a href="#3d478d">focusPolicy</a>(),
<a href="#f92b0f">setFocusPolicy</a>(), <a href="#25775a">setFocus</a>() and <a href="#26f85d">hasFocus</a>() all operate on the focus
proxy.
<p>See also  <a href="#c1135e">focusProxy</a>().
<h3 class="fn">void<a name="c52788"></a>QWidget::setFont(const<a href="qfont.html">QFont</a>&amp;font) <code>[virtual]</code></h3>
<p>Sets the font for the widget and informs all children about the
change.
<p>The <a href="#205244">fontInfo</a>() function reports the actual font that is being used by the
widget.
<p>This code fragment sets a 12 point helvetica bold font:
<pre>    <a href="qfont.html">QFont</a> f("Helvetica", 12, QFont::Bold);
    setFont( f );
</pre>
<p>See also  <a href="#167922">font</a>(), <a href="#ac5c83">fontChange</a>(), <a href="#205244">fontInfo</a>(), <a href="#386569">fontMetrics</a>(), <a href="#27a4a2">unsetFont</a>() and <a href="#aa1cc8">ownFont</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#setFont">grapher/grapher.cpp</a>
 <a href="xform-xform-cpp.html#setFont">xform/xform.cpp</a>
<p>Reimplemented in <a href="qwizard.html#98ce4e">QWizard</a>, <a href="qpopupmenu.html#3e68bb">QPopupMenu</a>, <a href="qtabdialog.html#632ea3">QTabDialog</a> and <a href="qfontdialog.html#24344f">QFontDialog</a>.
<h3 class="fn">void<a name="090d60"></a>QWidget::setFont(const<a href="qfont.html">QFont</a>&amp;font, bool)</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>Use setFont( const <a href="qfont.html">QFont</a>& font) instead.
<p>Examples:
 <a href="xform-xform-cpp.html#setFont">xform/xform.cpp</a>
 <a href="hello-main-cpp.html#setFont">hello/main.cpp</a>
<h3 class="fn">void<a name="b2c696"></a>QWidget::setFontPropagation(<a href="qwidget.html#PropagationMode">PropagationMode</a>)</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>Calling this function has no effect.
<h3 class="fn">void<a name="9ede68"></a>QWidget::setGeometry(intx, inty, intw, inth) <code>[virtualslot]</code></h3>
<p>Sets the widget geometry to <em>w</em> by <em>h,</em> positioned at <em>x,y</em> in its
parent widget.
<p>If the widget is visible, it receives a <a href="#3f1b15">move
event</a> and/or <a href="#7d375f">resize event</a>
immediately. If the widget is not shown yet, it is guaranteed to
receive appropriate events before it actually becomes visible.
<p>The size is adjusted if it is outside the <a href="#c0b5fb">minimum</a> or <a href="#c78dce">maximum</a> widget size.
<p>This function is virtual, and all other overloaded setGeometry()
implementations call it.<p><b>Warning:</b> If you call setGeometry() from <a href="#7d375f">resizeEvent</a>() or <a href="#3f1b15">moveEvent</a>(),
you may see infinite recursion.
<p>See also  <a href="#e515c8">geometry</a>(), <a href="#39930b">move</a>(), <a href="#8fcbbe">resize</a>(), <a href="#3f1b15">moveEvent</a>(), <a href="#7d375f">resizeEvent</a>(), <a href="#b24d94">minimumSize</a>() and <a href="#fe9f6b">maximumSize</a>().
<p>Reimplemented in <a href="qdialog.html#e54a1a">QDialog</a>.
<h3 class="fn">void<a name="5e9ab1"></a>QWidget::setGeometry(const<a href="qrect.html">QRect</a>&amp;) <code>[virtualslot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<p>Examples:
 <a href="i18n-main-cpp.html#setGeometry">i18n/main.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#setGeometry">drawdemo/drawdemo.cpp</a>
 <a href="popup-popup-cpp.html#setGeometry">popup/popup.cpp</a>
 <a href="qmag-qmag-cpp.html#setGeometry">qmag/qmag.cpp</a>
<p>Reimplemented in <a href="qdialog.html#bba7b0">QDialog</a>.
<h3 class="fn">void<a name="504fc4"></a>QWidget::setIcon(const<a href="qpixmap.html">QPixmap</a>&amp;pixmap) <code>[virtualslot]</code></h3>
<p>Sets the window icon to <em>pixmap.</em>
<p>See also  <a href="#126b68">icon</a>(), <a href="#2f0f0d">setIconText</a>(), <a href="#d6a291">setCaption</a>() and <a href="appicon.html">Setting the Application Icon</a>
<p>Reimplemented in <a href="qmessagebox.html#7b9199">QMessageBox</a>.
<h3 class="fn">void<a name="2f0f0d"></a>QWidget::setIconText(const<a href="qstring.html">QString</a>&amp;iconText) <code>[virtualslot]</code></h3>
<p>Sets the text of the window's icon to <em>iconText.</em>
<p>See also  <a href="#975b5d">iconText</a>(), <a href="#504fc4">setIcon</a>() and <a href="#d6a291">setCaption</a>().
<h3 class="fn">void<a name="55438e"></a>QWidget::setKeyCompression(boolcompress) <code>[virtualprotected]</code></h3>
<p>Enables key event compression, if <em>enable</em> is TRUE, and disables it
if <em>enable</em> is FALSE.
<p>By default key compression is off, so widgets receive one key press
event for each key press (or more, since autorepeat is usually on).
If you turn it on and your program doesn't keep up with key input,
Qt tries to compress key events so that more than one character can
be processed in each event.
<p>For example, a word processor widget might receive 2, 3 or more
characters in each <a href="qkeyevent.html#882dd8">QKeyEvent::text</a>(), if the layout recalculation
takes too long for the CPU.
<p>If a widget supports multiple character unicode input, it is always
safe to turn the compression on.
<p>See also  <a href="qkeyevent.html#882dd8">QKeyEvent::text</a>();.
<h3 class="fn">void<a name="3aa0a1"></a>QWidget::setMask(const<a href="qbitmap.html">QBitmap</a>&amp;bitmap) <code>[virtual]</code></h3>
<p>Causes only the pixels of the widget for which <em>bitmap</em>
has a corresponding 1 bit
to be visible.  If the region includes pixels outside the
<a href="#75ae71">rect</a>() of the widget, window system controls in that area
may or may not be visible, depending on the platform.
<p>Note that this effect can be slow if the region is particularly
complex.
<p>See also  setMask(const, <a href="qregion.html">QRegion</a>&) and <a href="#0b7ae4">clearMask</a>().
<h3 class="fn">void<a name="588d30"></a>QWidget::setMask(const<a href="qregion.html">QRegion</a>&amp;region) <code>[virtual]</code></h3>
<p>Causes only the parts of the widget which overlap <em>region</em>
to be visible.  If the region includes pixels outside the
<a href="#75ae71">rect</a>() of the widget, window system controls in that area
may or may not be visible, depending on the platform.
<p>Note that this effect can be slow if the region is particularly
complex.
<p>See also  <a href="#3aa0a1">setMask</a>(<a href="qbitmap.html">QBitmap</a>) and <a href="#0b7ae4">clearMask</a>().
<h3 class="fn">void<a name="4e5337"></a>QWidget::setMaximumHeight(inth)</h3>
<p>Sets the maximum height of the widget to <em>h</em> without changing the
width.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<p>Examples:
 <a href="splitter-splitter-cpp.html#setMaximumHeight">splitter/splitter.cpp</a>
<h3 class="fn">void<a name="c78dce"></a>QWidget::setMaximumSize(intmaxw, intmaxh) <code>[virtual]</code></h3>
<p>Sets the maximum size of the widget to <em>w</em> by <em>h</em> pixels.
<p>The widget cannot be resized to a larger size than the maximum widget
size. The widget's size is forced to the maximum size if the current
size is greater.
<p>See also  <a href="#fe9f6b">maximumSize</a>(), <a href="#c0b5fb">setMinimumSize</a>(), <a href="#16748e">setSizeIncrement</a>(), <a href="#8fcbbe">resize</a>() and <a href="#50b75e">size</a>().
<h3 class="fn">void<a name="30296d"></a>QWidget::setMaximumSize(const<a href="qsize.html">QSize</a>&amp;size)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="99d237"></a>QWidget::setMaximumWidth(intw)</h3>
<p>Sets the maximum width of the widget to <em>w</em> without changing the
height.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<h3 class="fn">void<a name="04c503"></a>QWidget::setMicroFocusHint(intx, inty, intwidth, intheight, booltext=TRUE) <code>[virtualprotected]</code></h3>
<p>When a widget gets focus, it should call setMicroFocusHint for some
appropriate position and size - <em>x, y</em> and <em>w</em> by <em>h.</em>  This
has no <em>visual</em> effect, it just provides hints to any
system-specific input handling tools.
<p>The <em>text</em> argument should be TRUE if this is a position for text
input.
<p>In the Windows version of Qt, this method sets the system caret, which is
used for user Accessibility focus handling.  If <em>text</em> is TRUE, it also
sets the IME composition window in Far East Asian language input systems.
<p>In the X11 version of Qt, if <em>text</em> is TRUE, this method sets the
XIM "spot" point for complex language input handling.
<p>See also  <a href="#838204">microFocusHint</a>().
<h3 class="fn">void<a name="e24afa"></a>QWidget::setMinimumHeight(inth)</h3>
<p>Sets the minimum height of the widget to <em>h</em> without changing the
width.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<h3 class="fn">void<a name="c0b5fb"></a>QWidget::setMinimumSize(intminw, intminh) <code>[virtual]</code></h3>
<p>Sets the minimum size of the widget to <em>w</em> by <em>h</em> pixels.
<p>The widget cannot be resized to a smaller size than the minimum widget
size. The widget's size is forced to the minimum size if the current
size is smaller.
<p>If you use a layout inside the widget, the minimum size will be set by the layout and
not by setMinimumSize, unless you set the layouts resize mode to QLayout::FreeResize.
<p>See also  <a href="#b24d94">minimumSize</a>(), <a href="#c78dce">setMaximumSize</a>(), <a href="#16748e">setSizeIncrement</a>(), <a href="#8fcbbe">resize</a>(), <a href="#50b75e">size</a>() and <a href="qlayout.html#e750be">QLayout::setResizeMode</a>().
<p>Examples:
 <a href="menu-menu-cpp.html#setMinimumSize">menu/menu.cpp</a>
 <a href="qmag-qmag-cpp.html#setMinimumSize">qmag/qmag.cpp</a>
 <a href="splitter-splitter-cpp.html#setMinimumSize">splitter/splitter.cpp</a>
<h3 class="fn">void<a name="68f09f"></a>QWidget::setMinimumSize(const<a href="qsize.html">QSize</a>&amp;size)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="893704"></a>QWidget::setMinimumWidth(intw)</h3>
<p>Sets the minimum width of the widget to <em>w</em> without changing the
height.  Provided for convenience.
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="#b24d94">minimumSize</a>(), <a href="#fe9f6b">maximumSize</a>(), <a href="#87e3f4">setFixedSize</a>() and more.
<h3 class="fn">void<a name="36406c"></a>QWidget::setMouseTracking(boolenable) <code>[virtualslot]</code></h3>
<p>Enables mouse tracking if <em>enable</em> is TRUE, or disables it if <em>enable</em>
is FALSE.
<p>If mouse tracking is disabled (default), this widget only receives
mouse move events when at least one mouse button is pressed down while
the mouse is being moved.
<p>If mouse tracking is enabled, this widget receives mouse move events
even if no buttons are pressed down.
<p>See also  <a href="#2831c6">hasMouseTracking</a>(), <a href="#a51d92">mouseMoveEvent</a>() and <a href="qapplication.html#978595">QApplication::setGlobalMouseTracking</a>().
<p>Examples:
 <a href="popup-popup-cpp.html#setMouseTracking">popup/popup.cpp</a>
 <a href="qmag-qmag-cpp.html#setMouseTracking">qmag/qmag.cpp</a>
<p>Reimplemented in <a href="qglwidget.html#5a8a07">QGLWidget</a>.
<h3 class="fn">void<a name="2d71e0"></a>QWidget::setName(constchar*name) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qobject.html#ceac81">QObject.</a>
<h3 class="fn">void<a name="fef559"></a>QWidget::setPalette(const<a href="qpalette.html">QPalette</a>&amp;p, bool)</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>Use <a href="#d7e4b9">setPalette</a>( const <a href="qpalette.html">QPalette</a>& p ) instead.
<h3 class="fn">void<a name="d7e4b9"></a>QWidget::setPalette(const<a href="qpalette.html">QPalette</a>&amp;palette) <code>[virtual]</code></h3>
<p>Sets the widget palette to <em>palette</em> and informs all children about the change.
<p>See also  <a href="qapplication.html#63c60d">QApplication::setPalette</a>(), <a href="#370880">palette</a>(), <a href="#5825b1">paletteChange</a>(), <a href="#40fd45">unsetPalette</a>(), <a href="#d656ac">ownPalette</a>() and <a href="#d92bf4">colorGroup</a>().
<h3 class="fn">void<a name="232e53"></a>QWidget::setPalettePropagation(<a href="qwidget.html#PropagationMode">PropagationMode</a>)</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt.  We strongly advise against using it in new code.<p>
<p>Calling this function has no effect.
<h3 class="fn">void<a name="16748e"></a>QWidget::setSizeIncrement(intw, inth) <code>[virtual]</code></h3>
<p>Sets the size increment of the widget.  When the user resizes the
window, the size will move in steps of <em>w</em> pixels horizontally and
<em>h</em> pixels vertically, with <a href="#4543f1">baseSize</a>() as basis. Preferred widget sizes are therefore for
non-negative integers <em>i</em> and <em>j:</em>
<pre>  width = baseSize().width() + i * sizeIncrement().width();
  height = baseSize().height() + j * sizeIncrement().height();
</pre>
<p>Note that while you can set the size increment for all widgets, it
has no effect except for top-level widgets.<p><b>Warning:</b> The size increment has no effect under Windows, and may be
disregarded by the window manager on X.
<p>See also  <a href="#12fe89">sizeIncrement</a>(), <a href="#c0b5fb">setMinimumSize</a>(), <a href="#c78dce">setMaximumSize</a>(), <a href="#8fcbbe">resize</a>() and <a href="#50b75e">size</a>().
<h3 class="fn">void<a name="baa891"></a>QWidget::setSizeIncrement(const<a href="qsize.html">QSize</a>&amp;)</h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="9230b0"></a>QWidget::setSizePolicy(<a href="qsizepolicy.html">QSizePolicy</a>policy)</h3>
<p>Sets the size policy for this widget to <em>policy.</em> The size policy
specifies the default layout behaviour.
<p>The default policy is Preferred/Preferred, which means that the
widget can be freely resized, but prefers to be the size <a href="#4511d1">sizeHint</a>()
returns. Button-like widgets set the size policy to specify that
they may stretch horizontally, but are fixed vertically. The same
applies to lineedit controls (such as <a href="qlineedit.html">QLineEdit</a>, <a href="qspinbox.html">QSpinBox</a> or an
editable <a href="qcombobox.html">QComboBox</a>) and other horizontally orientated widgets (such
as <a href="qprogressbar.html">QProgressBar</a>).  A <a href="qtoolbutton.html">QToolButton</a> on the other hand wants to be
squared, therefore it allows growth in both directions. Widgets that
support different directions (such as <a href="qslider.html">QSlider</a>, <a href="qscrollbar.html">QScrollBar</a> or
<a href="qheader.html">QHeader</a>) specify stretching in the respective direction
only. Widgets that can provide scrollbars (usually subclasses of
<a href="qscrollview.html">QScrollView</a>) tend to specify that they can use additional space, and
that they can survive on less than sizeHint().
<p>See also  <a href="#4511d1">sizeHint</a>(), <a href="qlayout.html">QLayout</a>, <a href="qsizepolicy.html">QSizePolicy</a> and <a href="#5f7c35">updateGeometry</a>().
<h3 class="fn">void<a name="287f79"></a>QWidget::setStyle(<a href="qstyle.html">QStyle</a>*style)</h3>
<p>Sets the widget's GUI style to <em>style.</em> Ownership of the style
object is not transferred.
<p>If no style is set, the widget uses the application's style
<a href="qapplication.html#1bada8">QApplication::style</a>() instead.
<p>Setting a widget's style has no effect on existing or future
child widgets.<p><b>Warning:</b> This function is particularly useful for demonstration
purposes, where you want to show Qt's styling capabilities.  Real
applications should stay away from it and use one consistent GUI
style instead.
<p>See also  <a href="#027381">style</a>(), <a href="qstyle.html">QStyle</a>, <a href="qapplication.html#1bada8">QApplication::style</a>() and <a href="qapplication.html#e52522">QApplication::setStyle</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#setStyle">grapher/grapher.cpp</a>
<h3 class="fn">void<a name="20c984"></a>QWidget::setTabOrder(QWidget*first, QWidget*second) <code>[static]</code></h3>
<p>Moves the <em>second</em> widget around the ring of focus widgets
so that keyboard focus moves from <em>first</em> widget to <em>second</em>
widget when Tab is pressed.
<p>Note that since the tab order of the <em>second</em> widget is changed,
you should order a chain like this:
<p><pre>    setTabOrder(a, b ); // a to b
    setTabOrder(b, c ); // a to b to c
    setTabOrder(c, d ); // a to b to c to d
</pre>
<p>not like this:
<p><pre>    setTabOrder(c, d); // c to d
    setTabOrder(a, b); // a to b AND c to d
    setTabOrder(b, c); // a to b to c, but not c to d
</pre>
<p>If either <em>first</em> or <em>second</em> has a focus proxy, setTabOrder()
substitutes its/their proxies.
<p>See also  <a href="#f92b0f">setFocusPolicy</a>() and <a href="#cddadb">setFocusProxy</a>().
<p>Examples:
 <a href="customlayout-main-cpp.html#QWidget::setTabOrder">customlayout/main.cpp</a>
<h3 class="fn">void<a name="b37820"></a>QWidget::setUpdatesEnabled(boolenable) <code>[virtualslot]</code></h3>
<p>Enables widget updates if <em>enable</em> is TRUE, or disables widget updates
if <em>enable</em> is FALSE.
<p>Calling <a href="#a66a88">update</a>() and <a href="#7569b1">repaint</a>() has no effect if updates are disabled.
Paint events from the window system are processed normally even if
updates are disabled.
<p>This function is normally used to disable updates for a short period of
time, for instance to avoid screen flicker during large changes.
<p>Example:
<pre>    setUpdatesEnabled( FALSE );
    bigVisualChanges();
    setUpdatesEnabled( TRUE );
    repaint();
</pre>
<p>See also  <a href="#7af9d5">isUpdatesEnabled</a>(), <a href="#a66a88">update</a>(), <a href="#7569b1">repaint</a>() and <a href="#e3d821">paintEvent</a>().
<p>Reimplemented in <a href="qheader.html#ceb447">QHeader</a>.
<h3 class="fn">void<a name="9dd055"></a>QWidget::setWFlags(WFlagsf) <code>[virtualprotected]</code></h3>
<p>Sets the widget flags <em>f.</em>
<p>Widget flags are a combination of <a href="qt.html#WidgetFlags">Qt::WidgetFlags</a>.
<p>See also  <a href="#be9b50">testWFlags</a>(), <a href="#825ef3">getWFlags</a>() and <a href="#ef7827">clearWFlags</a>().
<h3 class="fn">void<a name="200ee5"></a>QWidget::show() <code>[virtualslot]</code></h3>
<p>Shows the widget and its child widgets.
<p>If its size or position has changed, Qt guarantees that a widget gets
move and resize events just before the widget is shown.
<p>You almost never have to reimplement this function. If you need to
change some settings before a widget is shown, use <a href="#542dc0">showEvent</a>()
instead. If you need to do some delayed initialization use <a href="#c14a09">polish</a>().
<p>See also  <a href="#542dc0">showEvent</a>(), <a href="#410481">hide</a>(), <a href="#c10123">showMinimized</a>(), <a href="#b6e000">showMaximized</a>(), <a href="#8a8f06">showNormal</a>(), <a href="#4d2aa7">isVisible</a>() and <a href="#c14a09">polish</a>().
<p>Examples:
 <a href="showimg-main-cpp.html#show">showimg/main.cpp</a>
 <a href="rangecontrols-main-cpp.html#show">rangecontrols/main.cpp</a>
 <a href="validator-main-cpp.html#show">validator/main.cpp</a>
 <a href="listviews-main-cpp.html#show">listviews/main.cpp</a>
 <a href="aclock-main-cpp.html#show">aclock/main.cpp</a>
 <a href="checklists-main-cpp.html#show">checklists/main.cpp</a>
 <a href="drawlines-connect-cpp.html#show">drawlines/connect.cpp</a>
 <a href="dclock-main-cpp.html#show">dclock/main.cpp</a>
 <a href="xform-xform-cpp.html#show">xform/xform.cpp</a>
 <a href="cursor-cursor-cpp.html#show">cursor/cursor.cpp</a>
 <a href="layout-layout-cpp.html#show">layout/layout.cpp</a>
 <a href="tetrix-tetrix-cpp.html#show">tetrix/tetrix.cpp</a>
 <a href="buttongroups-main-cpp.html#show">buttongroups/main.cpp</a>
 <a href="life-main-cpp.html#show">life/main.cpp</a>
 <a href="i18n-main-cpp.html#show">i18n/main.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#show">drawdemo/drawdemo.cpp</a>
 <a href="lineedits-main-cpp.html#show">lineedits/main.cpp</a>
 <a href="popup-popup-cpp.html#show">popup/popup.cpp</a>
 <a href="listbox-main-cpp.html#show">listbox/main.cpp</a>
 <a href="menu-menu-cpp.html#show">menu/menu.cpp</a>
 <a href="progress-progress-cpp.html#show">progress/progress.cpp</a>
 <a href="qmag-qmag-cpp.html#show">qmag/qmag.cpp</a>
 <a href="splitter-splitter-cpp.html#show">splitter/splitter.cpp</a>
 <a href="progressbar-main-cpp.html#show">progressbar/main.cpp</a>
 <a href="tooltip-main-cpp.html#show">tooltip/main.cpp</a>
 <a href="richtext-main-cpp.html#show">richtext/main.cpp</a>
 <a href="qwerty-main-cpp.html#show">qwerty/main.cpp</a>
 <a href="forever-forever-cpp.html#show">forever/forever.cpp</a>
 <a href="rot13-rot13-cpp.html#show">rot13/rot13.cpp</a>
 <a href="xml-tagreader-with-features-tagreader-cpp.html#show">xml/tagreader-with-features/tagreader.cpp</a>
 <a href="scrollview-scrollview-cpp.html#show">scrollview/scrollview.cpp</a>
 <a href="movies-main-cpp.html#show">movies/main.cpp</a>
 <a href="picture-picture-cpp.html#show">picture/picture.cpp</a>
 <a href="hello-main-cpp.html#show">hello/main.cpp</a>
 <a href="listboxcombo-main-cpp.html#show">listboxcombo/main.cpp</a>
 <a href="biff-main-cpp.html#show">biff/main.cpp</a>
 <a href="tictac-main-cpp.html#show">tictac/main.cpp</a>
 <a href="customlayout-main-cpp.html#show">customlayout/main.cpp</a>
<p>Reimplemented in <a href="qtoolbar.html#63ffb3">QToolBar</a>, <a href="qsemimodal.html#ad1549">QSemiModal</a>, <a href="qprogressbar.html#d35c1b">QProgressBar</a>, <a href="qwidgetstack.html#657e43">QWidgetStack</a>, <a href="qtabbar.html#7cf229">QTabBar</a>, <a href="qpopupmenu.html#50a0ef">QPopupMenu</a>, <a href="qtableview.html#9789c1">QTableView</a>, <a href="qdialog.html#bfe29c">QDialog</a>, <a href="qlistview.html#a21cde">QListView</a>, <a href="qmenubar.html#572327">QMenuBar</a>, <a href="qmainwindow.html#eb53e3">QMainWindow</a>, <a href="qscrollview.html#45ec27">QScrollView</a>, <a href="qtabdialog.html#46b852">QTabDialog</a> and <a href="qwizard.html#5a4c78">QWizard</a>.
<h3 class="fn">void<a name="542dc0"></a>QWidget::showEvent(<a href="qshowevent.html">QShowEvent</a>*) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
widget show events.
<p>Non-spontaneous show events are sent to widgets right before they are
shown. Spontaneous show events of toplevel widgets are delivered
afterwards, naturally.
<p>See also  <a href="#6ff658">event</a>() and <a href="qshowevent.html">QShowEvent</a>.
<p>Reimplemented in <a href="qtable.html#b916da">QTable</a>, <a href="qprogressdialog.html#618c04">QProgressDialog</a>, <a href="qheader.html#0b45ec">QHeader</a>, <a href="qtextbrowser.html#e33c57">QTextBrowser</a>, <a href="qworkspace.html#296c1a">QWorkspace</a>, <a href="qlistview.html#678e3d">QListView</a>, <a href="qtabwidget.html#aa4593">QTabWidget</a>, <a href="qlistbox.html#ec89a6">QListBox</a> and <a href="qtextview.html#6e56d6">QTextView</a>.
<h3 class="fn">void<a name="1ac501"></a>QWidget::showFullScreen() <code>[slot]</code></h3>
<p>Shows the widget in full-screen mode.
<p>Calling this function has no effect for other than top-level
widgets.
<p>To return from full-screen mode, call <a href="#8a8f06">showNormal</a>().
<p>Full-screen mode works fine under Windows, but has certain problems
under X.  These problems are due to limitations of the ICCCM
protocol that specifies the communication between X11 clients and
the window manager.  ICCCM simply does not know the concept of
non-decorated full-screen windows. Therefore, the best we can do is
to request a borderless window and place and resize it to fill the
entire screen. Depending on the window manager, this may or may not
work. The borderless window is requested using MOTIF hints, which
are at least partially supported by virtually all modern window
managers.
<p>An alternative would be to bypass the window manager at all and to
create a window with the WX11BypassWM flag. This has other severe
problems, though, like totally broken keyboard focus and very
strange effects on desktop changes or when the user raises other
windows.
<p>Future window managers that follow modern post-ICCCM specifications
may support full-screen mode properly.
<p>See also  <a href="#8a8f06">showNormal</a>(), <a href="#b6e000">showMaximized</a>(), <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#4d2aa7">isVisible</a>().
<h3 class="fn">void<a name="b6e000"></a>QWidget::showMaximized() <code>[virtualslot]</code></h3>
<p>Shows the widget maximized.
<p>Calling this function has no effect for other than <a href="#17338a">top-level widgets</a>.
<p>On X11, this function may not work properly with certain window
managers. See the <a href="geometry.html">Window Geometry
documentation</a> for details on why.
<p>See also  <a href="#8a8f06">showNormal</a>(), <a href="#c10123">showMinimized</a>(), <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#4d2aa7">isVisible</a>().
<p>Examples:
 <a href="helpviewer-main-cpp.html#showMaximized">helpviewer/main.cpp</a>
 <a href="scribble-main-cpp.html#showMaximized">scribble/main.cpp</a>
 <a href="qwerty-main-cpp.html#showMaximized">qwerty/main.cpp</a>
<h3 class="fn">void<a name="c10123"></a>QWidget::showMinimized() <code>[virtualslot]</code></h3>
<p>Shows the widget minimized, as an icon.
<p>Calling this function has no effect for other than <a href="#17338a">top-level widgets</a>.
<p>See also  <a href="#8a8f06">showNormal</a>(), <a href="#b6e000">showMaximized</a>(), <a href="#200ee5">show</a>(), <a href="#410481">hide</a>(), <a href="#4d2aa7">isVisible</a>() and <a href="#99b34b">isMinimized</a>().
<h3 class="fn">void<a name="8a8f06"></a>QWidget::showNormal() <code>[virtualslot]</code></h3>
<p>Restores the widget after it has been maximized or minimized.
<p>Calling this function has no effect for other than <a href="#17338a">top-level widgets</a>.
<p>See also  <a href="#c10123">showMinimized</a>(), <a href="#b6e000">showMaximized</a>(), <a href="#200ee5">show</a>(), <a href="#410481">hide</a>() and <a href="#4d2aa7">isVisible</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="50b75e"></a>QWidget::size()const</h3>
<p>Returns the size of the widget, excluding the window frame.
<p>See also  <a href="#e515c8">geometry</a>(), <a href="#2edab1">width</a>() and <a href="#e3c588">height</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="4511d1"></a>QWidget::sizeHint()const <code>[virtual]</code></h3>
<p>Returns a recommended size for the widget, or an invalid size if
no size is recommended.
<p>The default implementation returns an invalid size if there is no layout
for this widget, the layout's preferred size otherwise.
<p>See also  <a href="qsize.html#7336d9">QSize::isValid</a>(), <a href="#553e08">minimumSizeHint</a>(), <a href="#23726d">sizePolicy</a>(), <a href="#c0b5fb">setMinimumSize</a>() and <a href="#5f7c35">updateGeometry</a>().
<p>Reimplemented in <a href="qtable.html#c688ed">QTable</a>, <a href="qmenubar.html#62f3bb">QMenuBar</a>, <a href="qsizegrip.html#12d816">QSizeGrip</a>, <a href="qhbox.html#975d84">QHBox</a>, <a href="qradiobutton.html#69cd2a">QRadioButton</a>, <a href="qpopupmenu.html#934139">QPopupMenu</a>, <a href="qgroupbox.html#d7a142">QGroupBox</a>, <a href="qtoolbutton.html#4aebd5">QToolButton</a>, <a href="qcheckbox.html#6a1396">QCheckBox</a>, <a href="qwidgetstack.html#e499fd">QWidgetStack</a>, <a href="qtabbar.html#735cb5">QTabBar</a>, <a href="qgrid.html#bc77a9">QGrid</a>, <a href="qlistbox.html#5a33a9">QListBox</a>, <a href="qscrollview.html#a1d9a6">QScrollView</a>, <a href="qdial.html#585d6d">QDial</a>, <a href="qlabel.html#f40fcc">QLabel</a>, <a href="qtabwidget.html#1eea21">QTabWidget</a>, <a href="qslider.html#76e58f">QSlider</a>, <a href="qlineedit.html#820576">QLineEdit</a>, <a href="qlcdnumber.html#4c2c33">QLCDNumber</a>, <a href="qsplitter.html#bbe7f8">QSplitter</a>, <a href="qworkspace.html#c81fde">QWorkspace</a>, <a href="qpushbutton.html#53cdcb">QPushButton</a>, <a href="qspinbox.html#ffd3ee">QSpinBox</a>, <a href="qheader.html#225d11">QHeader</a>, <a href="qiconview.html#157488">QIconView</a>, <a href="qscrollbar.html#364175">QScrollBar</a>, <a href="qprogressdialog.html#e825e9">QProgressDialog</a>, <a href="qcanvasview.html#81579f">QCanvasView</a>, <a href="qcombobox.html#dd19df">QComboBox</a>, <a href="qlistview.html#4c21f2">QListView</a>, <a href="qprogressbar.html#507616">QProgressBar</a>, <a href="qframe.html#905576">QFrame</a>, <a href="qmainwindow.html#ef581c">QMainWindow</a>, <a href="qdialog.html#864e60">QDialog</a> and <a href="qmultilineedit.html#3f22f6">QMultiLineEdit</a>.
<h3 class="fn"><a href="qsize.html">QSize</a><a name="12fe89"></a>QWidget::sizeIncrement()const</h3>
<p>Returns the widget size increment.
<p>See also  <a href="#16748e">setSizeIncrement</a>(), <a href="#b24d94">minimumSize</a>() and <a href="#fe9f6b">maximumSize</a>().
<h3 class="fn"><a href="qsizepolicy.html">QSizePolicy</a><a name="23726d"></a>QWidget::sizePolicy()const <code>[virtual]</code></h3>
<p>Returns the default layout behaviour of this widget.
<p>If there is a <a href="qlayout.html">QLayout</a> that manages this widget's children, the size
policy specified by that layout is used. If there is no such
QLayout, the result of this function is used.
<p>See also  <a href="#9230b0">setSizePolicy</a>(), <a href="#4511d1">sizeHint</a>(), <a href="qlayout.html">QLayout</a>, <a href="qsizepolicy.html">QSizePolicy</a> and <a href="#5f7c35">updateGeometry</a>().
<p>Reimplemented in <a href="qtoolbutton.html#2b363a">QToolButton</a>, <a href="qlineedit.html#dfeeb1">QLineEdit</a>, <a href="qframe.html#42d709">QFrame</a>, <a href="qlcdnumber.html#952385">QLCDNumber</a>, <a href="qsizegrip.html#e156ec">QSizeGrip</a>, <a href="qsplitter.html#c4be56">QSplitter</a>, <a href="qradiobutton.html#1183af">QRadioButton</a>, <a href="qpushbutton.html#cb4f7a">QPushButton</a>, <a href="qworkspace.html#4f113d">QWorkspace</a>, <a href="qtabbar.html#d9f8d3">QTabBar</a>, <a href="qheader.html#14be66">QHeader</a>, <a href="qslider.html#ab8a04">QSlider</a>, <a href="qscrollview.html#31f6fc">QScrollView</a>, <a href="qiconview.html#9a6404">QIconView</a>, <a href="qtabwidget.html#4cce2c">QTabWidget</a>, <a href="qmultilineedit.html#88c28d">QMultiLineEdit</a>, <a href="qcheckbox.html#d27352">QCheckBox</a>, <a href="qscrollbar.html#32b2d6">QScrollBar</a>, <a href="qlabel.html#00bbd8">QLabel</a>, <a href="qspinbox.html#3dd6ad">QSpinBox</a> and <a href="qprogressbar.html#9165fc">QProgressBar</a>.
<h3 class="fn">void<a name="e1aab1"></a>QWidget::stackUnder(QWidget*w) <code>[slot]</code></h3>
<p>Places the widget under <em>w</em> in the parent widget's stack.
<p>To make this work, the widget itself and <em>w</em> have to be siblings.
<p>See also  <a href="#4c1b49">raise</a>() and <a href="#afe0aa">lower</a>().
<h3 class="fn"><a href="qstyle.html">QStyle</a>&amp;<a name="027381"></a>QWidget::style()const</h3>
<p>Returns the GUI style for this widget
<p>See also  <a href="#287f79">QWidget::setStyle</a>(), <a href="qapplication.html#e52522">QApplication::setStyle</a>() and <a href="qapplication.html#1bada8">QApplication::style</a>().
<h3 class="fn">void<a name="5e2e23"></a>QWidget::styleChange(<a href="qstyle.html">QStyle</a>&amp;oldStyle) <code>[virtualprotected]</code></h3>
<p>This virtual function is called when the style of the widgets.
changes.<em>oldStyle</em> is the
previous GUI style; you can get the new style from <a href="#027381">style</a>().
<p>Reimplement this function if your widget needs to know when its GUI
style changes.  You will almost certainly need to update the widget
using <a href="#a66a88">update</a>().
<p>The default implementation updates the widget including its
geometry.
<p>See also  <a href="qapplication.html#e52522">QApplication::setStyle</a>(), <a href="#027381">style</a>(), <a href="#a66a88">update</a>() and <a href="#5f7c35">updateGeometry</a>().
<p>Reimplemented in <a href="qscrollview.html#5d82c4">QScrollView</a>, <a href="qpopupmenu.html#2ac016">QPopupMenu</a>, <a href="qslider.html#40a71b">QSlider</a>, <a href="qtabwidget.html#d2da51">QTabWidget</a>, <a href="qprogressbar.html#af690e">QProgressBar</a>, <a href="qspinbox.html#09dd94">QSpinBox</a>, <a href="qlistview.html#fc63a6">QListView</a>, <a href="qiconview.html#26f923">QIconView</a>, <a href="qmainwindow.html#325b45">QMainWindow</a>, <a href="qtabdialog.html#f110be">QTabDialog</a>, <a href="qtoolbar.html#1675f6">QToolBar</a>, <a href="qcombobox.html#150d68">QComboBox</a>, <a href="qprogressdialog.html#f9ff0a">QProgressDialog</a>, <a href="qsplitter.html#a31a72">QSplitter</a>, <a href="qscrollbar.html#8c09a1">QScrollBar</a>, <a href="qtabbar.html#6a2bd4">QTabBar</a> and <a href="qmenubar.html#9d6d66">QMenuBar</a>.
<h3 class="fn">bool<a name="be9b50"></a>QWidget::testWFlags(WFlagsf)const</h3>
<p>Returns TRUE if any of the widget flags in <em>f</em> are set.
<p>Widget flags are a combination of <a href="qt.html#WidgetFlags">Qt::WidgetFlags</a>.
<p>See also  <a href="#825ef3">getWFlags</a>(), <a href="#9dd055">setWFlags</a>() and <a href="#ef7827">clearWFlags</a>().
<h3 class="fn">QWidget*<a name="aa50f8"></a>QWidget::topLevelWidget()const</h3>
<p>Returns the top-level widget for this widget, i.e. the next ancestor
widget that has a window-system frame (or at least may have one).
<p>If the widget is a top-level, the widget itself is returned.
<p>Typical usage is changing the window caption:
<p><pre>    aWidget-&gt;topLevelWidget()-&gt;setCaption( "New Caption" );
</pre>
<p>See also  <a href="#17338a">isTopLevel</a>().
<h3 class="fn">void<a name="215c33"></a>QWidget::unsetCursor() <code>[virtual]</code></h3>
<p>Unset the cursor for this widget. The widget will use the cursor of
its parent from now on.
<p>This functions does nothing for top-level windows.
<p>See also  <a href="#5fad9d">cursor</a>(), <a href="#9b6e22">setCursor</a>() and <a href="qapplication.html#07e1f1">QApplication::setOverrideCursor</a>().
<h3 class="fn">void<a name="27a4a2"></a>QWidget::unsetFont()</h3>
<p>Unsets the font for this widget. The widget will use its natural
default font from now on.  This is either a special font for the
widget class, the parent's font or - if this widget is a toplevel
widget - the default application font.
<p>See also  <a href="#090d60">setFont</a>() and <a href="#aa1cc8">ownFont</a>().
<h3 class="fn">void<a name="40fd45"></a>QWidget::unsetPalette()</h3>
<p>Unsets the palette for this widget. The widget will use its natural
default palette from now on.
<p>See also  <a href="#d7e4b9">setPalette</a>() and <a href="#d656ac">ownPalette</a>().
<h3 class="fn">void<a name="f3f721"></a>QWidget::update() <code>[slot]</code></h3>
<p>Updates the widget unless updates are disabled or the widget is hidden.
<p>Updating the widget will erase the widget contents and generate an
appropriate paint event for the invalidated region. The paint event
is processed after the program has returned to the main event loop.
Calling <a href="#a66a88">update</a>() many times in a row will generate a single paint
event.
<p>If the widgets sets the WRepaintNoErase flag, update() will not erase
its contents.
<p>See also  <a href="#7569b1">repaint</a>(), <a href="#e3d821">paintEvent</a>(), <a href="#b37820">setUpdatesEnabled</a>(), <a href="#10cf79">erase</a>() and <a href="#9dd055">setWFlags</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#update">grapher/grapher.cpp</a>
 <a href="scrollview-scrollview-cpp.html#update">scrollview/scrollview.cpp</a>
<h3 class="fn">void<a name="a66a88"></a>QWidget::update(intx, inty, intw, inth) <code>[slot]</code></h3>
<p>Updates a rectangle (<em>x, y, w, h)</em> inside the widget
unless updates are disabled or the widget is hidden.
<p>Updating the widget erases the widget area <em>(x,y,w,h)</em> and generate
an appropriate paint event for the invalidated region. The paint
event is processed after the program has returned to the main event
loop.  Calling update() many times in a row will generate a single
paint event.
<p>If <em>w</em> is negative, it is replaced with <code><a href="#2edab1">width</a>() - x</code>.
If <em>h</em> is negative, it is replaced width <code><a href="#e3c588">height</a>() - y</code>.
<p>If the widgets sets the WRepaintNoErase flag, update() will not erase
its contents.
<p>See also  <a href="#7569b1">repaint</a>(), <a href="#e3d821">paintEvent</a>(), <a href="#b37820">setUpdatesEnabled</a>() and <a href="#10cf79">erase</a>().
<p>Examples:
 <a href="drawlines-connect-cpp.html#update">drawlines/connect.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#update">drawdemo/drawdemo.cpp</a>
 <a href="desktop-desktop-cpp.html#update">desktop/desktop.cpp</a>
 <a href="picture-picture-cpp.html#update">picture/picture.cpp</a>
<h3 class="fn">void<a name="3e43cd"></a>QWidget::update(const<a href="qrect.html">QRect</a>&amp;r) <code>[slot]</code></h3>
<p>This is an overloaded member function, provided for convenience.  It differs from the above function only in what argument(s) it accepts.
<h3 class="fn">void<a name="5f7c35"></a>QWidget::updateGeometry()</h3>
<p>Notifies the layout system that this widget has changed and may need
to change geometry.
<p>Call this function if the <a href="#4511d1">sizeHint</a>() or <a href="#23726d">sizePolicy</a>() have changed.
<p>For explicitly hidden widgets, updateGeometry() is a no-op. The
layout system will be notified as soon as the widget is shown.
<h3 class="fn">void<a name="b8a07f"></a>QWidget::updateMask() <code>[virtualprotected]</code></h3>
<p>This function can be reimplemented in a subclass to support
transparent widgets. It is supposed to be called whenever a widget
changes state in a way that the shape mask has to be recalculated.
<p>See also  <a href="#efa8f9">setAutoMask</a>(), updateMask(), <a href="#3aa0a1">setMask</a>() and <a href="#0b7ae4">clearMask</a>().
<p>Reimplemented in <a href="qpushbutton.html#22ade4">QPushButton</a>, <a href="qgroupbox.html#ee7c67">QGroupBox</a>, <a href="qframe.html#e77612">QFrame</a>, <a href="qtabbar.html#6c9c68">QTabBar</a>, <a href="qcheckbox.html#b02b2f">QCheckBox</a>, <a href="qslider.html#867b6f">QSlider</a>, <a href="qradiobutton.html#65ba96">QRadioButton</a>, <a href="qcombobox.html#eebc58">QComboBox</a> and <a href="qtabwidget.html#686be6">QTabWidget</a>.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="a93076"></a>QWidget::visibleRect()const</h3>
<p>Returns the currently visible rectangle of the widget. This function
is in particular useful to optimize immediate repainting of a
widget. Typical usage is
<pre>  repaint( w-&gt;visibleRect() );
</pre>
<p>or
<pre>  repaint( w-&gt;visibleRect(), FALSE );
</pre>
<p>If nothing is visible, the rectangle returned is empty.
<h3 class="fn">void<a name="6f6c80"></a>QWidget::wheelEvent(<a href="qwheelevent.html">QWheelEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>This event handler can be reimplemented in a subclass to receive
wheel events for the widget.
<p>If you reimplement this handler, it is very important that you <a href="qwheelevent.html">ignore()</a> the event if you do not handle it, so
that the widget's parent can interpret it.
<p>The default implementation ignores the event.
<p>See also  <a href="qwheelevent.html#e00588">QWheelEvent::ignore</a>(), <a href="qwheelevent.html#33c440">QWheelEvent::accept</a>(), <a href="#6ff658">event</a>() and <a href="qwheelevent.html">QWheelEvent</a>.
<p>Reimplemented in <a href="qslider.html#5eae2c">QSlider</a>, <a href="qscrollbar.html#d7fe47">QScrollBar</a>, <a href="qspinbox.html#1c7d68">QSpinBox</a>, <a href="qscrollview.html#8244c7">QScrollView</a>, <a href="qmultilineedit.html#6f5398">QMultiLineEdit</a> and <a href="qdial.html#b2bac3">QDial</a>.
<h3 class="fn">int<a name="2edab1"></a>QWidget::width()const</h3>
<p>Returns the width of the widget, excluding the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#e515c8">geometry</a>(), <a href="#e3c588">height</a>() and <a href="#50b75e">size</a>().
<p>Examples:
 <a href="grapher-grapher-cpp.html#width">grapher/grapher.cpp</a>
 <a href="xform-xform-cpp.html#width">xform/xform.cpp</a>
 <a href="drawdemo-drawdemo-cpp.html#width">drawdemo/drawdemo.cpp</a>
 <a href="menu-menu-cpp.html#width">menu/menu.cpp</a>
 <a href="qmag-qmag-cpp.html#width">qmag/qmag.cpp</a>
<h3 class="fn">WId<a name="653917"></a>QWidget::winId()const</h3>
<p>Returns the window system identifier of the widget.
<p>Portable in principle, but if you use it you are probably about to do
something non-portable. Be careful.
<p>See also  <a href="#000061">find</a>().
<h3 class="fn">int<a name="6f017a"></a>QWidget::x()const</h3>
<p>Returns the x coordinate of the widget, relative to its parent
widget and including the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#ca6d0d">frameGeometry</a>(), <a href="#800909">y</a>() and <a href="#2691c9">pos</a>().
<h3 class="fn">int<a name="800909"></a>QWidget::y()const</h3>
<p>Returns the y coordinate of the widget, relative to its parent
widget and including the window frame.
<p>See the <a href="geometry.html">Window Geometry documentation</a>
for an overview of geometry issues with top-level widgets.
<p>See also  <a href="#ca6d0d">frameGeometry</a>(), <a href="#6f017a">x</a>() and <a href="#2691c9">pos</a>().
<p>Examples:
 <a href="drawdemo-drawdemo-cpp.html#y">drawdemo/drawdemo.cpp</a>
<h3 class="fn">void<a name="f77ac4"></a>QWidget::clearWState(uint<a href="n.html">n</a>) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QWExtra*<a name="bd0ed7"></a>QWidget::extraData() <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">uint<a name="f9bc16"></a>QWidget::getWState()const <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="cb0019"></a>QWidget::setCRect(const<a href="qrect.html">QRect</a>&amp;r) <code>[virtualprotected]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="fd06a0"></a>QWidget::setFRect(const<a href="qrect.html">QRect</a>&amp;r) <code>[virtualprotected]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="29967a"></a>QWidget::setWState(uint<a href="n.html">n</a>) <code>[virtualprotected]</code></h3>
<p>For internal use only.
<h3 class="fn">bool<a name="45d5fa"></a>QWidget::testWState(uint<a href="n.html">n</a>)const</h3>
<p>For internal use only.
<h3 class="fn">QTLWExtra*<a name="6de194"></a>QWidget::topData() <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QWidgetMapper*<a name="53ffa9"></a>QWidget::wmapper() <code>[static]</code></h3>
<p>For internal use only.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>