Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos públicos estáticos
Referencia de la Clase QStyle

The QStyle class specifies the look and feel of a GUI.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. Más...

#include <qstyle.h>

Diagrama de herencias de QStyle
QObject QObject Qt Qt Qt Qt QCommonStyle QCommonStyle BluecurveStyle QMotifStyle QMotifStyle QtCKStyle QWindowsStyle QWindowsStyle BluecurveStyle QMotifStyle QMotifStyle QtCKStyle QWindowsStyle QWindowsStyle

Lista de todos los miembros.

Tipos públicos

enum  PrimitiveElement {
  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, 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
}
enum  StyleFlags {
  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, 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
}
enum  ControlElement {
  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, 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
}
enum  SubRect {
  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, 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
}
enum  ComplexControl {
  CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider,
  CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000,
  CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider,
  CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000
}
enum  SubControl {
  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, 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
}
enum  PixelMetric {
  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, 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
}
enum  ContentsType {
  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, 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
}
enum  StyleHint {
  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, 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
}
enum  StylePixmap {
  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,
  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
}
enum  PrimitiveElement {
  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, 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
}
enum  StyleFlags {
  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, 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
}
enum  ControlElement {
  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, 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
}
enum  SubRect {
  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, 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
}
enum  ComplexControl {
  CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider,
  CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000,
  CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider,
  CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000
}
enum  SubControl {
  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, 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
}
enum  PixelMetric {
  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, 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
}
enum  ContentsType {
  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, 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
}
enum  StyleHint {
  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, 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
}
enum  StylePixmap {
  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,
  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
}
typedef uint SFlags
typedef uint SCFlags
typedef uint SFlags
typedef uint SCFlags

Métodos públicos

 QStyle ()
