summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqstyle.3qt
blob: 96174254c393dba0237966afa6930c385ae156e0 (plain)
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
'\" t
.TH QStyle 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA.  All rights reserved.  See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QStyle \- The look and feel of a GUI
.SH SYNOPSIS
\fC#include <ntqstyle.h>\fR
.PP
Inherits TQObject.
.PP
Inherited by QCommonStyle.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQStyle\fR ()"
.br
.ti -1c
.BI "virtual \fB~QStyle\fR ()"
.br
.ti -1c
.BI "virtual void \fBpolish\fR ( TQWidget * )"
.br
.ti -1c
.BI "virtual void \fBunPolish\fR ( TQWidget * )"
.br
.ti -1c
.BI "virtual void \fBpolish\fR ( QApplication * )"
.br
.ti -1c
.BI "virtual void \fBunPolish\fR ( QApplication * )"
.br
.ti -1c
.BI "virtual void \fBpolish\fR ( QPalette & )"
.br
.ti -1c
.BI "virtual void \fBpolishPopupMenu\fR ( QPopupMenu * ) = 0"
.br
.ti -1c
.BI "virtual QRect \fBitemRect\fR ( QPainter * p, const QRect & r, int flags, bool enabled, const QPixmap * pixmap, const TQString & text, int len = -1 ) const"
.br
.ti -1c
.BI "virtual void \fBdrawItem\fR ( QPainter * p, const QRect & r, int flags, const QColorGroup & g, bool enabled, const QPixmap * pixmap, const TQString & text, int len = -1, const TQColor * penColor = 0 ) const"
.br
.ti -1c
.BI "enum \fBPrimitiveElement\fR { PE_ButtonCommand, PE_ButtonDefault, PE_ButtonBevel, PE_ButtonTool, PE_ButtonDropDown, PE_FocusRect, PE_ArrowUp, PE_ArrowDown, PE_ArrowRight, PE_ArrowLeft, PE_SpinWidgetUp, PE_SpinWidgetDown, PE_SpinWidgetPlus, PE_SpinWidgetMinus, PE_Indicator, PE_IndicatorMask, PE_ExclusiveIndicator, PE_ExclusiveIndicatorMask, PE_DockWindowHandle, PE_DockWindowSeparator, PE_DockWindowResizeHandle, PE_Splitter, PE_Panel, PE_PanelPopup, PE_PanelMenuBar, PE_PanelDockWindow, PE_TabBarBase, PE_HeaderSection, PE_HeaderArrow, PE_StatusBarSection, PE_GroupBoxFrame, PE_Separator, PE_SizeGrip, PE_CheckMark, PE_ScrollBarAddLine, PE_ScrollBarSubLine, PE_ScrollBarAddPage, PE_ScrollBarSubPage, PE_ScrollBarSlider, PE_ScrollBarFirst, PE_ScrollBarLast, PE_ProgressBarChunk, PE_PanelLineEdit, PE_PanelTabWidget, PE_WindowFrame, PE_CheckListController, PE_CheckListIndicator, PE_CheckListExclusiveIndicator, PE_PanelGroupBox, PE_RubberBand, PE_CustomBase = 0xf000000 }"
.br
.ti -1c
.BI "enum \fBStyleFlags\fR { Style_Default = 0x00000000, Style_Enabled = 0x00000001, Style_Raised = 0x00000002, Style_Sunken = 0x00000004, Style_Off = 0x00000008, Style_NoChange = 0x00000010, Style_On = 0x00000020, Style_Down = 0x00000040, Style_Horizontal = 0x00000080, Style_HasFocus = 0x00000100, Style_Top = 0x00000200, Style_Bottom = 0x00000400, Style_FocusAtBorder = 0x00000800, Style_AutoRaise = 0x00001000, Style_MouseOver = 0x00002000, Style_Up = 0x00004000, Style_Selected = 0x00008000, Style_Active = 0x00010000, Style_ButtonDefault = 0x00020000 }"
.br
.ti -1c
.BI "virtual void \fBdrawPrimitive\fR ( PrimitiveElement pe, QPainter * p, const QRect & r, const QColorGroup & cg, SFlags flags = Style_Default, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "enum \fBControlElement\fR { CE_PushButton, CE_PushButtonLabel, CE_CheckBox, CE_CheckBoxLabel, CE_RadioButton, CE_RadioButtonLabel, CE_TabBarTab, CE_TabBarLabel, CE_ProgressBarGroove, CE_ProgressBarContents, CE_ProgressBarLabel, CE_PopupMenuItem, CE_MenuBarItem, CE_ToolButtonLabel, CE_MenuBarEmptyArea, CE_PopupMenuScroller, CE_DockWindowEmptyArea, CE_PopupMenuVerticalExtra, CE_PopupMenuHorizontalExtra, CE_ToolBoxTab, CE_HeaderLabel, CE_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual void \fBdrawControl\fR ( ControlElement element, QPainter * p, const TQWidget * widget, const QRect & r, const QColorGroup & cg, SFlags how = Style_Default, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "virtual void \fBdrawControlMask\fR ( ControlElement element, QPainter * p, const TQWidget * widget, const QRect & r, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "enum \fBSubRect\fR { SR_PushButtonContents, SR_PushButtonFocusRect, SR_CheckBoxIndicator, SR_CheckBoxContents, SR_CheckBoxFocusRect, SR_RadioButtonIndicator, SR_RadioButtonContents, SR_RadioButtonFocusRect, SR_ComboBoxFocusRect, SR_SliderFocusRect, SR_DockWindowHandleRect, SR_ProgressBarGroove, SR_ProgressBarContents, SR_ProgressBarLabel, SR_ToolButtonContents, SR_DialogButtonAccept, SR_DialogButtonReject, SR_DialogButtonApply, SR_DialogButtonHelp, SR_DialogButtonAll, SR_DialogButtonAbort, SR_DialogButtonIgnore, SR_DialogButtonRetry, SR_DialogButtonCustom, SR_ToolBoxTabContents, SR_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual QRect \fBsubRect\fR ( SubRect subrect, const TQWidget * widget ) const = 0"
.br
.ti -1c
.BI "enum \fBComplexControl\fR { CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider, CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "enum \fBSubControl\fR { SC_None = 0x00000000, SC_ScrollBarAddLine = 0x00000001, SC_ScrollBarSubLine = 0x00000002, SC_ScrollBarAddPage = 0x00000004, SC_ScrollBarSubPage = 0x00000008, SC_ScrollBarFirst = 0x00000010, SC_ScrollBarLast = 0x00000020, SC_ScrollBarSlider = 0x00000040, SC_ScrollBarGroove = 0x00000080, SC_SpinWidgetUp = 0x00000001, SC_SpinWidgetDown = 0x00000002, SC_SpinWidgetFrame = 0x00000004, SC_SpinWidgetEditField = 0x00000008, SC_SpinWidgetButtonField = 0x00000010, SC_ComboBoxFrame = 0x00000001, SC_ComboBoxEditField = 0x00000002, SC_ComboBoxArrow = 0x00000004, SC_ComboBoxListBoxPopup = 0x00000008, SC_SliderGroove = 0x00000001, SC_SliderHandle = 0x00000002, SC_SliderTickmarks = 0x00000004, SC_ToolButton = 0x00000001, SC_ToolButtonMenu = 0x00000002, SC_TitleBarLabel = 0x00000001, SC_TitleBarSysMenu = 0x00000002, SC_TitleBarMinButton = 0x00000004, SC_TitleBarMaxButton = 0x00000008, SC_TitleBarCloseButton = 0x00000010, SC_TitleBarNormalButton = 0x00000020, SC_TitleBarShadeButton = 0x00000040, SC_TitleBarUnshadeButton = 0x00000080, SC_ListView = 0x00000001, SC_ListViewBranch = 0x00000002, SC_ListViewExpand = 0x00000004, SC_All = 0xffffffff }"
.br
.ti -1c
.BI "virtual void \fBdrawComplexControl\fR ( ComplexControl control, QPainter * p, const TQWidget * widget, const QRect & r, const QColorGroup & cg, SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "virtual void \fBdrawComplexControlMask\fR ( ComplexControl control, QPainter * p, const TQWidget * widget, const QRect & r, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "virtual QRect \fBquerySubControlMetrics\fR ( ComplexControl control, const TQWidget * widget, SubControl subcontrol, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "virtual SubControl \fBquerySubControl\fR ( ComplexControl control, const TQWidget * widget, const QPoint & pos, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "enum \fBPixelMetric\fR { PM_ButtonMargin, PM_ButtonDefaultIndicator, PM_MenuButtonIndicator, PM_ButtonShiftHorizontal, PM_ButtonShiftVertical, PM_DefaultFrameWidth, PM_SpinBoxFrameWidth, PM_MaximumDragDistance, PM_ScrollBarExtent, PM_ScrollBarSliderMin, PM_SliderThickness, PM_SliderControlThickness, PM_SliderLength, PM_SliderTickmarkOffset, PM_SliderSpaceAvailable, PM_DockWindowSeparatorExtent, PM_DockWindowHandleExtent, PM_DockWindowFrameWidth, PM_MenuBarFrameWidth, PM_TabBarTabOverlap, PM_TabBarTabHSpace, PM_TabBarTabVSpace, PM_TabBarBaseHeight, PM_TabBarBaseOverlap, PM_ProgressBarChunkWidth, PM_SplitterWidth, PM_TitleBarHeight, PM_IndicatorWidth, PM_IndicatorHeight, PM_ExclusiveIndicatorWidth, PM_ExclusiveIndicatorHeight, PM_PopupMenuScrollerHeight, PM_CheckListButtonSize, PM_CheckListControllerSize, PM_PopupMenuFrameHorizontalExtra, PM_PopupMenuFrameVerticalExtra, PM_DialogButtonsSeparator, PM_DialogButtonsButtonWidth, PM_DialogButtonsButtonHeight, PM_MDIFrameWidth, PM_MDIMinimizedWidth, PM_HeaderMargin, PM_HeaderMarkSize, PM_HeaderGripMargin, PM_TabBarTabShiftHorizontal, PM_TabBarTabShiftVertical, PM_TabBarScrollButtonWidth, PM_MenuBarItemSpacing, PM_ToolBarItemSpacing, PM_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual int \fBpixelMetric\fR ( PixelMetric metric, const TQWidget * widget = 0 ) const = 0"
.br
.ti -1c
.BI "enum \fBContentsType\fR { CT_PushButton, CT_CheckBox, CT_RadioButton, CT_ToolButton, CT_ComboBox, CT_Splitter, CT_DockWindow, CT_ProgressBar, CT_PopupMenuItem, CT_TabBarTab, CT_Slider, CT_Header, CT_LineEdit, CT_MenuBar, CT_SpinBox, CT_SizeGrip, CT_TabWidget, CT_DialogButtons, CT_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual QSize \fBsizeFromContents\fR ( ContentsType contents, const TQWidget * widget, const QSize & contentsSize, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "enum \fBStyleHint\fR { SH_EtchDisabledText, SH_GUIStyle, SH_ScrollBar_BackgroundMode, SH_ScrollBar_MiddleClickAbsolutePosition, SH_ScrollBar_ScrollWhenPointerLeavesControl, SH_TabBar_SelectMouseType, SH_TabBar_Alignment, SH_Header_ArrowAlignment, SH_Slider_SnapToValue, SH_Slider_SloppyKeyEvents, SH_ProgressDialog_CenterCancelButton, SH_ProgressDialog_TextLabelAlignment, SH_PrintDialog_RightAlignButtons, SH_MainWindow_SpaceBelowMenuBar, SH_FontDialog_SelectAssociatedText, SH_PopupMenu_AllowActiveAndDisabled, SH_PopupMenu_SpaceActivatesItem, SH_PopupMenu_SubMenuPopupDelay, SH_ScrollView_FrameOnlyAroundContents, SH_MenuBar_AltKeyNavigation, SH_ComboBox_ListMouseTracking, SH_PopupMenu_MouseTracking, SH_MenuBar_MouseTracking, SH_ItemView_ChangeHighlightOnFocus, SH_Widget_ShareActivation, SH_Workspace_FillSpaceOnMaximize, SH_ComboBox_Popup, SH_TitleBar_NoBorder, SH_ScrollBar_StopMouseOverSlider, SH_BlinkCursorWhenTextSelected, SH_RichText_FullWidthSelection, SH_PopupMenu_Scrollable, SH_GroupBox_TextLabelVerticalAlignment, SH_GroupBox_TextLabelColor, SH_PopupMenu_SloppySubMenus, SH_Table_GridLineColor, SH_LineEdit_PasswordCharacter, SH_DialogButtons_DefaultButton, SH_ToolBox_SelectedPageTitleBold, SH_TabBar_PreferNoArrows, SH_ScrollBar_LeftClickAbsolutePosition, SH_ListViewExpand_SelectMouseType, SH_UnderlineAccelerator, SH_ToolButton_Uses3D, SH_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual int \fBstyleHint\fR ( StyleHint stylehint, const TQWidget * widget = 0, const QStyleOption & opt = QStyleOption::Default, QStyleHintReturn * returnData = 0 ) const = 0"
.br
.ti -1c
.BI "enum \fBStylePixmap\fR { SP_TitleBarMinButton, SP_TitleBarMaxButton, SP_TitleBarCloseButton, SP_TitleBarNormalButton, SP_TitleBarShadeButton, SP_TitleBarUnshadeButton, SP_DockWindowCloseButton, SP_MessageBoxInformation, SP_MessageBoxWarning, SP_MessageBoxCritical, SP_MessageBoxQuestion, SP_CustomBase = 0xf0000000 }"
.br
.ti -1c
.BI "virtual QPixmap \fBstylePixmap\fR ( StylePixmap stylepixmap, const TQWidget * widget = 0, const QStyleOption & opt = QStyleOption::Default ) const = 0"
.br
.ti -1c
.BI "int defaultFrameWidth () const  \fI(obsolete)\fR"
.br
.ti -1c
.BI "void tabbarMetrics ( const TQWidget * t, int & hf, int & vf, int & ov ) const  \fI(obsolete)\fR"
.br
.ti -1c
.BI "QSize scrollBarExtent () const  \fI(obsolete)\fR"
.br
.in -1c
.SS "Static Public Members"
.in +1c
.ti -1c
.BI "QRect \fBvisualRect\fR ( const QRect & logical, const TQWidget * w )"
.br
.ti -1c
.BI "QRect \fBvisualRect\fR ( const QRect & logical, const QRect & bounding )"
.br
.in -1c
.SH DESCRIPTION
The QStyle class specifies the look and feel of a GUI.
.PP
A large number of GUI elements are common to many widgets. The QStyle class allows the look of these elements to be modified across all widgets that use the QStyle functions. It also provides two feel options: Motif and Windows.
.PP
Although it is not possible to fully enumerate the look of graphical elements and the feel of widgets in a GUI, QStyle provides a considerable amount of control and customisability.
.PP
In TQt 1.x the look and feel option for widgets was specified by a single value: the GUIStyle. Starting with TQt 2.0, this notion was expanded to allow the look to be specified by virtual drawing functions.
.PP
Derived classes may reimplement some or all of the drawing functions to modify the look of all widgets that use those functions.
.PP
Languages written from right to left (such as Arabic and Hebrew) usually also mirror the whole layout of widgets. If you design a style, you should take special care when drawing asymmetric elements to make sure that they also look correct in a mirrored layout. You can start your application with \fC-reverse\fR to check the mirrored layout. Also notice, that for a reversed layout, the light usually comes from top right instead of top left.
.PP
The actual reverse layout is performed automatically when possible. However, for the sake of flexibility, the translation cannot be performed everywhere. The documentation for each function in the QStyle API states whether the function expects/returns logical or screen coordinates. Using logical coordinates (in ComplexControls, for example) provides great flexibility in controlling the look of a widget. Use visualRect() when necessary to translate logical coordinates into screen coordinates for drawing.
.PP
In TQt versions prior to 3.0, if you wanted a low level route into changing the appearance of a widget, you would reimplement polish(). With the new 3.0 style engine the recommended approach is to reimplement the draw functions, for example drawItem(), drawPrimitive(), drawControl(), drawControlMask(), drawComplexControl() and drawComplexControlMask(). Each of these functions is called with a range of parameters that provide information that you can use to determine how to draw them, e.g. style flags, rectangle, color group, etc.
.PP
For information on changing elements of an existing style or creating your own style see the Style overview.
.PP
Styles can also be created as plugins.
.PP
See also Widget Appearance and Style.
.SS "Member Type Documentation"
.SH "QStyle::ComplexControl"
This enum represents a ComplexControl. ComplexControls have different behaviour depending upon where the user clicks on them or which keys are pressed.
.TP
\fCQStyle::CC_SpinWidget\fR
.TP
\fCQStyle::CC_ComboBox\fR
.TP
\fCQStyle::CC_ScrollBar\fR
.TP
\fCQStyle::CC_Slider\fR
.TP
\fCQStyle::CC_ToolButton\fR
.TP
\fCQStyle::CC_TitleBar\fR
.TP
\fCQStyle::CC_ListView\fR
.TP
\fCQStyle::CC_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
See also SubControl and drawComplexControl().
.SH "QStyle::ContentsType"
This enum represents a ContentsType. It is used to calculate sizes for the contents of various widgets.
.TP
\fCQStyle::CT_PushButton\fR
.TP
\fCQStyle::CT_CheckBox\fR
.TP
\fCQStyle::CT_RadioButton\fR
.TP
\fCQStyle::CT_ToolButton\fR
.TP
\fCQStyle::CT_ComboBox\fR
.TP
\fCQStyle::CT_Splitter\fR
.TP
\fCQStyle::CT_DockWindow\fR
.TP
\fCQStyle::CT_ProgressBar\fR
.TP
\fCQStyle::CT_PopupMenuItem\fR
.TP
\fCQStyle::CT_TabBarTab\fR
.TP
\fCQStyle::CT_Slider\fR
.TP
\fCQStyle::CT_Header\fR
.TP
\fCQStyle::CT_LineEdit\fR
.TP
\fCQStyle::CT_MenuBar\fR
.TP
\fCQStyle::CT_SpinBox\fR
.TP
\fCQStyle::CT_SizeGrip\fR
.TP
\fCQStyle::CT_TabWidget\fR
.TP
\fCQStyle::CT_DialogButtons\fR
.TP
\fCQStyle::CT_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Custom values must be greater than this value.
.PP
See also sizeFromContents().
.SH "QStyle::ControlElement"
This enum represents a ControlElement. A ControlElement is part of a widget that performs some action or displays information to the user.
.TP
\fCQStyle::CE_PushButton\fR - the bevel and default indicator of a QPushButton.
.TP
\fCQStyle::CE_PushButtonLabel\fR - the label (iconset with text or pixmap) of a QPushButton.
.TP
\fCQStyle::CE_CheckBox\fR - the indicator of a QCheckBox.
.TP
\fCQStyle::CE_CheckBoxLabel\fR - the label (text or pixmap) of a QCheckBox.
.TP
\fCQStyle::CE_RadioButton\fR - the indicator of a QRadioButton.
.TP
\fCQStyle::CE_RadioButtonLabel\fR - the label (text or pixmap) of a QRadioButton.
.TP
\fCQStyle::CE_TabBarTab\fR - the tab within a QTabBar (a QTab).
.TP
\fCQStyle::CE_TabBarLabel\fR - the label within a QTab.
.TP
\fCQStyle::CE_ProgressBarGroove\fR - the groove where the progress indicator is drawn in a QProgressBar.
.TP
\fCQStyle::CE_ProgressBarContents\fR - the progress indicator of a QProgressBar.
.TP
\fCQStyle::CE_ProgressBarLabel\fR - the text label of a QProgressBar.
.TP
\fCQStyle::CE_PopupMenuItem\fR - a menu item in a QPopupMenu.
.TP
\fCQStyle::CE_PopupMenuScroller\fR - scrolling areas in a popumenu when the style supports scrolling.
.TP
\fCQStyle::CE_PopupMenuHorizontalExtra\fR - extra frame area set aside with PM_PopupMenuFrameHorizontalExtra
.TP
\fCQStyle::CE_PopupMenuVerticalExtra\fR - extra frame area set aside with PM_PopupMenuFrameVerticalExtra
.TP
\fCQStyle::CE_MenuBarItem\fR - a menu item in a QMenuBar.
.TP
\fCQStyle::CE_ToolButtonLabel\fR - a tool button's label.
.TP
\fCQStyle::CE_MenuBarEmptyArea\fR - the empty area of a QMenuBar.
.TP
\fCQStyle::CE_DockWindowEmptyArea\fR - the empty area of a QDockWindow.
.TP
\fCQStyle::CE_ToolBoxTab\fR - the toolbox's tab area
.TP
\fCQStyle::CE_HeaderLabel\fR - the header's label
.TP
\fCQStyle::CE_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
See also drawControl().
.SH "QStyle::PixelMetric"
This enum represents a PixelMetric. A PixelMetric is a style dependent size represented as a single pixel value.
.TP
\fCQStyle::PM_ButtonMargin\fR - amount of whitespace between pushbutton labels and the frame.
.TP
\fCQStyle::PM_ButtonDefaultIndicator\fR - width of the default-button indicator frame.
.TP
\fCQStyle::PM_MenuButtonIndicator\fR - width of the menu button indicator proportional to the widget height.
.TP
\fCQStyle::PM_ButtonShiftHorizontal\fR - horizontal contents shift of a button when the button is down.
.TP
\fCQStyle::PM_ButtonShiftVertical\fR - vertical contents shift of a button when the button is down.
.TP
\fCQStyle::PM_DefaultFrameWidth\fR - default frame width, usually 2.
.TP
\fCQStyle::PM_SpinBoxFrameWidth\fR - frame width of a spin box.
.TP
\fCQStyle::PM_MDIFrameWidth\fR - frame width of an MDI window.
.TP
\fCQStyle::PM_MDIMinimizedWidth\fR - width of a minimized MSI window.
.TP
\fCQStyle::PM_MaximumDragDistance\fR - Some feels require the scrollbar or other sliders to jump back to the original position when the mouse pointer is too far away while dragging. A value of -1 disables this behavior.
.TP
\fCQStyle::PM_ScrollBarExtent\fR - width of a vertical scrollbar and the height of a horizontal scrollbar.
.TP
\fCQStyle::PM_ScrollBarSliderMin\fR - the minimum height of a vertical scrollbar's slider and the minimum width of a horiztonal scrollbar slider.
.TP
\fCQStyle::PM_SliderThickness\fR - total slider thickness.
.TP
\fCQStyle::PM_SliderControlThickness\fR - thickness of the slider handle.
.TP
\fCQStyle::PM_SliderLength\fR - length of the slider.
.TP
\fCQStyle::PM_SliderTickmarkOffset\fR - the offset between the tickmarks and the slider.
.TP
\fCQStyle::PM_SliderSpaceAvailable\fR - the available space for the slider to move.
.TP
\fCQStyle::PM_DockWindowSeparatorExtent\fR - width of a separator in a horiztonal dock window and the height of a separator in a vertical dock window.
.TP
\fCQStyle::PM_DockWindowHandleExtent\fR - width of the handle in a horizontal dock window and the height of the handle in a vertical dock window.
.TP
\fCQStyle::PM_DockWindowFrameWidth\fR - frame width of a dock window.
.TP
\fCQStyle::PM_MenuBarFrameWidth\fR - frame width of a menubar.
.TP
\fCQStyle::PM_MenuBarItemSpacing\fR - spacing between menubar items.
.TP
\fCQStyle::PM_ToolBarItemSpacing\fR - spacing between toolbar items.
.TP
\fCQStyle::PM_TabBarTabOverlap\fR - number of pixels the tabs should overlap.
.TP
\fCQStyle::PM_TabBarTabHSpace\fR - extra space added to the tab width.
.TP
\fCQStyle::PM_TabBarTabVSpace\fR - extra space added to the tab height.
.TP
\fCQStyle::PM_TabBarBaseHeight\fR - height of the area between the tab bar and the tab pages.
.TP
\fCQStyle::PM_TabBarBaseOverlap\fR - number of pixels the tab bar overlaps the tab bar base.
.TP
\fCQStyle::PM_TabBarScrollButtonWidth\fR
.TP
\fCQStyle::PM_TabBarTabShiftHorizontal\fR - horizontal pixel shift when a tab is selected.
.TP
\fCQStyle::PM_TabBarTabShiftVertical\fR - vertical pixel shift when a tab is selected.
.TP
\fCQStyle::PM_ProgressBarChunkWidth\fR - width of a chunk in a progress bar indicator.
.TP
\fCQStyle::PM_SplitterWidth\fR - width of a splitter.
.TP
\fCQStyle::PM_TitleBarHeight\fR - height of the title bar.
.TP
\fCQStyle::PM_PopupMenuFrameHorizontalExtra\fR - additional border, e.g. for panels
.TP
\fCQStyle::PM_PopupMenuFrameVerticalExtra\fR - additional border, e.g. for panels
.TP
\fCQStyle::PM_IndicatorWidth\fR - width of a check box indicator.
.TP
\fCQStyle::PM_IndicatorHeight\fR - height of a checkbox indicator.
.TP
\fCQStyle::PM_ExclusiveIndicatorWidth\fR - width of a radio button indicator.
.TP
\fCQStyle::PM_ExclusiveIndicatorHeight\fR - height of a radio button indicator.
.TP
\fCQStyle::PM_PopupMenuScrollerHeight\fR - height of the scroller area in a popupmenu.
.TP
\fCQStyle::PM_PopupMenuScrollerHeight\fR - height of the scroller area in a popupmenu.
.TP
\fCQStyle::PM_CheckListButtonSize\fR - area (width/height) of the checkbox/radiobutton in a QCheckListItem
.TP
\fCQStyle::PM_CheckListControllerSize\fR - area (width/height) of the controller in a QCheckListItem
.TP
\fCQStyle::PM_DialogButtonsSeparator\fR - distance between buttons in a dialog buttons widget.
.TP
\fCQStyle::PM_DialogButtonsButtonWidth\fR - minimum width of a button in a dialog buttons widget.
.TP
\fCQStyle::PM_DialogButtonsButtonHeight\fR - minimum height of a button in a dialog buttons widget.
.TP
\fCQStyle::PM_HeaderMarkSize\fR
.TP
\fCQStyle::PM_HeaderGripMargin\fR
.TP
\fCQStyle::PM_HeaderMargin\fR
.TP
\fCQStyle::PM_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
See also pixelMetric().
.SH "QStyle::PrimitiveElement"
This enum represents the PrimitiveElements of a style. A PrimitiveElement is a common GUI element, such as a checkbox indicator or pushbutton bevel.
.TP
\fCQStyle::PE_ButtonCommand\fR - button used to initiate an action, for example, a QPushButton.
.TP
\fCQStyle::PE_ButtonDefault\fR - this button is the default button, e.g. in a dialog.
.TP
\fCQStyle::PE_ButtonBevel\fR - generic button bevel.
.TP
\fCQStyle::PE_ButtonTool\fR - tool button, for example, a QToolButton.
.TP
\fCQStyle::PE_ButtonDropDown\fR - drop down button, for example, a tool button that displays a popup menu, for example, QPopupMenu.
.TP
\fCQStyle::PE_FocusRect\fR - generic focus indicator.
.TP
\fCQStyle::PE_ArrowUp\fR - up arrow.
.TP
\fCQStyle::PE_ArrowDown\fR - down arrow.
.TP
\fCQStyle::PE_ArrowRight\fR - right arrow.
.TP
\fCQStyle::PE_ArrowLeft\fR - left arrow.
.TP
\fCQStyle::PE_SpinWidgetUp\fR - up symbol for a spin widget, for example a QSpinBox.
.TP
\fCQStyle::PE_SpinWidgetDown\fR - down symbol for a spin widget.
.TP
\fCQStyle::PE_SpinWidgetPlus\fR - increase symbol for a spin widget.
.TP
\fCQStyle::PE_SpinWidgetMinus\fR - decrease symbol for a spin widget.
.TP
\fCQStyle::PE_Indicator\fR - on/off indicator, for example, a QCheckBox.
.TP
\fCQStyle::PE_IndicatorMask\fR - bitmap mask for an indicator.
.TP
\fCQStyle::PE_ExclusiveIndicator\fR - exclusive on/off indicator, for example, a QRadioButton.
.TP
\fCQStyle::PE_ExclusiveIndicatorMask\fR - bitmap mask for an exclusive indicator.
.TP
\fCQStyle::PE_DockWindowHandle\fR - tear off handle for dock windows and toolbars, for example QDockWindows and QToolBars.
.TP
\fCQStyle::PE_DockWindowSeparator\fR - item separator for dock window and toolbar contents.
.TP
\fCQStyle::PE_DockWindowResizeHandle\fR - resize handle for dock windows.
.TP
\fCQStyle::PE_Splitter\fR - splitter handle; see also QSplitter.
.TP
\fCQStyle::PE_Panel\fR - generic panel frame; see also QFrame.
.TP
\fCQStyle::PE_PanelPopup\fR - panel frame for popup windows/menus; see also QPopupMenu.
.TP
\fCQStyle::PE_PanelMenuBar\fR - panel frame for menu bars.
.TP
\fCQStyle::PE_PanelDockWindow\fR - panel frame for dock windows and toolbars.
.TP
\fCQStyle::PE_PanelTabWidget\fR - panel frame for tab widgets.
.TP
\fCQStyle::PE_PanelLineEdit\fR - panel frame for line edits.
.TP
\fCQStyle::PE_PanelGroupBox\fR - panel frame for group boxes.
.TP
\fCQStyle::PE_TabBarBase\fR - area below tabs in a tab widget, for example, QTab.
.TP
\fCQStyle::PE_HeaderSection\fR - section of a list or table header; see also QHeader.
.TP
\fCQStyle::PE_HeaderArrow\fR - arrow used to indicate sorting on a list or table header
.TP
\fCQStyle::PE_StatusBarSection\fR - section of a status bar; see also QStatusBar.
.TP
\fCQStyle::PE_GroupBoxFrame\fR - frame around a group box; see also QGroupBox.
.TP
\fCQStyle::PE_WindowFrame\fR - frame around a MDI window or a docking window
.TP
\fCQStyle::PE_Separator\fR - generic separator.
.TP
\fCQStyle::PE_SizeGrip\fR - window resize handle; see also QSizeGrip.
.TP
\fCQStyle::PE_CheckMark\fR - generic check mark; see also QCheckBox.
.TP
\fCQStyle::PE_ScrollBarAddLine\fR - scrollbar line increase indicator (i.e. scroll down); see also QScrollBar.
.TP
\fCQStyle::PE_ScrollBarSubLine\fR - scrollbar line decrease indicator (i.e. scroll up).
.TP
\fCQStyle::PE_ScrollBarAddPage\fR - scolllbar page increase indicator (i.e. page down).
.TP
\fCQStyle::PE_ScrollBarSubPage\fR - scrollbar page decrease indicator (i.e. page up).
.TP
\fCQStyle::PE_ScrollBarSlider\fR - scrollbar slider
.TP
\fCQStyle::PE_ScrollBarFirst\fR - scrollbar first line indicator (i.e. home).
.TP
\fCQStyle::PE_ScrollBarLast\fR - scrollbar last line indicator (i.e. end).
.TP
\fCQStyle::PE_ProgressBarChunk\fR - section of a progress bar indicator; see also QProgressBar.
.TP
\fCQStyle::PE_CheckListController\fR - controller part of a listview item
.TP
\fCQStyle::PE_CheckListIndicator\fR - checkbox part of a listview item
.TP
\fCQStyle::PE_CheckListExclusiveIndicator\fR - radiobutton part of a listview item
.TP
\fCQStyle::PE_RubberBand\fR - rubber band used in such things as iconview
.TP
\fCQStyle::PE_CustomBase\fR - base value for custom PrimitiveElements. All values above this are reserved for custom use. Custom values must be greater than this value.
.PP
See also drawPrimitive().
.SH "QStyle::StyleFlags"
This enum represents flags for drawing PrimitiveElements. Not all primitives use all of these flags. Note that these flags may mean different things to different primitives. For an explanation of the relationship between primitives and their flags, as well as the different meanings of the flags, see the Style overview.
.TP
\fCQStyle::Style_Default\fR
.TP
\fCQStyle::Style_Enabled\fR
.TP
\fCQStyle::Style_Raised\fR
.TP
\fCQStyle::Style_Sunken\fR
.TP
\fCQStyle::Style_Off\fR
.TP
\fCQStyle::Style_NoChange\fR
.TP
\fCQStyle::Style_On\fR
.TP
\fCQStyle::Style_Down\fR
.TP
\fCQStyle::Style_Horizontal\fR
.TP
\fCQStyle::Style_HasFocus\fR
.TP
\fCQStyle::Style_Top\fR
.TP
\fCQStyle::Style_Bottom\fR
.TP
\fCQStyle::Style_FocusAtBorder\fR
.TP
\fCQStyle::Style_AutoRaise\fR
.TP
\fCQStyle::Style_MouseOver\fR
.TP
\fCQStyle::Style_Up\fR
.TP
\fCQStyle::Style_Selected\fR
.TP
\fCQStyle::Style_HasFocus\fR
.TP
\fCQStyle::Style_Active\fR
.TP
\fCQStyle::Style_ButtonDefault\fR
.PP
See also drawPrimitive().
.SH "QStyle::StyleHint"
This enum represents a StyleHint. A StyleHint is a general look and/or feel hint.
.TP
\fCQStyle::SH_EtchDisabledText\fR - disabled text is "etched" like Windows.
.TP
\fCQStyle::SH_GUIStyle\fR - the GUI style to use.
.TP
\fCQStyle::SH_ScrollBar_BackgroundMode\fR - the background mode for a QScrollBar. Possible values are any of those in the BackgroundMode enum.
.TP
\fCQStyle::SH_ScrollBar_MiddleClickAbsolutePosition\fR - a boolean value. If TRUE, middle clicking on a scrollbar causes the slider to jump to that position. If FALSE, the middle clicking is ignored.
.TP
\fCQStyle::SH_ScrollBar_LeftClickAbsolutePosition\fR - a boolean value. If TRUE, left clicking on a scrollbar causes the slider to jump to that position. If FALSE, the left clicking will behave as appropriate for each control.
.TP
\fCQStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl\fR - a boolean value. If TRUE, when clicking a scrollbar SubControl, holding the mouse button down and moving the pointer outside the SubControl, the scrollbar continues to scroll. If FALSE, the scollbar stops scrolling when the pointer leaves the SubControl.
.TP
\fCQStyle::SH_TabBar_Alignment\fR - the alignment for tabs in a QTabWidget. Possible values are Qt::AlignLeft, Qt::AlignCenter and Qt::AlignRight.
.TP
\fCQStyle::SH_Header_ArrowAlignment\fR - the placement of the sorting indicator may appear in list or table headers. Possible values are Qt::Left or Qt::Right.
.TP
\fCQStyle::SH_Slider_SnapToValue\fR - sliders snap to values while moving, like Windows
.TP
\fCQStyle::SH_Slider_SloppyKeyEvents\fR - key presses handled in a sloppy manner, i.e. left on a vertical slider subtracts a line.
.TP
\fCQStyle::SH_ProgressDialog_CenterCancelButton\fR - center button on progress dialogs, like Motif, otherwise right aligned.
.TP
\fCQStyle::SH_ProgressDialog_TextLabelAlignment\fR - Qt::AlignmentFlags -- text label alignment in progress dialogs; Center on windows, Auto|VCenter otherwise.
.TP
\fCQStyle::SH_PrintDialog_RightAlignButtons\fR - right align buttons in the print dialog, like Windows.
.TP
\fCQStyle::SH_MainWindow_SpaceBelowMenuBar\fR - 1 or 2 pixel space between the menubar and the dockarea, like Windows.
.TP
\fCQStyle::SH_FontDialog_SelectAssociatedText\fR - select the text in the line edit, or when selecting an item from the listbox, or when the line edit receives focus, like Windows.
.TP
\fCQStyle::SH_PopupMenu_AllowActiveAndDisabled\fR - allows disabled menu items to be active.
.TP
\fCQStyle::SH_PopupMenu_SpaceActivatesItem\fR - pressing Space activates the item, like Motif.
.TP
\fCQStyle::SH_PopupMenu_SubMenuPopupDelay\fR - the number of milliseconds to wait before opening a submenu; 256 on windows, 96 on Motif.
.TP
\fCQStyle::SH_PopupMenu_Scrollable\fR - whether popupmenu's must support scrolling.
.TP
\fCQStyle::SH_PopupMenu_SloppySubMenus\fR - whether popupmenu's must support sloppy submenu; as implemented on Mac OS.
.TP
\fCQStyle::SH_ScrollView_FrameOnlyAroundContents\fR - whether scrollviews draw their frame only around contents (like Motif), or around contents, scrollbars and corner widgets (like Windows).
.TP
\fCQStyle::SH_MenuBar_AltKeyNavigation\fR - menubars items are navigable by pressing Alt, followed by using the arrow keys to select the desired item.
.TP
\fCQStyle::SH_ComboBox_ListMouseTracking\fR - mouse tracking in combobox dropdown lists.
.TP
\fCQStyle::SH_PopupMenu_MouseTracking\fR - mouse tracking in popup menus.
.TP
\fCQStyle::SH_MenuBar_MouseTracking\fR - mouse tracking in menubars.
.TP
\fCQStyle::SH_ItemView_ChangeHighlightOnFocus\fR - gray out selected items when losing focus.
.TP
\fCQStyle::SH_Widget_ShareActivation\fR - turn on sharing activation with floating modeless dialogs.
.TP
\fCQStyle::SH_TabBar_SelectMouseType\fR - which type of mouse event should cause a tab to be selected.
.TP
\fCQStyle::SH_ListViewExpand_SelectMouseType\fR - which type of mouse event should cause a listview expansion to be selected.
.TP
\fCQStyle::SH_TabBar_PreferNoArrows\fR - whether a tabbar should suggest a size to prevent scoll arrows.
.TP
\fCQStyle::SH_ComboBox_Popup\fR - allows popups as a combobox dropdown menu.
.TP
\fCQStyle::SH_Workspace_FillSpaceOnMaximize\fR - the workspace should maximize the client area.
.TP
\fCQStyle::SH_TitleBar_NoBorder\fR - the titlebar has no border
.TP
\fCQStyle::SH_ScrollBar_StopMouseOverSlider\fR - stops autorepeat when slider reaches mouse
.TP
\fCQStyle::SH_BlinkCursorWhenTextSelected\fR - whether cursor should blink when text is selected
.TP
\fCQStyle::SH_RichText_FullWidthSelection\fR - whether richtext selections should extend the full width of the document.
.TP
\fCQStyle::SH_GroupBox_TextLabelVerticalAlignment\fR - how to vertically align a groupbox's text label.
.TP
\fCQStyle::SH_GroupBox_TextLabelColor\fR - how to paint a groupbox's text label.
.TP
\fCQStyle::SH_DialogButtons_DefaultButton\fR - which buttons gets the default status in a dialog's button widget.
.TP
\fCQStyle::SH_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.TP
\fCQStyle::SH_ToolButton_Uses3D\fR - indicates whether QToolButtons should use a 3D frame when the mouse is over them
.TP
\fCQStyle::SH_ToolBox_SelectedPageTitleBold\fR - Boldness of the selected page title in a QToolBox.
.TP
\fCQStyle::SH_LineEdit_PasswordCharacter\fR - The TQChar Unicode character to be used for passwords.
.TP
\fCQStyle::SH_Table_GridLineColor\fR
.TP
\fCQStyle::SH_UnderlineAccelerator\fR - whether accelerators are underlined
.PP
See also styleHint().
.SH "QStyle::StylePixmap"
This enum represents a StylePixmap. A StylePixmap is a pixmap that can follow some existing GUI style or guideline.
.TP
\fCQStyle::SP_TitleBarMinButton\fR - minimize button on titlebars. For example, in a QWorkspace.
.TP
\fCQStyle::SP_TitleBarMaxButton\fR - maximize button on titlebars.
.TP
\fCQStyle::SP_TitleBarCloseButton\fR - close button on titlebars.
.TP
\fCQStyle::SP_TitleBarNormalButton\fR - normal (restore) button on titlebars.
.TP
\fCQStyle::SP_TitleBarShadeButton\fR - shade button on titlebars.
.TP
\fCQStyle::SP_TitleBarUnshadeButton\fR - unshade button on titlebars.
.TP
\fCQStyle::SP_MessageBoxInformation\fR - the 'information' icon.
.TP
\fCQStyle::SP_MessageBoxWarning\fR - the 'warning' icon.
.TP
\fCQStyle::SP_MessageBoxCritical\fR - the 'critical' icon.
.TP
\fCQStyle::SP_MessageBoxQuestion\fR - the 'question' icon.
.TP
\fCQStyle::SP_DockWindowCloseButton\fR - close button on dock windows; see also QDockWindow.
.TP
\fCQStyle::SP_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
See also stylePixmap().
.SH "QStyle::SubControl"
This enum represents a SubControl within a ComplexControl.
.TP
\fCQStyle::SC_None\fR - special value that matches no other SubControl.
.TP
\fCQStyle::SC_ScrollBarAddLine\fR - scrollbar add line (i.e. down/right arrow); see also QScrollbar.
.TP
\fCQStyle::SC_ScrollBarSubLine\fR - scrollbar sub line (i.e. up/left arrow).
.TP
\fCQStyle::SC_ScrollBarAddPage\fR - scrollbar add page (i.e. page down).
.TP
\fCQStyle::SC_ScrollBarSubPage\fR - scrollbar sub page (i.e. page up).
.TP
\fCQStyle::SC_ScrollBarFirst\fR - scrollbar first line (i.e. home).
.TP
\fCQStyle::SC_ScrollBarLast\fR - scrollbar last line (i.e. end).
.TP
\fCQStyle::SC_ScrollBarSlider\fR - scrollbar slider handle.
.TP
\fCQStyle::SC_ScrollBarGroove\fR - special subcontrol which contains the area in which the slider handle may move.
.TP
\fCQStyle::SC_SpinWidgetUp\fR - spinwidget up/increase; see also QSpinBox.
.TP
\fCQStyle::SC_SpinWidgetDown\fR - spinwidget down/decrease.
.TP
\fCQStyle::SC_SpinWidgetFrame\fR - spinwidget frame.
.TP
\fCQStyle::SC_SpinWidgetEditField\fR - spinwidget edit field.
.TP
\fCQStyle::SC_SpinWidgetButtonField\fR - spinwidget button field.
.TP
\fCQStyle::SC_ComboBoxEditField\fR - combobox edit field; see also QComboBox.
.TP
\fCQStyle::SC_ComboBoxArrow\fR - combobox arrow
.TP
\fCQStyle::SC_ComboBoxFrame\fR - combobox frame
.TP
\fCQStyle::SC_ComboBoxListBoxPopup\fR - combobox list box
.TP
\fCQStyle::SC_SliderGroove\fR - special subcontrol which contains the area in which the slider handle may move.
.TP
\fCQStyle::SC_SliderHandle\fR - slider handle.
.TP
\fCQStyle::SC_SliderTickmarks\fR - slider tickmarks.
.TP
\fCQStyle::SC_ToolButton\fR - tool button; see also QToolbutton.
.TP
\fCQStyle::SC_ToolButtonMenu\fR - subcontrol for opening a popup menu in a tool button; see also QPopupMenu.
.TP
\fCQStyle::SC_TitleBarSysMenu\fR - system menu button (i.e. restore, close, etc.).
.TP
\fCQStyle::SC_TitleBarMinButton\fR - minimize button.
.TP
\fCQStyle::SC_TitleBarMaxButton\fR - maximize button.
.TP
\fCQStyle::SC_TitleBarCloseButton\fR - close button.
.TP
\fCQStyle::SC_TitleBarLabel\fR - window title label.
.TP
\fCQStyle::SC_TitleBarNormalButton\fR - normal (restore) button.
.TP
\fCQStyle::SC_TitleBarShadeButton\fR - shade button.
.TP
\fCQStyle::SC_TitleBarUnshadeButton\fR - unshade button.
.TP
\fCQStyle::SC_ListView\fR - the list view area.
.TP
\fCQStyle::SC_ListViewBranch\fR - (internal)
.TP
\fCQStyle::SC_ListViewExpand\fR - expand item (i.e. show/hide child items).
.TP
\fCQStyle::SC_All\fR - special value that matches all SubControls.
.PP
See also ComplexControl.
.SH "QStyle::SubRect"
This enum represents a sub-area of a widget. Style implementations would use these areas to draw the different parts of a widget.
.TP
\fCQStyle::SR_PushButtonContents\fR - area containing the label (iconset with text or pixmap).
.TP
\fCQStyle::SR_PushButtonFocusRect\fR - area for the focus rect (usually larger than the contents rect).
.TP
\fCQStyle::SR_CheckBoxIndicator\fR - area for the state indicator (e.g. check mark).
.TP
\fCQStyle::SR_CheckBoxContents\fR - area for the label (text or pixmap).
.TP
\fCQStyle::SR_CheckBoxFocusRect\fR - area for the focus indicator.
.TP
\fCQStyle::SR_RadioButtonIndicator\fR - area for the state indicator.
.TP
\fCQStyle::SR_RadioButtonContents\fR - area for the label.
.TP
\fCQStyle::SR_RadioButtonFocusRect\fR - area for the focus indicator.
.TP
\fCQStyle::SR_ComboBoxFocusRect\fR - area for the focus indicator.
.TP
\fCQStyle::SR_SliderFocusRect\fR - area for the focus indicator.
.TP
\fCQStyle::SR_DockWindowHandleRect\fR - area for the tear-off handle.
.TP
\fCQStyle::SR_ProgressBarGroove\fR - area for the groove.
.TP
\fCQStyle::SR_ProgressBarContents\fR - area for the progress indicator.
.TP
\fCQStyle::SR_ProgressBarLabel\fR - area for the text label.
.TP
\fCQStyle::SR_ToolButtonContents\fR - area for the tool button's label.
.TP
\fCQStyle::SR_DialogButtonAccept\fR - area for a dialog's accept button.
.TP
\fCQStyle::SR_DialogButtonReject\fR - area for a dialog's reject button.
.TP
\fCQStyle::SR_DialogButtonApply\fR - area for a dialog's apply button.
.TP
\fCQStyle::SR_DialogButtonHelp\fR - area for a dialog's help button.
.TP
\fCQStyle::SR_DialogButtonAll\fR - area for a dialog's all button.
.TP
\fCQStyle::SR_DialogButtonRetry\fR - area for a dialog's retry button.
.TP
\fCQStyle::SR_DialogButtonAbort\fR - area for a dialog's abort button.
.TP
\fCQStyle::SR_DialogButtonIgnore\fR - area for a dialog's ignore button.
.TP
\fCQStyle::SR_DialogButtonCustom\fR - area for a dialog's custom widget area (in button row).
.TP
\fCQStyle::SR_ToolBoxTabContents\fR - area for a toolbox tab's icon and label
.TP
\fCQStyle::SR_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
.PP
See also subRect().
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QStyle::QStyle ()"
Constructs a QStyle.
.SH "QStyle::~QStyle ()\fC [virtual]\fR"
Destroys the style and frees all allocated resources.
.SH "int QStyle::defaultFrameWidth () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void QStyle::drawComplexControl ( ComplexControl control, QPainter * p, const TQWidget * widget, const QRect & r, const QColorGroup & cg, SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Draws the ComplexControl \fIcontrol\fR using the painter \fIp\fR in the area \fIr\fR. Colors are used from the color group \fIcg\fR. The \fIsub\fR argument specifies which SubControls to draw. Multiple SubControls can be OR'ed together. The \fIsubActive\fR argument specifies which SubControl is active.
.PP
The rect \fIr\fR should be in logical coordinates. Reimplementations of this function should use visualRect() to change the logical coordinates into screen coordinates when using drawPrimitive() and drawControl().
.PP
The \fIhow\fR argument is used to control how the ComplexControl is drawn. Multiple flags can OR'ed together. See the table below for an explanation of which flags are used with the various ComplexControls.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIcontrol\fR. The \fIopt\fR argument can be used to pass extra information required when drawing the ComplexControl. Note that \fIopt\fR may be the default value even for ComplexControls that can make use of the extra options. See the table below for the appropriate \fIwidget\fR and \fIopt\fR usage:
.PP
<center>.nf
.TS
l - l. ComplexControl
.br
& Widget Cast Style Flags Notes Options Notes CC_SpinWidget(const QSpinWidget *) Style_Enabled Set if the spinwidget is enabled. Unused. Style_HasFocus Set if the spinwidget has input focus. CC_ComboBox(const QComboBox *) Style_Enabled Set if the combobox is enabled. Unused. Style_HasFocus Set if the combobox has input focus. CC_ScrollBar(const QScrollBar *) Style_Enabled Set if the scrollbar is enabled. Unused. Style_HasFocus Set if the scrollbar has input focus. CC_Slider(const QSlider *) Style_Enabled Set if the slider is enabled. Unused. Style_HasFocus Set if the slider has input focus. CC_ToolButton(const QToolButton *) Style_Enabled Set if the toolbutton is enabled. QStyleOption ( ArrowType t )
.TP
opt.arrowType() When the tool button only contains an arrow, \fIt\fR is the arrow's type. Style_HasFocus Set if the toolbutton has input focus. Style_Down Set if the toolbutton is down (ie. mouse button or space pressed). Style_On Set if the toolbutton is a toggle button and is toggled on. Style_AutoRaise Set if the toolbutton has auto-raise enabled. Style_Raised Set if the button is not down, not on and doesn't contain the mouse when auto-raise is enabled. CC_TitleBar(const TQWidget *) Style_Enabled Set if the titlebar is enabled. Unused. CC_ListView(const QListView *) Style_Enabled Set if the titlebar is enabled. QStyleOption ( QListViewItem *item )
.TP
opt.listViewItem()
.TE
.fi
</center>
.PP
See also ComplexControl and SubControl.
.SH "void QStyle::drawComplexControlMask ( ComplexControl control, QPainter * p, const TQWidget * widget, const QRect & r, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Draw a bitmask for the ComplexControl \fIcontrol\fR using the painter \fIp\fR in the area \fIr\fR. See drawComplexControl() for an explanation of the use of the \fIwidget\fR and \fIopt\fR arguments.
.PP
The rect \fIr\fR should be in logical coordinates. Reimplementations of this function should use visualRect() to change the logical corrdinates into screen coordinates when using drawPrimitive() and drawControl().
.PP
See also drawComplexControl() and ComplexControl.
.SH "void QStyle::drawControl ( ControlElement element, QPainter * p, const TQWidget * widget, const QRect & r, const QColorGroup & cg, SFlags how = Style_Default, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Draws the ControlElement \fIelement\fR using the painter \fIp\fR in the area \fIr\fR. Colors are used from the color group \fIcg\fR.
.PP
The rect \fIr\fR should be in screen coordinates.
.PP
The \fIhow\fR argument is used to control how the ControlElement is drawn. Multiple flags can be OR'ed together. See the table below for an explanation of which flags are used with the various ControlElements.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIelement\fR. The \fIopt\fR argument can be used to pass extra information required when drawing the ControlElement. Note that \fIopt\fR may be the default value even for ControlElements that can make use of the extra options. See the table below for the appropriate \fIwidget\fR and \fIopt\fR usage:
.PP
<center>.nf
.TS
l - l. ControlElement
.br
& Widget Cast Style Flags Notes Options Notes CE_PushButton(const QPushButton *)
.PP
and
.PP
CE_PushButtonLabel(const QPushButton *) Style_Enabled Set if the button is enabled. Unused. Style_HasFocus Set if the button has input focus. Style_Raised Set if the button is not down, not on and not flat. Style_On Set if the button is a toggle button and toggled on. Style_Down Set if the button is down (i.e., the mouse button or space bar is pressed on the button). Style_ButtonDefault Set if the button is a default button. CE_CheckBox(const QCheckBox *)
.PP
and
.PP
CE_CheckBoxLabel(const QCheckBox *)
.PP	Style_Enabled	Set if the checkbox is enabled.	Unused.
Style_HasFocus Set if the checkbox has input focus. Style_On Set if the checkbox is checked. Style_Off Set if the checkbox is not checked. Style_NoChange Set if the checkbox is in the NoChange state. Style_Down Set if the checkbox is down (i.e., the mouse button or space bar is pressed on the button). CE_RadioButton(const QRadioButton *)
.PP
and
.PP
CE_RadioButtonLabel(const QRadioButton *) Style_Enabled Set if the radiobutton is enabled. Unused. Style_HasFocus Set if the radiobutton has input focus. Style_On Set if the radiobutton is checked. Style_Off Set if the radiobutton is not checked. Style_Down Set if the radiobutton is down (i.e., the mouse button or space bar is pressed on the radiobutton). CE_TabBarTab(const QTabBar *)
.PP
and
.PP
CE_TabBarLabel(const QTabBar *)
.PP	Style_Enabled	Set if the tabbar and tab is enabled.	QStyleOption ( QTab *t )
.TP
opt.tab() \fIt\fR is the QTab being drawn. Style_Selected Set if the tab is the current tab. CE_ProgressBarGroove(const QProgressBar *)
.PP
and
.PP
CE_ProgressBarContents(const QProgressBar *)
.PP
and
.PP
CE_ProgressBarLabel(const QProgressBar *)
.PP	Style_Enabled	Set if the progressbar is enabled.	Unused.
Style_HasFocus Set if the progressbar has input focus. CE_PopupMenuItem(const QPopupMenu *) Style_Enabled Set if the menuitem is enabled. QStyleOption ( QMenuItem *mi, int tabwidth, int maxpmwidth )
.TP
opt.menuItem()
.TP
opt.tabWidth()
.TP
opt.maxIconWidth() \fImi\fR is the menu item being drawn. QMenuItem is currently an internal class. Style_Active Set if the menuitem is the current item. \fItabwidth\fR is the width of the tab column where key accelerators are drawn. Style_Down Set if the menuitem is down (i.e., the mouse button or space bar is pressed). \fImaxpmwidth\fR is the maximum width of the check column where checkmarks and iconsets are drawn. CE_MenuBarItem(const QMenuBar *) Style_Enabled Set if the menuitem is enabled QStyleOption ( QMenuItem *mi )
.TP
opt.menuItem() \fImi\fR is the menu item being drawn. Style_Active Set if the menuitem is the current item. Style_Down Set if the menuitem is down (i.e., a mouse button or the space bar is pressed). Style_HasFocus Set if the menubar has input focus. CE_ToolButtonLabel(const QToolButton *) Style_Enabled Set if the toolbutton is enabled. QStyleOption ( ArrowType t )
.TP
opt.arrowType() When the tool button only contains an arrow, \fIt\fR is the arrow's type. Style_HasFocus Set if the toolbutton has input focus. Style_Down Set if the toolbutton is down (i.e., a mouse button or the space is pressed). Style_On Set if the toolbutton is a toggle button and is toggled on. Style_AutoRaise Set if the toolbutton has auto-raise enabled. Style_MouseOver Set if the mouse pointer is over the toolbutton. Style_Raised
.TE
.fi
</center>
.PP
See also ControlElement and StyleFlags.
.SH "void QStyle::drawControlMask ( ControlElement element, QPainter * p, const TQWidget * widget, const QRect & r, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Draw a bitmask for the ControlElement \fIelement\fR using the painter \fIp\fR in the area \fIr\fR. See drawControl() for an explanation of the use of the \fIwidget\fR and \fIopt\fR arguments.
.PP
The rect \fIr\fR should be in screen coordinates.
.PP
See also drawControl() and ControlElement.
.SH "void QStyle::drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup & g, bool enabled, const QPixmap * pixmap, const TQString & text, int len = -1, const TQColor * penColor = 0 ) const\fC [virtual]\fR"
Draws the \fItext\fR or \fIpixmap\fR in rectangle \fIr\fR using painter \fIp\fR and color group \fIg\fR. The pen color is specified with \fIpenColor\fR. The \fIenabled\fR bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned and wrapped according to the alignment \fIflags\fR (see Qt::AlignmentFlags).
.PP
By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.
.SH "void QStyle::drawPrimitive ( PrimitiveElement pe, QPainter * p, const QRect & r, const QColorGroup & cg, SFlags flags = Style_Default, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Draws the style PrimitiveElement \fIpe\fR using the painter \fIp\fR in the area \fIr\fR. Colors are used from the color group \fIcg\fR.
.PP
The rect \fIr\fR should be in screen coordinates.
.PP
The \fIflags\fR argument is used to control how the PrimitiveElement is drawn. Multiple flags can be OR'ed together.
.PP
For example, a pressed button would be drawn with the flags Style_Enabled and Style_Down.
.PP
The \fIopt\fR argument can be used to control how various PrimitiveElements are drawn. Note that \fIopt\fR may be the default value even for PrimitiveElements that make use of extra options. When \fIopt\fR is non-default, it is used as follows:
.PP
<center>.nf
.TS
l - l. PrimitiveElement Options Notes PE_FocusRect QStyleOption ( const TQColor & bg )
.TP
opt.color() \fIbg\fR is the background color on which the focus rect is being drawn. PE_Panel QStyleOption ( int linewidth, int midlinewidth )
.TP
opt.lineWidth()
.TP
opt.midLineWidth() \fIlinewidth\fR is the line width for drawing the panel. \fImidlinewidth\fR is the mid-line width for drawing the panel. PE_PanelPopup QStyleOption ( int linewidth, int midlinewidth )
.TP
opt.lineWidth()
.TP
opt.midLineWidth() \fIlinewidth\fR is the line width for drawing the panel. \fImidlinewidth\fR is the mid-line width for drawing the panel. PE_PanelMenuBar QStyleOption ( int linewidth, int midlinewidth )
.TP
opt.lineWidth()
.TP
opt.midLineWidth() \fIlinewidth\fR is the line width for drawing the panel. \fImidlinewidth\fR is the mid-line width for drawing the panel. PE_PanelDockWindow QStyleOption ( int linewidth, int midlinewidth )
.TP
opt.lineWidth()
.TP
opt.midLineWidth() \fIlinewidth\fR is the line width for drawing the panel. \fImidlinewidth\fR is the mid-line width for drawing the panel. PE_GroupBoxFrame QStyleOption ( int linewidth, int midlinewidth, int shape, int shadow )
.TP
opt.lineWidth()
.TP
opt.midLineWidth()
.TP
opt.frameShape()
.TP
opt.frameShadow() \fIlinewidth\fR is the line width for the group box. \fImidlinewidth\fR is the mid-line width for the group box. \fIshape\fR is the frame shape for the group box.
.TE
.fi
</center>
.PP
For all other PrimitiveElements, \fIopt\fR is unused.
.PP
See also StyleFlags.
.PP
Example: themes/wood.cpp.
.SH "QRect QStyle::itemRect ( QPainter * p, const QRect & r, int flags, bool enabled, const QPixmap * pixmap, const TQString & text, int len = -1 ) const\fC [virtual]\fR"
Returns the appropriate area (see below) within rectangle \fIr\fR in which to draw the \fItext\fR or \fIpixmap\fR using painter \fIp\fR. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned in accordance with the alignment \fIflags\fR (see Qt::AlignmentFlags). The \fIenabled\fR bool indicates whether or not the item is enabled.
.PP
If \fIr\fR is larger than the area needed to render the \fItext\fR the rectangle that is returned will be offset within \fIr\fR in accordance with the alignment \fIflags\fR. For example if \fIflags\fR is AlignCenter the returned rectangle will be centered within \fIr\fR. If \fIr\fR is smaller than the area needed the rectangle that is returned will be \fIlarger\fR than \fIr\fR (the smallest rectangle large enough to render the \fItext\fR or \fIpixmap\fR).
.PP
By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.
.SH "int QStyle::pixelMetric ( PixelMetric metric, const TQWidget * widget = 0 ) const\fC [pure virtual]\fR"
Returns the pixel metric for \fImetric\fR. The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fImetric\fR. Note that \fIwidget\fR may be zero even for PixelMetrics that can make use of \fIwidget\fR. See the table below for the appropriate \fIwidget\fR casts:
.PP
<center>.nf
.TS
l - l. PixelMetric Widget Cast PM_SliderControlThickness (const QSlider *) PM_SliderLength (const QSlider *) PM_SliderTickmarkOffset (const QSlider *) PM_SliderSpaceAvailable (const QSlider *) PM_TabBarTabOverlap (const QTabBar *) PM_TabBarTabHSpace (const QTabBar *) PM_TabBarTabVSpace (const QTabBar *) PM_TabBarBaseHeight (const QTabBar *) PM_TabBarBaseOverlap
.TE
.fi
</center>
.SH "void QStyle::polish ( TQWidget * )\fC [virtual]\fR"
Initializes the appearance of a widget.
.PP
This function is called for every widget at some point after it has been fully created but just \fIbefore\fR it is shown the very first time.
.PP
Reasonable actions in this function might be to call TQWidget::setBackgroundMode() for the widget. An example of highly unreasonable use would be setting the geometry! Reimplementing this function gives you a back-door through which you can change the appearance of a widget. With TQt 3.0's style engine you will rarely need to write your own polish(); instead reimplement drawItem(), drawPrimitive(), etc.
.PP
The TQWidget::inherits() function may provide enough information to allow class-specific customizations. But be careful not to hard-code things too much because new QStyle subclasses are expected to work reasonably with all current and \fIfuture\fR widgets.
.PP
See also unPolish().
.SH "void QStyle::polish ( QApplication * )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Late initialization of the QApplication object.
.PP
See also unPolish().
.SH "void QStyle::polish ( QPalette & )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements.
.PP
See also QPalette and QApplication::setPalette().
.SH "void QStyle::polishPopupMenu ( QPopupMenu * )\fC [pure virtual]\fR"
Polishes the popup menu according to the GUI style. This usually means setting the mouse tracking (QPopupMenu::setMouseTracking()) and whether the menu is checkable by default (QPopupMenu::setCheckable()).
.SH "SubControl QStyle::querySubControl ( ComplexControl control, const TQWidget * widget, const QPoint & pos, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Returns the SubControl for \fIwidget\fR at the point \fIpos\fR. The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIcontrol\fR. The \fIopt\fR argument can be used to pass extra information required when drawing the ComplexControl. Note that \fIopt\fR may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the \fIwidget\fR and \fIopt\fR arguments.
.PP
Note that \fIpos\fR is passed in screen coordinates. When using querySubControlMetrics() to check for hits and misses, use visualRect() to change the logical coordinates into screen coordinates.
.PP
See also drawComplexControl(), ComplexControl, SubControl, and querySubControlMetrics().
.SH "QRect QStyle::querySubControlMetrics ( ComplexControl control, const TQWidget * widget, SubControl subcontrol, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Returns the rect for the SubControl \fIsubcontrol\fR for \fIwidget\fR in logical coordinates.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIcontrol\fR. The \fIopt\fR argument can be used to pass extra information required when drawing the ComplexControl. Note that \fIopt\fR may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the \fIwidget\fR and \fIopt\fR arguments.
.PP
See also drawComplexControl(), ComplexControl, and SubControl.
.SH "QSize QStyle::scrollBarExtent () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "QSize QStyle::sizeFromContents ( ContentsType contents, const TQWidget * widget, const QSize & contentsSize, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Returns the size of \fIwidget\fR based on the contents size \fIcontentsSize\fR.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIcontents\fR. The \fIopt\fR argument can be used to pass extra information required when calculating the size. Note that \fIopt\fR may be the default value even for ContentsTypes that can make use of the extra options. See the table below for the appropriate \fIwidget\fR and \fIopt\fR usage:
.PP
<center>.nf
.TS
l - l. ContentsType Widget Cast Options Notes CT_PushButton (const QPushButton *) Unused. CT_CheckBox (const QCheckBox *) Unused. CT_RadioButton (const QRadioButton *) Unused. CT_ToolButton (const QToolButton *) Unused. CT_ComboBox (const QComboBox *) Unused. CT_Splitter (const QSplitter *) Unused. CT_DockWindow (const QDockWindow *) Unused. CT_ProgressBar (const QProgressBar *) Unused. CT_PopupMenuItem (const QPopupMenu *) QStyleOption ( QMenuItem *mi )
.TP
opt.menuItem()
.TE
.fi
</center>
.SH "int QStyle::styleHint ( StyleHint stylehint, const TQWidget * widget = 0, const QStyleOption & opt = QStyleOption::Default, QStyleHintReturn * returnData = 0 ) const\fC [pure virtual]\fR"
Returns the style hint \fIstylehint\fR for \fIwidget\fR. Currently, \fIwidget\fR, \fIopt\fR, and \fIreturnData\fR are unused; they're included to allow for future enhancements.
.PP
For an explanation of the return value see StyleHint.
.SH "QPixmap QStyle::stylePixmap ( StylePixmap stylepixmap, const TQWidget * widget = 0, const QStyleOption & opt = QStyleOption::Default ) const\fC [pure virtual]\fR"
Returns a pixmap for \fIstylepixmap\fR.
.PP
The \fIopt\fR argument can be used to pass extra information required when drawing the ControlElement. Note that \fIopt\fR may be the default value even for StylePixmaps that can make use of the extra options. Currently, the \fIopt\fR argument is unused.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIstylepixmap\fR. See the table below for the appropriate \fIwidget\fR casts:
.PP
<center>.nf
.TS
l - l. StylePixmap Widget Cast SP_TitleBarMinButton (const TQWidget *) SP_TitleBarMaxButton (const TQWidget *) SP_TitleBarCloseButton (const TQWidget *) SP_TitleBarNormalButton (const TQWidget *) SP_TitleBarShadeButton (const TQWidget *) SP_TitleBarUnshadeButton (const TQWidget *) SP_DockWindowCloseButton
.TE
.fi
</center>
.PP
See also StylePixmap.
.SH "QRect QStyle::subRect ( SubRect subrect, const TQWidget * widget ) const\fC [pure virtual]\fR"
Returns the sub-area \fIsubrect\fR for the \fIwidget\fR in logical coordinates.
.PP
The \fIwidget\fR argument is a pointer to a TQWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of \fIsubrect\fR. See the table below for the appropriate \fIwidget\fR casts:
.PP
<center>.nf
.TS
l - l. SubRect Widget Cast SR_PushButtonContents (const QPushButton *) SR_PushButtonFocusRect (const QPushButton *) SR_CheckBoxIndicator (const QCheckBox *) SR_CheckBoxContents (const QCheckBox *) SR_CheckBoxFocusRect (const QCheckBox *) SR_RadioButtonIndicator (const QRadioButton *) SR_RadioButtonContents (const QRadioButton *) SR_RadioButtonFocusRect (const QRadioButton *) SR_ComboBoxFocusRect (const QComboBox *) SR_DockWindowHandleRect (const TQWidget *) SR_ProgressBarGroove (const QProgressBar *) SR_ProgressBarContents (const QProgressBar *) SR_ProgressBarLabel
.TE
.fi
</center>
.PP
The tear-off handle (SR_DockWindowHandleRect) for QDockWindow is a private class. Use TQWidget::parentWidget() to access the QDockWindow:
.PP
.nf
.br
        if ( !widget->parentWidget() )
.br
            return;
.br
        const QDockWindow *dw = (const QDockWindow *) widget->parentWidget();
.br
.fi
.PP
See also SubRect.
.SH "void QStyle::tabbarMetrics ( const TQWidget * t, int & hf, int & vf, int & ov ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.SH "void QStyle::unPolish ( TQWidget * )\fC [virtual]\fR"
Undoes the initialization of a widget's appearance.
.PP
This function is the counterpart to polish. It is called for every polished widget when the style is dynamically changed. The former style has to unpolish its settings before the new style can polish them again.
.PP
See also polish().
.SH "void QStyle::unPolish ( QApplication * )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Undoes the application polish.
.PP
See also polish().
.SH "QRect QStyle::visualRect ( const QRect & logical, const TQWidget * w )\fC [static]\fR"
Returns the rect \fIlogical\fR in screen coordinates. The bounding rect for widget \fIw\fR is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.
.PP
See also QApplication::reverseLayout().
.SH "QRect QStyle::visualRect ( const QRect & logical, const QRect & bounding )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the rect \fIlogical\fR in screen coordinates. The rect \fIbounding\fR is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.
.PP
See also QApplication::reverseLayout().

.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqstyle.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech. 
.P
If you find errors in this manual page, please report them to
.BR [email protected] .
Please include the name of the manual page (tqstyle.3qt) and the Qt
version (3.3.8).