virtual ~QStyle ()
virtual void polish (QWidget *)
virtual void unPolish (QWidget *)
virtual void polish (QApplication *)
virtual void unPolish (QApplication *)
virtual void polish (QPalette &)
virtual void polishPopupMenu (QPopupMenu *)=0
virtual QRect itemRect (QPainter *p, const QRect &r, int flags, bool enabled, const QPixmap *pixmap, const QString &text, int len=-1) const
virtual void drawItem (QPainter *p, const QRect &r, int flags, const QColorGroup &g, bool enabled, const QPixmap *pixmap, const QString &text, int len=-1, const QColor *penColor=0) const
virtual void drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawControlMask (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const =0
virtual QRect subRect (SubRect r, const QWidget *widget) const =0
virtual void drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, SCFlags sub=(uint) SC_All, SCFlags subActive=SC_None, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawComplexControlMask (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const =0
virtual QRect querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const =0
virtual SubControl querySubControl (ComplexControl control, const QWidget *widget, const QPoint &pos, const QStyleOption &=QStyleOption::Default) const =0
virtual int pixelMetric (PixelMetric metric, const QWidget *widget=0) const =0
virtual QSize sizeFromContents (ContentsType contents, const QWidget *widget, const QSize &contentsSize, const QStyleOption &=QStyleOption::Default) const =0
virtual int styleHint (StyleHint stylehint, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default, QStyleHintReturn *returnData=0) const =0
virtual QPixmap stylePixmap (StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const =0
int defaultFrameWidth () const
void tabbarMetrics (const QWidget *t, int &hf, int &vf, int &ov) const
QSize scrollBarExtent () const
 QStyle ()
virtual ~QStyle ()
virtual void polish (QWidget *)
virtual void unPolish (QWidget *)
virtual void polish (QApplication *)
virtual void unPolish (QApplication *)
virtual void polish (QPalette &)
virtual void polishPopupMenu (QPopupMenu *)=0
virtual QRect itemRect (QPainter *p, const QRect &r, int flags, bool enabled, const QPixmap *pixmap, const QString &text, int len=-1) const
virtual void drawItem (QPainter *p, const QRect &r, int flags, const QColorGroup &g, bool enabled, const QPixmap *pixmap, const QString &text, int len=-1, const QColor *penColor=0) const
virtual void drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawControlMask (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const =0
virtual QRect subRect (SubRect r, const QWidget *widget) const =0
virtual void drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, SCFlags sub=(uint) SC_All, SCFlags subActive=SC_None, const QStyleOption &=QStyleOption::Default) const =0
virtual void drawComplexControlMask (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const =0
virtual QRect querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const =0
virtual SubControl querySubControl (ComplexControl control, const QWidget *widget, const QPoint &pos, const QStyleOption &=QStyleOption::Default) const =0
virtual int pixelMetric (PixelMetric metric, const QWidget *widget=0) const =0
virtual QSize sizeFromContents (ContentsType contents, const QWidget *widget, const QSize &contentsSize, const QStyleOption &=QStyleOption::Default) const =0
virtual int styleHint (StyleHint stylehint, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default, QStyleHintReturn *returnData=0) const =0
virtual QPixmap stylePixmap (StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const =0
int defaultFrameWidth () const
void tabbarMetrics (const QWidget *t, int &hf, int &vf, int &ov) const
QSize scrollBarExtent () const

Métodos públicos estáticos

static QRect visualRect (const QRect &logical, const QWidget *w)
static QRect visualRect (const QRect &logical, const QRect &bounding)
static QRect visualRect (const QRect &logical, const QWidget *w)
static QRect visualRect (const QRect &logical, const QRect &bounding)

Descripción detallada

The QStyle class specifies the look and feel of a GUI.

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.

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.

In Qt 1.x the look and feel option for widgets was specified by a single value: the GUIStyle. Starting with Qt 2.0, this notion was expanded to allow the look to be specified by virtual drawing functions.

Derived classes may reimplement some or all of the drawing functions to modify the look of all widgets that use those functions.

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 -reverse to check the mirrored layout. Also notice, that for a reversed layout, the light usually comes from top right instead of top left.

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.

In Qt 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.

For information on changing elements of an existing style or creating your own style see the Style overview.

Styles can also be created as plugins.


Documentación de los 'Typedef' miembros de la clase


Documentación de las enumeraciones miembro de la clase

This enum represents a ComplexControl. ComplexControls have different behaviour depending upon where the user clicks on them or which keys are pressed.

CC_SpinWidget CC_ComboBox CC_ScrollBar CC_Slider CC_ToolButton CC_TitleBar CC_ListView

CC_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

Ver también:
SubControl drawComplexControl()
Valores de enumeraciones:
CC_SpinWidget 
CC_ComboBox 
CC_ScrollBar 
CC_Slider 
CC_ToolButton 
CC_TitleBar 
CC_ListView 
CC_CustomBase 
CC_SpinWidget 
CC_ComboBox 
CC_ScrollBar 
CC_Slider 
CC_ToolButton 
CC_TitleBar 
CC_ListView 
CC_CustomBase 
Valores de enumeraciones:
CC_SpinWidget 
CC_ComboBox 
CC_ScrollBar 
CC_Slider 
CC_ToolButton 
CC_TitleBar 
CC_ListView 
CC_CustomBase 
CC_SpinWidget 
CC_ComboBox 
CC_ScrollBar 
CC_Slider 
CC_ToolButton 
CC_TitleBar 
CC_ListView 
CC_CustomBase 

This enum represents a ContentsType. It is used to calculate sizes for the contents of various widgets.

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 base value for custom ControlElements. All values above this are reserved for custom use. Custom values must be greater than this value.

Ver también:
sizeFromContents()
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 

This enum represents a ControlElement. A ControlElement is part of a widget that performs some action or displays information to the user.

CE_PushButton the bevel and default indicator of a QPushButton. CE_PushButtonLabel the label (iconset with text or pixmap) of a QPushButton.

CE_CheckBox the indicator of a QCheckBox. CE_CheckBoxLabel the label (text or pixmap) of a QCheckBox.

CE_RadioButton the indicator of a QRadioButton. CE_RadioButtonLabel the label (text or pixmap) of a QRadioButton.

CE_TabBarTab the tab within a QTabBar (a QTab). CE_TabBarLabel the label within a QTab.

CE_ProgressBarGroove the groove where the progress indicator is drawn in a QProgressBar. CE_ProgressBarContents the progress indicator of a QProgressBar. CE_ProgressBarLabel the text label of a QProgressBar.

CE_PopupMenuItem a menu item in a QPopupMenu. CE_PopupMenuScroller scrolling areas in a popumenu when the style supports scrolling. CE_PopupMenuHorizontalExtra extra frame area set aside with PM_PopupMenuFrameHorizontalExtra CE_PopupMenuVerticalExtra extra frame area set aside with PM_PopupMenuFrameVerticalExtra

CE_MenuBarItem a menu item in a QMenuBar.

CE_ToolButtonLabel a tool button's label.

CE_MenuBarEmptyArea the empty area of a QMenuBar. CE_DockWindowEmptyArea the empty area of a QDockWindow.

CE_ToolBoxTab the toolbox's tab area CE_HeaderLabel the header's label

CE_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

Ver también:
drawControl()
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 

This enum represents a PixelMetric. A PixelMetric is a style dependent size represented as a single pixel value.

PM_ButtonMargin amount of whitespace between pushbutton labels and the frame. PM_ButtonDefaultIndicator width of the default-button indicator frame. PM_MenuButtonIndicator width of the menu button indicator proportional to the widget height. PM_ButtonShiftHorizontal horizontal contents shift of a button when the button is down. PM_ButtonShiftVertical vertical contents shift of a button when the button is down.

PM_DefaultFrameWidth default frame width, usually 2. PM_SpinBoxFrameWidth frame width of a spin box. PM_MDIFrameWidth frame width of an MDI window. PM_MDIMinimizedWidth width of a minimized MSI window.

PM_MaximumDragDistance 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.

PM_ScrollBarExtent width of a vertical scrollbar and the height of a horizontal scrollbar. PM_ScrollBarSliderMin the minimum height of a vertical scrollbar's slider and the minimum width of a horiztonal scrollbar slider.

PM_SliderThickness total slider thickness. PM_SliderControlThickness thickness of the slider handle. PM_SliderLength length of the slider. PM_SliderTickmarkOffset the offset between the tickmarks and the slider. PM_SliderSpaceAvailable the available space for the slider to move.

PM_DockWindowSeparatorExtent width of a separator in a horiztonal dock window and the height of a separator in a vertical dock window. PM_DockWindowHandleExtent width of the handle in a horizontal dock window and the height of the handle in a vertical dock window. PM_DockWindowFrameWidth frame width of a dock window.

PM_MenuBarFrameWidth frame width of a menubar.

PM_MenuBarItemSpacing spacing between menubar items. PM_ToolBarItemSpacing spacing between toolbar items.

PM_TabBarTabOverlap number of pixels the tabs should overlap. PM_TabBarTabHSpace extra space added to the tab width. PM_TabBarTabVSpace extra space added to the tab height. PM_TabBarBaseHeight height of the area between the tab bar and the tab pages. PM_TabBarBaseOverlap number of pixels the tab bar overlaps the tab bar base. PM_TabBarScrollButtonWidth PM_TabBarTabShiftHorizontal horizontal pixel shift when a tab is selected. PM_TabBarTabShiftVertical vertical pixel shift when a tab is selected.

PM_ProgressBarChunkWidth width of a chunk in a progress bar indicator.

PM_SplitterWidth width of a splitter.

PM_TitleBarHeight height of the title bar. PM_PopupMenuFrameHorizontalExtra additional border, e.g. for panels PM_PopupMenuFrameVerticalExtra additional border, e.g. for panels

PM_IndicatorWidth width of a check box indicator. PM_IndicatorHeight height of a checkbox indicator. PM_ExclusiveIndicatorWidth width of a radio button indicator. PM_ExclusiveIndicatorHeight height of a radio button indicator.

PM_PopupMenuScrollerHeight height of the scroller area in a popupmenu. PM_PopupMenuScrollerHeight height of the scroller area in a popupmenu. PM_CheckListButtonSize area (width/height) of the checkbox/radiobutton in a QCheckListItem PM_CheckListControllerSize area (width/height) of the controller in a QCheckListItem

PM_DialogButtonsSeparator distance between buttons in a dialog buttons widget. PM_DialogButtonsButtonWidth minimum width of a button in a dialog buttons widget. PM_DialogButtonsButtonHeight minimum height of a button in a dialog buttons widget.

PM_HeaderMarkSize PM_HeaderGripMargin PM_HeaderMargin

PM_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

Ver también:
pixelMetric()
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 

This enum represents the PrimitiveElements of a style. A PrimitiveElement is a common GUI element, such as a checkbox indicator or pushbutton bevel.

PE_ButtonCommand button used to initiate an action, for example, a QPushButton. PE_ButtonDefault this button is the default button, e.g. in a dialog. PE_ButtonBevel generic button bevel. PE_ButtonTool tool button, for example, a QToolButton. PE_ButtonDropDown drop down button, for example, a tool button that displays a popup menu, for example, QPopupMenu.

PE_FocusRect generic focus indicator.

PE_ArrowUp up arrow. PE_ArrowDown down arrow. PE_ArrowRight right arrow. PE_ArrowLeft left arrow.

PE_SpinWidgetUp up symbol for a spin widget, for example a QSpinBox. PE_SpinWidgetDown down symbol for a spin widget. PE_SpinWidgetPlus increase symbol for a spin widget. PE_SpinWidgetMinus decrease symbol for a spin widget.

PE_Indicator on/off indicator, for example, a QCheckBox. PE_IndicatorMask bitmap mask for an indicator. PE_ExclusiveIndicator exclusive on/off indicator, for example, a QRadioButton. PE_ExclusiveIndicatorMask bitmap mask for an exclusive indicator.

PE_DockWindowHandle tear off handle for dock windows and toolbars, for example {QDockWindow}s and {QToolBar}s. PE_DockWindowSeparator item separator for dock window and toolbar contents. PE_DockWindowResizeHandle resize handle for dock windows.

PE_Splitter splitter handle; see also QSplitter.

PE_Panel generic panel frame; see also QFrame. PE_PanelPopup panel frame for popup windows/menus; see also QPopupMenu. PE_PanelMenuBar panel frame for menu bars. PE_PanelDockWindow panel frame for dock windows and toolbars. PE_PanelTabWidget panel frame for tab widgets. PE_PanelLineEdit panel frame for line edits. PE_PanelGroupBox panel frame for group boxes.

PE_TabBarBase area below tabs in a tab widget, for example, QTab.

PE_HeaderSection section of a list or table header; see also QHeader. PE_HeaderArrow arrow used to indicate sorting on a list or table header PE_StatusBarSection section of a status bar; see also QStatusBar.

PE_GroupBoxFrame frame around a group box; see also QGroupBox. PE_WindowFrame frame around a MDI window or a docking window

PE_Separator generic separator.

PE_SizeGrip window resize handle; see also QSizeGrip.

PE_CheckMark generic check mark; see also QCheckBox.

PE_ScrollBarAddLine scrollbar line increase indicator (i.e. scroll down); see also QScrollBar. PE_ScrollBarSubLine scrollbar line decrease indicator (i.e. scroll up). PE_ScrollBarAddPage scolllbar page increase indicator (i.e. page down). PE_ScrollBarSubPage scrollbar page decrease indicator (i.e. page up). PE_ScrollBarSlider scrollbar slider PE_ScrollBarFirst scrollbar first line indicator (i.e. home). PE_ScrollBarLast scrollbar last line indicator (i.e. end).

PE_ProgressBarChunk section of a progress bar indicator; see also QProgressBar.

PE_CheckListController controller part of a listview item PE_CheckListIndicator checkbox part of a listview item PE_CheckListExclusiveIndicator radiobutton part of a listview item PE_RubberBand rubber band used in such things as iconview

PE_CustomBase base value for custom PrimitiveElements. All values above this are reserved for custom use. Custom values must be greater than this value.

Ver también:
drawPrimitive()
Valores de enumeraciones:
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 
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 

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.

Style_Default Style_Enabled Style_Raised Style_Sunken Style_Off Style_NoChange Style_On Style_Down Style_Horizontal Style_HasFocus Style_Top Style_Bottom Style_FocusAtBorder Style_AutoRaise Style_MouseOver Style_Up Style_Selected Style_HasFocus Style_Active Style_ButtonDefault

Ver también:
drawPrimitive()
Valores de enumeraciones:
Style_Default 
Style_Enabled 
Style_Raised 
Style_Sunken 
Style_Off 
Style_NoChange 
Style_On 
Style_Down 
Style_Horizontal 
Style_HasFocus 
Style_Top 
Style_Bottom 
Style_FocusAtBorder 
Style_AutoRaise 
Style_MouseOver 
Style_Up 
Style_Selected 
Style_Active 
Style_ButtonDefault 
Style_Default 
Style_Enabled 
Style_Raised 
Style_Sunken 
Style_Off 
Style_NoChange 
Style_On 
Style_Down 
Style_Horizontal 
Style_HasFocus 
Style_Top 
Style_Bottom 
Style_FocusAtBorder 
Style_AutoRaise 
Style_MouseOver 
Style_Up 
Style_Selected 
Style_Active 
Style_ButtonDefault 
Valores de enumeraciones:
Style_Default 
Style_Enabled 
Style_Raised 
Style_Sunken 
Style_Off 
Style_NoChange 
Style_On 
Style_Down 
Style_Horizontal 
Style_HasFocus 
Style_Top 
Style_Bottom 
Style_FocusAtBorder 
Style_AutoRaise 
Style_MouseOver 
Style_Up 
Style_Selected 
Style_Active 
Style_ButtonDefault 
Style_Default 
Style_Enabled 
Style_Raised 
Style_Sunken 
Style_Off 
Style_NoChange 
Style_On 
Style_Down 
Style_Horizontal 
Style_HasFocus 
Style_Top 
Style_Bottom 
Style_FocusAtBorder 
Style_AutoRaise 
Style_MouseOver 
Style_Up 
Style_Selected 
Style_Active 
Style_ButtonDefault 

This enum represents a StyleHint. A StyleHint is a general look and/or feel hint.

SH_EtchDisabledText disabled text is "etched" like Windows.

SH_GUIStyle the GUI style to use.

SH_ScrollBar_BackgroundMode the background mode for a QScrollBar. Possible values are any of those in the BackgroundMode enum.

SH_ScrollBar_MiddleClickAbsolutePosition 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.

SH_ScrollBar_LeftClickAbsolutePosition 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.

SH_ScrollBar_ScrollWhenPointerLeavesControl 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.

SH_TabBar_Alignment the alignment for tabs in a QTabWidget. Possible values are Qt::AlignLeft, Qt::AlignCenter and Qt::AlignRight.

SH_Header_ArrowAlignment the placement of the sorting indicator may appear in list or table headers. Possible values are Qt::Left or Qt::Right.

SH_Slider_SnapToValue sliders snap to values while moving, like Windows

SH_Slider_SloppyKeyEvents key presses handled in a sloppy manner, i.e. left on a vertical slider subtracts a line.

SH_ProgressDialog_CenterCancelButton center button on progress dialogs, like Motif, otherwise right aligned.

SH_ProgressDialog_TextLabelAlignment Qt::AlignmentFlags -- text label alignment in progress dialogs; Center on windows, Auto|VCenter otherwise.

SH_PrintDialog_RightAlignButtons right align buttons in the print dialog, like Windows.

SH_MainWindow_SpaceBelowMenuBar 1 or 2 pixel space between the menubar and the dockarea, like Windows.

SH_FontDialog_SelectAssociatedText select the text in the line edit, or when selecting an item from the listbox, or when the line edit receives focus, like Windows.

SH_PopupMenu_AllowActiveAndDisabled allows disabled menu items to be active.

SH_PopupMenu_SpaceActivatesItem pressing Space activates the item, like Motif.

SH_PopupMenu_SubMenuPopupDelay the number of milliseconds to wait before opening a submenu; 256 on windows, 96 on Motif.

SH_PopupMenu_Scrollable whether popupmenu's must support scrolling.

SH_PopupMenu_SloppySubMenus whether popupmenu's must support sloppy submenu; as implemented on Mac OS.

SH_ScrollView_FrameOnlyAroundContents whether scrollviews draw their frame only around contents (like Motif), or around contents, scrollbars and corner widgets (like Windows).

SH_MenuBar_AltKeyNavigation menubars items are navigable by pressing Alt, followed by using the arrow keys to select the desired item.

SH_ComboBox_ListMouseTracking mouse tracking in combobox dropdown lists.

SH_PopupMenu_MouseTracking mouse tracking in popup menus.

SH_MenuBar_MouseTracking mouse tracking in menubars.

SH_ItemView_ChangeHighlightOnFocus gray out selected items when losing focus.

SH_Widget_ShareActivation turn on sharing activation with floating modeless dialogs.

SH_TabBar_SelectMouseType which type of mouse event should cause a tab to be selected.

SH_ListViewExpand_SelectMouseType which type of mouse event should cause a listview expansion to be selected.

SH_TabBar_PreferNoArrows whether a tabbar should suggest a size to prevent scoll arrows.

SH_ComboBox_Popup allows popups as a combobox dropdown menu.

SH_Workspace_FillSpaceOnMaximize the workspace should maximize the client area.

SH_TitleBar_NoBorder the titlebar has no border

SH_ScrollBar_StopMouseOverSlider stops autorepeat when slider reaches mouse

SH_BlinkCursorWhenTextSelected whether cursor should blink when text is selected

SH_RichText_FullWidthSelection whether richtext selections should extend the full width of the document.

SH_GroupBox_TextLabelVerticalAlignment how to vertically align a groupbox's text label.

SH_GroupBox_TextLabelColor how to paint a groupbox's text label.

SH_DialogButtons_DefaultButton which buttons gets the default status in a dialog's button widget.

SH_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

SH_ToolButton_Uses3D indicates whether QToolButtons should use a 3D frame when the mouse is over them

SH_ToolBox_SelectedPageTitleBold Boldness of the selected page title in a QToolBox.

SH_LineEdit_PasswordCharacter The QChar Unicode character to be used for passwords.

SH_Table_GridLineColor

SH_UnderlineAccelerator whether accelerators are underlined

Ver también:
styleHint()
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
SP_TitleBarMinButton 
SP_TitleBarMaxButton 
SP_TitleBarCloseButton 
SP_TitleBarNormalButton 
SP_TitleBarShadeButton 
SP_TitleBarUnshadeButton 
SP_DockWindowCloseButton 
SP_MessageBoxInformation 
SP_MessageBoxWarning 
SP_MessageBoxCritical 
SP_MessageBoxQuestion 
SP_CustomBase 
SP_TitleBarMinButton 
SP_TitleBarMaxButton 
SP_TitleBarCloseButton 
SP_TitleBarNormalButton 
SP_TitleBarShadeButton 
SP_TitleBarUnshadeButton 
SP_DockWindowCloseButton 
SP_MessageBoxInformation 
SP_MessageBoxWarning 
SP_MessageBoxCritical 
SP_MessageBoxQuestion 
SP_CustomBase 

This enum represents a StylePixmap. A StylePixmap is a pixmap that can follow some existing GUI style or guideline.

SP_TitleBarMinButton minimize button on titlebars. For example, in a QWorkspace. SP_TitleBarMaxButton maximize button on titlebars. SP_TitleBarCloseButton close button on titlebars. SP_TitleBarNormalButton normal (restore) button on titlebars. SP_TitleBarShadeButton shade button on titlebars. SP_TitleBarUnshadeButton unshade button on titlebars. SP_MessageBoxInformation the 'information' icon. SP_MessageBoxWarning the 'warning' icon. SP_MessageBoxCritical the 'critical' icon. SP_MessageBoxQuestion the 'question' icon.

SP_DockWindowCloseButton close button on dock windows; see also QDockWindow.

SP_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

Ver también:
stylePixmap()
Valores de enumeraciones:
SP_TitleBarMinButton 
SP_TitleBarMaxButton 
SP_TitleBarCloseButton 
SP_TitleBarNormalButton 
SP_TitleBarShadeButton 
SP_TitleBarUnshadeButton 
SP_DockWindowCloseButton 
SP_MessageBoxInformation 
SP_MessageBoxWarning 
SP_MessageBoxCritical 
SP_MessageBoxQuestion 
SP_CustomBase 
SP_TitleBarMinButton 
SP_TitleBarMaxButton 
SP_TitleBarCloseButton 
SP_TitleBarNormalButton 
SP_TitleBarShadeButton 
SP_TitleBarUnshadeButton 
SP_DockWindowCloseButton 
SP_MessageBoxInformation 
SP_MessageBoxWarning 
SP_MessageBoxCritical 
SP_MessageBoxQuestion 
SP_CustomBase 
Valores de enumeraciones:
SC_None 
SC_ScrollBarAddLine 
SC_ScrollBarSubLine 
SC_ScrollBarAddPage 
SC_ScrollBarSubPage 
SC_ScrollBarFirst 
SC_ScrollBarLast 
SC_ScrollBarSlider 
SC_ScrollBarGroove 
SC_SpinWidgetUp 
SC_SpinWidgetDown 
SC_SpinWidgetFrame 
SC_SpinWidgetEditField 
SC_SpinWidgetButtonField 
SC_ComboBoxFrame 
SC_ComboBoxEditField 
SC_ComboBoxArrow 
SC_ComboBoxListBoxPopup 
SC_SliderGroove 
SC_SliderHandle 
SC_SliderTickmarks 
SC_ToolButton 
SC_ToolButtonMenu 
SC_TitleBarLabel 
SC_TitleBarSysMenu 
SC_TitleBarMinButton 
SC_TitleBarMaxButton 
SC_TitleBarCloseButton 
SC_TitleBarNormalButton 
SC_TitleBarShadeButton 
SC_TitleBarUnshadeButton 
SC_ListView 
SC_ListViewBranch 
SC_ListViewExpand 
SC_All 
SC_None 
SC_ScrollBarAddLine 
SC_ScrollBarSubLine 
SC_ScrollBarAddPage 
SC_ScrollBarSubPage 
SC_ScrollBarFirst 
SC_ScrollBarLast 
SC_ScrollBarSlider 
SC_ScrollBarGroove 
SC_SpinWidgetUp 
SC_SpinWidgetDown 
SC_SpinWidgetFrame 
SC_SpinWidgetEditField 
SC_SpinWidgetButtonField 
SC_ComboBoxFrame 
SC_ComboBoxEditField 
SC_ComboBoxArrow 
SC_ComboBoxListBoxPopup 
SC_SliderGroove 
SC_SliderHandle 
SC_SliderTickmarks 
SC_ToolButton 
SC_ToolButtonMenu 
SC_TitleBarLabel 
SC_TitleBarSysMenu 
SC_TitleBarMinButton 
SC_TitleBarMaxButton 
SC_TitleBarCloseButton 
SC_TitleBarNormalButton 
SC_TitleBarShadeButton 
SC_TitleBarUnshadeButton 
SC_ListView 
SC_ListViewBranch 
SC_ListViewExpand 
SC_All 

This enum represents a SubControl within a ComplexControl.

SC_None special value that matches no other SubControl.

SC_ScrollBarAddLine scrollbar add line (i.e. down/right arrow); see also QScrollbar. SC_ScrollBarSubLine scrollbar sub line (i.e. up/left arrow). SC_ScrollBarAddPage scrollbar add page (i.e. page down). SC_ScrollBarSubPage scrollbar sub page (i.e. page up). SC_ScrollBarFirst scrollbar first line (i.e. home). SC_ScrollBarLast scrollbar last line (i.e. end). SC_ScrollBarSlider scrollbar slider handle. SC_ScrollBarGroove special subcontrol which contains the area in which the slider handle may move.

SC_SpinWidgetUp spinwidget up/increase; see also QSpinBox. SC_SpinWidgetDown spinwidget down/decrease. SC_SpinWidgetFrame spinwidget frame. SC_SpinWidgetEditField spinwidget edit field. SC_SpinWidgetButtonField spinwidget button field.

SC_ComboBoxEditField combobox edit field; see also QComboBox. SC_ComboBoxArrow combobox arrow SC_ComboBoxFrame combobox frame SC_ComboBoxListBoxPopup combobox list box

SC_SliderGroove special subcontrol which contains the area in which the slider handle may move. SC_SliderHandle slider handle. SC_SliderTickmarks slider tickmarks.

SC_ToolButton tool button; see also QToolbutton. SC_ToolButtonMenu subcontrol for opening a popup menu in a tool button; see also QPopupMenu.

SC_TitleBarSysMenu system menu button (i.e. restore, close, etc.). SC_TitleBarMinButton minimize button. SC_TitleBarMaxButton maximize button. SC_TitleBarCloseButton close button. SC_TitleBarLabel window title label. SC_TitleBarNormalButton normal (restore) button. SC_TitleBarShadeButton shade button. SC_TitleBarUnshadeButton unshade button.

SC_ListView the list view area. SC_ListViewBranch (internal) SC_ListViewExpand expand item (i.e. show/hide child items).

SC_All special value that matches all SubControls.

Ver también:
ComplexControl
Valores de enumeraciones:
SC_None 
SC_ScrollBarAddLine 
SC_ScrollBarSubLine 
SC_ScrollBarAddPage 
SC_ScrollBarSubPage 
SC_ScrollBarFirst 
SC_ScrollBarLast 
SC_ScrollBarSlider 
SC_ScrollBarGroove 
SC_SpinWidgetUp 
SC_SpinWidgetDown 
SC_SpinWidgetFrame 
SC_SpinWidgetEditField 
SC_SpinWidgetButtonField 
SC_ComboBoxFrame 
SC_ComboBoxEditField 
SC_ComboBoxArrow 
SC_ComboBoxListBoxPopup 
SC_SliderGroove 
SC_SliderHandle 
SC_SliderTickmarks 
SC_ToolButton 
SC_ToolButtonMenu 
SC_TitleBarLabel 
SC_TitleBarSysMenu 
SC_TitleBarMinButton 
SC_TitleBarMaxButton 
SC_TitleBarCloseButton 
SC_TitleBarNormalButton 
SC_TitleBarShadeButton 
SC_TitleBarUnshadeButton 
SC_ListView 
SC_ListViewBranch 
SC_ListViewExpand 
SC_All 
SC_None 
SC_ScrollBarAddLine 
SC_ScrollBarSubLine 
SC_ScrollBarAddPage 
SC_ScrollBarSubPage 
SC_ScrollBarFirst 
SC_ScrollBarLast 
SC_ScrollBarSlider 
SC_ScrollBarGroove 
SC_SpinWidgetUp 
SC_SpinWidgetDown 
SC_SpinWidgetFrame 
SC_SpinWidgetEditField 
SC_SpinWidgetButtonField 
SC_ComboBoxFrame 
SC_ComboBoxEditField 
SC_ComboBoxArrow 
SC_ComboBoxListBoxPopup 
SC_SliderGroove 
SC_SliderHandle 
SC_SliderTickmarks 
SC_ToolButton 
SC_ToolButtonMenu 
SC_TitleBarLabel 
SC_TitleBarSysMenu 
SC_TitleBarMinButton 
SC_TitleBarMaxButton 
SC_TitleBarCloseButton 
SC_TitleBarNormalButton 
SC_TitleBarShadeButton 
SC_TitleBarUnshadeButton 
SC_ListView 
SC_ListViewBranch 
SC_ListViewExpand 
SC_All 

This enum represents a sub-area of a widget. Style implementations would use these areas to draw the different parts of a widget.

SR_PushButtonContents area containing the label (iconset with text or pixmap). SR_PushButtonFocusRect area for the focus rect (usually larger than the contents rect).

SR_CheckBoxIndicator area for the state indicator (e.g. check mark). SR_CheckBoxContents area for the label (text or pixmap). SR_CheckBoxFocusRect area for the focus indicator.

SR_RadioButtonIndicator area for the state indicator. SR_RadioButtonContents area for the label. SR_RadioButtonFocusRect area for the focus indicator.

SR_ComboBoxFocusRect area for the focus indicator.

SR_SliderFocusRect area for the focus indicator.

SR_DockWindowHandleRect area for the tear-off handle.

SR_ProgressBarGroove area for the groove. SR_ProgressBarContents area for the progress indicator. SR_ProgressBarLabel area for the text label.

SR_ToolButtonContents area for the tool button's label.

SR_DialogButtonAccept area for a dialog's accept button. SR_DialogButtonReject area for a dialog's reject button. SR_DialogButtonApply area for a dialog's apply button. SR_DialogButtonHelp area for a dialog's help button. SR_DialogButtonAll area for a dialog's all button. SR_DialogButtonRetry area for a dialog's retry button. SR_DialogButtonAbort area for a dialog's abort button. SR_DialogButtonIgnore area for a dialog's ignore button. SR_DialogButtonCustom area for a dialog's custom widget area (in button row).

SR_ToolBoxTabContents area for a toolbox tab's icon and label

SR_CustomBase base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.

Ver también:
subRect()
Valores de enumeraciones:
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 
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 
Valores de enumeraciones:
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 
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 

Documentación del constructor y destructor

QStyle::QStyle ( )

Constructs a QStyle.

QStyle::~QStyle ( ) [virtual]

Destroys the style and frees all allocated resources.

QStyle::QStyle ( )
virtual QStyle::~QStyle ( ) [virtual]

Documentación de las funciones miembro

int QStyle::defaultFrameWidth ( ) const [inline]
int QStyle::defaultFrameWidth ( ) const [inline]
void QStyle::drawComplexControl ( ComplexControl  control,
QPainter p,
const QWidget widget,
const QRect r,
const QColorGroup cg,
SFlags  how = Style_Default,
SCFlags  sub = (uint)SC_All,
SCFlags  subActive = SC_None,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Draws the ComplexControl control using the painter p in the area r. Colors are used from the color group cg. The sub argument specifies which SubControls to draw. Multiple SubControls can be OR'ed together. The subActive argument specifies which SubControl is active.

The rect r 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().

The how 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.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See the table below for the appropriate widget and opt usage:

ComplexControl
& 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 ) opt.arrowType() When the tool button only contains an arrow, t 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 QWidget *) Style_Enabled Set if the titlebar is enabled. Unused.  

{CC_ListView}(const QListView *) Style_Enabled Set if the titlebar is enabled. QStyleOption ( QListViewItem *item ) opt.listViewItem() item is the item that needs branches drawn

Ver también:
ComplexControl, SubControl

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QWindowsStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::drawComplexControl ( ComplexControl  control,
QPainter p,
const QWidget widget,
const QRect r,
const QColorGroup cg,
SFlags  how = Style_Default,
SCFlags  sub = (uint) SC_All,
SCFlags  subActive = SC_None,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
virtual void QStyle::drawComplexControlMask ( ComplexControl  control,
QPainter p,
const QWidget widget,
const QRect r,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]

Implementado en QCommonStyle y QCommonStyle.

void QStyle::drawComplexControlMask ( ComplexControl  control,
QPainter p,
const QWidget widget,
const QRect r,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Draw a bitmask for the ComplexControl control using the painter p in the area r. See drawComplexControl() for an explanation of the use of the widget and opt arguments.

The rect r 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().

Ver también:
drawComplexControl() ComplexControl

Implementado en QCommonStyle y QCommonStyle.

virtual void QStyle::drawControl ( ControlElement  element,
QPainter p,
const QWidget widget,
const QRect r,
const QColorGroup cg,
SFlags  how = Style_Default,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
void QStyle::drawControl ( ControlElement  element,
QPainter p,
const QWidget widget,
const QRect r,
const QColorGroup cg,
SFlags  how = Style_Default,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Draws the ControlElement element using the painter p in the area r. Colors are used from the color group cg.

The rect r should be in screen coordinates.

The how 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.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of element. The opt argument can be used to pass extra information required when drawing the ControlElement. Note that opt may be the default value even for ControlElements that can make use of the extra options. See the table below for the appropriate widget and opt usage:

ControlElement
& Widget Cast Style Flags Notes Options Notes

{CE_PushButton}(const QPushButton *)

and

{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 *)

and

{CE_CheckBoxLabel}(const QCheckBox *)

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 *)

and

{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 *)

and

{CE_TabBarLabel}(const QTabBar *)

Style_Enabled Set if the tabbar and tab is enabled. QStyleOption ( QTab *t ) opt.tab() t is the QTab being drawn. Style_Selected Set if the tab is the current tab.

{CE_ProgressBarGroove}(const QProgressBar *)

and

{CE_ProgressBarContents}(const QProgressBar *)

and

{CE_ProgressBarLabel}(const QProgressBar *)

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 ) opt.menuItem() opt.tabWidth() opt.maxIconWidth() mi is the menu item being drawn. QMenuItem is currently an internal class. Style_Active Set if the menuitem is the current item. tabwidth 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). maxpmwidth 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 ) opt.menuItem() mi 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 ) opt.arrowType() When the tool button only contains an arrow, t 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 Set if the button is not down, not on and doesn't contain the mouse when auto-raise is enabled.

Ver también:
ControlElement, StyleFlags

Implementado en BluecurveStyle, QtCKStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QWindowsStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::drawControlMask ( ControlElement  element,
QPainter p,
const QWidget widget,
const QRect r,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
void QStyle::drawControlMask ( ControlElement  element,
QPainter p,
const QWidget widget,
const QRect r,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Draw a bitmask for the ControlElement element using the painter p in the area r. See drawControl() for an explanation of the use of the widget and opt arguments.

The rect r should be in screen coordinates.

Ver también:
drawControl(), ControlElement

Implementado en BluecurveStyle, QCommonStyle y QCommonStyle.

virtual void QStyle::drawItem ( QPainter p,
const QRect r,
int  flags,
const QColorGroup g,
bool  enabled,
const QPixmap pixmap,
const QString text,
int  len = -1,
const QColor penColor = 0 
) const [virtual]
void QStyle::drawItem ( QPainter p,
const QRect r,
int  flags,
const QColorGroup g,
bool  enabled,
const QPixmap pixmap,
const QString text,
int  len = -1,
const QColor penColor = 0 
) const [virtual]

Draws the text or pixmap in rectangle r using painter p and color group g. The pen color is specified with penColor. The enabled bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn. If len is -1 (the default) all the text is drawn; otherwise only the first len characters of text are drawn. The text is aligned and wrapped according to the alignment flags (see {Qt::AlignmentFlags}).

By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.

virtual void QStyle::drawPrimitive ( PrimitiveElement  pe,
QPainter p,
const QRect r,
const QColorGroup cg,
SFlags  flags = Style_Default,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
void QStyle::drawPrimitive ( PrimitiveElement  pe,
QPainter p,
const QRect r,
const QColorGroup cg,
SFlags  flags = Style_Default,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Draws the style PrimitiveElement pe using the painter p in the area r. Colors are used from the color group cg.

The rect r should be in screen coordinates.

The flags argument is used to control how the PrimitiveElement is drawn. Multiple flags can be OR'ed together.

For example, a pressed button would be drawn with the flags Style_Enabled and Style_Down.

The opt argument can be used to control how various PrimitiveElements are drawn. Note that opt may be the default value even for PrimitiveElements that make use of extra options. When opt is non-default, it is used as follows:

PrimitiveElement Options Notes PE_FocusRect QStyleOption ( const QColor & bg ) opt.color() bg is the background color on which the focus rect is being drawn. PE_Panel QStyleOption ( int linewidth, int midlinewidth ) opt.lineWidth() opt.midLineWidth() linewidth is the line width for drawing the panel. midlinewidth is the mid-line width for drawing the panel. PE_PanelPopup QStyleOption ( int linewidth, int midlinewidth ) opt.lineWidth() opt.midLineWidth() linewidth is the line width for drawing the panel. midlinewidth is the mid-line width for drawing the panel. PE_PanelMenuBar QStyleOption ( int linewidth, int midlinewidth ) opt.lineWidth() opt.midLineWidth() linewidth is the line width for drawing the panel. midlinewidth is the mid-line width for drawing the panel. PE_PanelDockWindow QStyleOption ( int linewidth, int midlinewidth ) opt.lineWidth() opt.midLineWidth() linewidth is the line width for drawing the panel. midlinewidth is the mid-line width for drawing the panel. PE_GroupBoxFrame QStyleOption ( int linewidth, int midlinewidth, int shape, int shadow ) opt.lineWidth() opt.midLineWidth() opt.frameShape() opt.frameShadow() linewidth is the line width for the group box. midlinewidth is the mid-line width for the group box. shape is the frame shape for the group box. shadow is the frame shadow for the group box.

For all other PrimitiveElements, opt is unused.

Ver también:
StyleFlags

Implementado en BluecurveStyle, QtCKStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QWindowsStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle y QWindowsStyle.

virtual QRect QStyle::itemRect ( QPainter p,
const QRect r,
int  flags,
bool  enabled,
const QPixmap pixmap,
const QString text,
int  len = -1 
) const [virtual]
QRect QStyle::itemRect ( QPainter p,
const QRect r,
int  flags,
bool  enabled,
const QPixmap pixmap,
const QString text,
int  len = -1 
) const [virtual]

Returns the appropriate area (see below) within rectangle r in which to draw the text or pixmap using painter p. If len is -1 (the default) all the text is drawn; otherwise only the first len characters of text are drawn. The text is aligned in accordance with the alignment flags (see {Qt::AlignmentFlags}). The enabled bool indicates whether or not the item is enabled.

If r is larger than the area needed to render the text the rectangle that is returned will be offset within r in accordance with the alignment flags. For example if flags is AlignCenter the returned rectangle will be centered within r. If r is smaller than the area needed the rectangle that is returned will be larger than r (the smallest rectangle large enough to render the text or pixmap).

By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.

int QStyle::pixelMetric ( PixelMetric  metric,
const QWidget widget = 0 
) const [pure virtual]

Returns the pixel metric for metric. The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of metric. Note that widget may be zero even for PixelMetrics that can make use of widget. See the table below for the appropriate widget casts:

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 (const QTabBar *)

Implementado en BluecurveStyle, QtCKStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QWindowsStyle, QCDEStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle y QWindowsStyle.

virtual int QStyle::pixelMetric ( PixelMetric  metric,
const QWidget widget = 0 
) const [pure virtual]
void QStyle::polish ( QPalette ) [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements.

Ver también:
QPalette, QApplication::setPalette()

Reimplementado en QMotifPlusStyle, QMotifStyle, QWindowsStyle, QMotifPlusStyle, QMotifStyle y QWindowsStyle.

void QStyle::polish ( QWidget ) [virtual]

Initializes the appearance of a widget.

This function is called for every widget at some point after it has been fully created but just before it is shown the very first time.

Reasonable actions in this function might be to call QWidget::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 Qt 3.0's style engine you will rarely need to write your own polish(); instead reimplement drawItem(), drawPrimitive(), etc.

The QWidget::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 future widgets.

Ver también:
unPolish()

Reimplementado en BluecurveStyle, QtCKStyle, QMotifPlusStyle, QMotifStyle, QSGIStyle, QWindowsStyle, QMotifPlusStyle, QMotifStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::polish ( QWidget ) [virtual]
void QStyle::polish ( QApplication ) [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Late initialization of the QApplication object.

Ver también:
unPolish()

Reimplementado en QMotifPlusStyle, QMotifStyle, QSGIStyle, QWindowsStyle, QMotifPlusStyle, QMotifStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::polish ( QApplication ) [virtual]
virtual void QStyle::polish ( QPalette ) [virtual]
void QStyle::polishPopupMenu ( QPopupMenu ) [pure virtual]

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()}).

Implementado en BluecurveStyle, QtCKStyle, QMotifStyle, QWindowsStyle, QMotifStyle y QWindowsStyle.

virtual void QStyle::polishPopupMenu ( QPopupMenu ) [pure virtual]
SubControl QStyle::querySubControl ( ComplexControl  control,
const QWidget widget,
const QPoint pos,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Returns the SubControl for widget at the point pos. The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the widget and opt arguments.

Note that pos is passed in screen coordinates. When using querySubControlMetrics() to check for hits and misses, use visualRect() to change the logical coordinates into screen coordinates.

Ver también:
drawComplexControl(), ComplexControl, SubControl, querySubControlMetrics()

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle y QCommonStyle.

virtual SubControl QStyle::querySubControl ( ComplexControl  control,
const QWidget widget,
const QPoint pos,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
virtual QRect QStyle::querySubControlMetrics ( ComplexControl  control,
const QWidget widget,
SubControl  sc,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
QRect QStyle::querySubControlMetrics ( ComplexControl  control,
const QWidget widget,
SubControl  subcontrol,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Returns the rect for the SubControl subcontrol for widget in logical coordinates.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the widget and opt arguments.

Ver también:
drawComplexControl(), ComplexControl, SubControl

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle y QSGIStyle.

QSize QStyle::scrollBarExtent ( ) const [inline]
QSize QStyle::scrollBarExtent ( ) const [inline]
QSize QStyle::sizeFromContents ( ContentsType  contents,
const QWidget widget,
const QSize contentsSize,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Returns the size of widget based on the contents size contentsSize.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of contents. The opt argument can be used to pass extra information required when calculating the size. Note that opt may be the default value even for ContentsTypes that can make use of the extra options. See the table below for the appropriate widget and opt usage:

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 ) opt.menuItem() mi is the menu item to use when calculating the size. QMenuItem is currently an internal class.

Implementado en BluecurveStyle, QCommonStyle, QMotifStyle, QSGIStyle, QWindowsStyle, QCommonStyle, QMotifStyle, QSGIStyle y QWindowsStyle.

virtual QSize QStyle::sizeFromContents ( ContentsType  contents,
const QWidget widget,
const QSize contentsSize,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
int QStyle::styleHint ( StyleHint  stylehint,
const QWidget widget = 0,
const QStyleOption opt = QStyleOption::Default,
QStyleHintReturn *  returnData = 0 
) const [pure virtual]

Returns the style hint stylehint for widget. Currently, widget, opt, and returnData are unused; they're included to allow for future enhancements.

For an explanation of the return value see StyleHint.

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QWindowsStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle y QWindowsStyle.

virtual int QStyle::styleHint ( StyleHint  stylehint,
const QWidget widget = 0,
const QStyleOption = QStyleOption::Default,
QStyleHintReturn *  returnData = 0 
) const [pure virtual]
virtual QPixmap QStyle::stylePixmap ( StylePixmap  stylepixmap,
const QWidget widget = 0,
const QStyleOption = QStyleOption::Default 
) const [pure virtual]
QPixmap QStyle::stylePixmap ( StylePixmap  stylepixmap,
const QWidget widget = 0,
const QStyleOption opt = QStyleOption::Default 
) const [pure virtual]

Returns a pixmap for stylepixmap.

The opt argument can be used to pass extra information required when drawing the ControlElement. Note that opt may be the default value even for StylePixmaps that can make use of the extra options. Currently, the opt argument is unused.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of stylepixmap. See the table below for the appropriate widget casts:

StylePixmap Widget Cast SP_TitleBarMinButton (const QWidget *) SP_TitleBarMaxButton (const QWidget *) SP_TitleBarCloseButton (const QWidget *) SP_TitleBarNormalButton (const QWidget *) SP_TitleBarShadeButton (const QWidget *) SP_TitleBarUnshadeButton (const QWidget *) SP_DockWindowCloseButton (const QDockWindow *)

Ver también:
StylePixmap

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle, QMotifStyle, QWindowsStyle, QCommonStyle, QMotifStyle y QWindowsStyle.

virtual QRect QStyle::subRect ( SubRect  r,
const QWidget widget 
) const [pure virtual]
QRect QStyle::subRect ( SubRect  subrect,
const QWidget widget 
) const [pure virtual]

Returns the sub-area subrect for the widget in logical coordinates.

The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of subrect. See the table below for the appropriate widget casts:

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 QWidget *) SR_ProgressBarGroove (const QProgressBar *) SR_ProgressBarContents (const QProgressBar *) SR_ProgressBarLabel (const QProgressBar *)

The tear-off handle (SR_DockWindowHandleRect) for QDockWindow is a private class. Use QWidget::parentWidget() to access the QDockWindow:

        if ( !widget->parentWidget() )
            return;
        const QDockWindow *dw = (const QDockWindow *) widget->parentWidget();
Ver también:
SubRect

Implementado en BluecurveStyle, QtCKStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle, QWindowsStyle, QCommonStyle, QMotifPlusStyle, QMotifStyle, QPlatinumStyle, QSGIStyle y QWindowsStyle.

void QStyle::tabbarMetrics ( const QWidget t,
int hf,
int vf,
int ov 
) const [inline]
void QStyle::tabbarMetrics ( const QWidget t,
int hf,
int vf,
int ov 
) const [inline]
void QStyle::unPolish ( QApplication ) [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Undoes the application polish.

Ver también:
polish()

Reimplementado en QMotifPlusStyle, QSGIStyle, QWindowsStyle, QMotifPlusStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::unPolish ( QWidget ) [virtual]
void QStyle::unPolish ( QWidget ) [virtual]

Undoes the initialization of a widget's appearance.

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.

Ver también:
polish()

Reimplementado en BluecurveStyle, QtCKStyle, QMotifPlusStyle, QSGIStyle, QWindowsStyle, QMotifPlusStyle, QSGIStyle y QWindowsStyle.

virtual void QStyle::unPolish ( QApplication ) [virtual]
QRect QStyle::visualRect ( const QRect logical,
const QWidget w 
) [static]

Returns the rect logical in screen coordinates. The bounding rect for widget w is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.

Ver también:
QApplication::reverseLayout()
static QRect QStyle::visualRect ( const QRect logical,
const QRect bounding 
) [static]
static QRect QStyle::visualRect ( const QRect logical,
const QWidget w 
) [static]
QRect QStyle::visualRect ( const QRect logical,
const QRect bounding 
) [static]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns the rect logical in screen coordinates. The rect bounding is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.

Ver también:
QApplication::reverseLayout()

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'