Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QStyle Class Referenceabstract
Inheritance diagram for QtGui.QStyle:
Collaboration diagram for QtGui.QStyle:

Public Types

enum  ComplexControl {
  CC_ComboBox = 1, CC_CustomBase = -268435456, CC_Dial = 7, CC_GroupBox = 8,
  CC_MdiControls = 9, CC_Q3ListView = 6, CC_ScrollBar = 2, CC_Slider = 3,
  CC_SpinBox = 0, CC_TitleBar = 5, CC_ToolButton = 4
}
  More...
 
enum  ContentsType {
  CT_CheckBox = 1, CT_ComboBox = 4, CT_CustomBase = -268435456, CT_DialogButtons = 20,
  CT_GroupBox = 22, CT_HeaderSection = 21, CT_ItemViewItem = 24, CT_LineEdit = 16,
  CT_MdiControls = 23, CT_Menu = 11, CT_MenuBar = 10, CT_MenuBarItem = 9,
  CT_MenuItem = 8, CT_ProgressBar = 7, CT_PushButton = 0, CT_Q3DockWindow = 6,
  CT_Q3Header = 15, CT_RadioButton = 2, CT_ScrollBar = 14, CT_SizeGrip = 18,
  CT_Slider = 13, CT_SpinBox = 17, CT_Splitter = 5, CT_TabBarTab = 12,
  CT_TabWidget = 19, CT_ToolButton = 3
}
  More...
 
enum  ControlElement {
  CE_CheckBox = 3, CE_CheckBoxLabel = 4, CE_ColumnViewGrip = 45, CE_ComboBoxLabel = 40,
  CE_CustomBase = -268435456, CE_DockWidgetTitle = 31, CE_FocusFrame = 39, CE_Header = 23,
  CE_HeaderEmptyArea = 44, CE_HeaderLabel = 25, CE_HeaderSection = 24, CE_ItemViewItem = 46,
  CE_MenuBarEmptyArea = 21, CE_MenuBarItem = 20, CE_MenuEmptyArea = 19, CE_MenuHMargin = 17,
  CE_MenuItem = 14, CE_MenuScroller = 15, CE_MenuTearoff = 18, CE_MenuVMargin = 16,
  CE_ProgressBar = 10, CE_ProgressBarContents = 12, CE_ProgressBarGroove = 11, CE_ProgressBarLabel = 13,
  CE_PushButton = 0, CE_PushButtonBevel = 1, CE_PushButtonLabel = 2, CE_Q3DockWindowEmptyArea = 26,
  CE_RadioButton = 5, CE_RadioButtonLabel = 6, CE_RubberBand = 30, CE_ScrollBarAddLine = 32,
  CE_ScrollBarAddPage = 34, CE_ScrollBarFirst = 37, CE_ScrollBarLast = 38, CE_ScrollBarSlider = 36,
  CE_ScrollBarSubLine = 33, CE_ScrollBarSubPage = 35, CE_ShapedFrame = 47, CE_SizeGrip = 28,
  CE_Splitter = 29, CE_TabBarTab = 7, CE_TabBarTabLabel = 9, CE_TabBarTabShape = 8,
  CE_ToolBar = 41, CE_ToolBoxTab = 27, CE_ToolBoxTabLabel = 43, CE_ToolBoxTabShape = 42,
  CE_ToolButtonLabel = 22
}
  More...
 
enum  PixelMetric {
  PM_ButtonDefaultIndicator = 1, PM_ButtonIconSize = 77, PM_ButtonMargin = 0, PM_ButtonShiftHorizontal = 3,
  PM_ButtonShiftVertical = 4, PM_CheckBoxLabelSpacing = 72, PM_CheckListButtonSize = 41, PM_CheckListControllerSize = 42,
  PM_ComboBoxFrameWidth = 7, PM_CustomBase = -268435456, PM_DefaultChildMargin = 62, PM_DefaultFrameWidth = 5,
  PM_DefaultLayoutSpacing = 63, PM_DefaultTopLevelMargin = 61, PM_DialogButtonsButtonHeight = 45, PM_DialogButtonsButtonWidth = 44,
  PM_DialogButtonsSeparator = 43, PM_DockWidgetFrameWidth = 18, PM_DockWidgetHandleExtent = 17, PM_DockWidgetSeparatorExtent = 16,
  PM_DockWidgetTitleBarButtonMargin = 78, PM_DockWidgetTitleMargin = 75, PM_ExclusiveIndicatorHeight = 40, PM_ExclusiveIndicatorWidth = 39,
  PM_FocusFrameHMargin = 70, PM_FocusFrameVMargin = 69, PM_HeaderGripMargin = 50, PM_HeaderMargin = 48,
  PM_HeaderMarkSize = 49, PM_IconViewIconSize = 66, PM_IndicatorHeight = 38, PM_IndicatorWidth = 37,
  PM_LargeIconSize = 68, PM_LayoutBottomMargin = 83, PM_LayoutHorizontalSpacing = 84, PM_LayoutLeftMargin = 80,
  PM_LayoutRightMargin = 82, PM_LayoutTopMargin = 81, PM_LayoutVerticalSpacing = 85, PM_ListViewIconSize = 65,
  PM_MDIFrameWidth = 46, PM_MDIMinimizedWidth = 47, PM_MaximumDragDistance = 8, PM_MdiSubWindowFrameWidth = 46,
  PM_MdiSubWindowMinimizedWidth = 47, PM_MenuBarHMargin = 36, PM_MenuBarItemSpacing = 34, PM_MenuBarPanelWidth = 33,
  PM_MenuBarVMargin = 35, PM_MenuButtonIndicator = 2, PM_MenuDesktopFrameWidth = 32, PM_MenuHMargin = 28,
  PM_MenuPanelWidth = 30, PM_MenuScrollerHeight = 27, PM_MenuTearoffHeight = 31, PM_MenuVMargin = 29,
  PM_MessageBoxIconSize = 76, PM_ProgressBarChunkWidth = 24, PM_RadioButtonLabelSpacing = 79, PM_ScrollBarExtent = 9,
  PM_ScrollBarSliderMin = 10, PM_ScrollView_ScrollBarSpacing = 90, PM_SizeGripSize = 74, PM_SliderControlThickness = 12,
  PM_SliderLength = 13, PM_SliderSpaceAvailable = 15, PM_SliderThickness = 11, PM_SliderTickmarkOffset = 14,
  PM_SmallIconSize = 67, PM_SpinBoxFrameWidth = 6, PM_SpinBoxSliderHeight = 60, PM_SplitterWidth = 25,
  PM_SubMenuOverlap = 91, PM_TabBarBaseHeight = 22, PM_TabBarBaseOverlap = 23, PM_TabBarIconSize = 73,
  PM_TabBarScrollButtonWidth = 53, PM_TabBarTabHSpace = 20, PM_TabBarTabOverlap = 19, PM_TabBarTabShiftHorizontal = 51,
  PM_TabBarTabShiftVertical = 52, PM_TabBarTabVSpace = 21, PM_TabBar_ScrollButtonOverlap = 86, PM_TabCloseIndicatorHeight = 89,
  PM_TabCloseIndicatorWidth = 88, PM_TextCursorWidth = 87, PM_TitleBarHeight = 26, PM_ToolBarExtensionExtent = 59,
  PM_ToolBarFrameWidth = 54, PM_ToolBarHandleExtent = 55, PM_ToolBarIconSize = 64, PM_ToolBarItemMargin = 57,
  PM_ToolBarItemSpacing = 56, PM_ToolBarSeparatorExtent = 58, PM_ToolTipLabelFrameWidth = 71
}
  More...
 
enum  PrimitiveElement {
  PE_CustomBase = 251658240, PE_Frame = 5, PE_FrameButtonBevel = 15, PE_FrameButtonTool = 16,
  PE_FrameDefaultButton = 6, PE_FrameDockWidget = 7, PE_FrameFocusRect = 8, PE_FrameGroupBox = 9,
  PE_FrameLineEdit = 10, PE_FrameMenu = 11, PE_FrameStatusBar = 12, PE_FrameStatusBarItem = 12,
  PE_FrameTabBarBase = 17, PE_FrameTabWidget = 13, PE_FrameWindow = 14, PE_IndicatorArrowDown = 24,
  PE_IndicatorArrowLeft = 25, PE_IndicatorArrowRight = 26, PE_IndicatorArrowUp = 27, PE_IndicatorBranch = 28,
  PE_IndicatorButtonDropDown = 29, PE_IndicatorCheckBox = 31, PE_IndicatorColumnViewArrow = 47, PE_IndicatorDockWidgetResizeHandle = 32,
  PE_IndicatorHeaderArrow = 33, PE_IndicatorItemViewItemCheck = 30, PE_IndicatorItemViewItemDrop = 48, PE_IndicatorMenuCheckMark = 34,
  PE_IndicatorProgressChunk = 35, PE_IndicatorRadioButton = 36, PE_IndicatorSpinDown = 37, PE_IndicatorSpinMinus = 38,
  PE_IndicatorSpinPlus = 39, PE_IndicatorSpinUp = 40, PE_IndicatorTabClose = 52, PE_IndicatorTabTear = 44,
  PE_IndicatorToolBarHandle = 41, PE_IndicatorToolBarSeparator = 42, PE_IndicatorViewItemCheck = 30, PE_PanelButtonBevel = 19,
  PE_PanelButtonCommand = 18, PE_PanelButtonTool = 20, PE_PanelItemViewItem = 49, PE_PanelItemViewRow = 50,
  PE_PanelLineEdit = 23, PE_PanelMenu = 53, PE_PanelMenuBar = 21, PE_PanelScrollAreaCorner = 45,
  PE_PanelStatusBar = 51, PE_PanelTipLabel = 43, PE_PanelToolBar = 22, PE_Q3CheckListController = 0,
  PE_Q3CheckListExclusiveIndicator = 1, PE_Q3CheckListIndicator = 2, PE_Q3DockWindowSeparator = 3, PE_Q3Separator = 4,
  PE_Widget = 46
}
  More...
 
enum  RequestSoftwareInputPanel { RSIP_OnMouseClick = 1, RSIP_OnMouseClickAndAlreadyFocused = 0 }
  More...
 
enum  StandardPixmap {
  SP_ArrowBack = 53, SP_ArrowDown = 50, SP_ArrowForward = 54, SP_ArrowLeft = 51,
  SP_ArrowRight = 52, SP_ArrowUp = 49, SP_BrowserReload = 58, SP_BrowserStop = 59,
  SP_CommandLink = 56, SP_ComputerIcon = 15, SP_CustomBase = -268435456, SP_DesktopIcon = 13,
  SP_DialogApplyButton = 44, SP_DialogCancelButton = 39, SP_DialogCloseButton = 43, SP_DialogDiscardButton = 46,
  SP_DialogHelpButton = 40, SP_DialogNoButton = 48, SP_DialogOkButton = 38, SP_DialogOpenButton = 41,
  SP_DialogResetButton = 45, SP_DialogSaveButton = 42, SP_DialogYesButton = 47, SP_DirClosedIcon = 22,
  SP_DirHomeIcon = 55, SP_DirIcon = 37, SP_DirLinkIcon = 23, SP_DirOpenIcon = 21,
  SP_DockWidgetCloseButton = 8, SP_DriveCDIcon = 18, SP_DriveDVDIcon = 19, SP_DriveFDIcon = 16,
  SP_DriveHDIcon = 17, SP_DriveNetIcon = 20, SP_FileDialogBack = 36, SP_FileDialogContentsView = 34,
  SP_FileDialogDetailedView = 32, SP_FileDialogEnd = 29, SP_FileDialogInfoView = 33, SP_FileDialogListView = 35,
  SP_FileDialogNewFolder = 31, SP_FileDialogStart = 28, SP_FileDialogToParent = 30, SP_FileIcon = 24,
  SP_FileLinkIcon = 25, SP_MediaPause = 62, SP_MediaPlay = 60, SP_MediaSeekBackward = 66,
  SP_MediaSeekForward = 65, SP_MediaSkipBackward = 64, SP_MediaSkipForward = 63, SP_MediaStop = 61,
  SP_MediaVolume = 67, SP_MediaVolumeMuted = 68, SP_MessageBoxCritical = 11, SP_MessageBoxInformation = 9,
  SP_MessageBoxQuestion = 12, SP_MessageBoxWarning = 10, SP_TitleBarCloseButton = 3, SP_TitleBarContextHelpButton = 7,
  SP_TitleBarMaxButton = 2, SP_TitleBarMenuButton = 0, SP_TitleBarMinButton = 1, SP_TitleBarNormalButton = 4,
  SP_TitleBarShadeButton = 5, SP_TitleBarUnshadeButton = 6, SP_ToolBarHorizontalExtensionButton = 26, SP_ToolBarVerticalExtensionButton = 27,
  SP_TrashIcon = 14, SP_VistaShield = 57
}
  More...
 
enum  StateFlag {
  State_Active = 65536, State_AutoRaise = 4096, State_Bottom = 1024, State_Children = 524288,
  State_DownArrow = 64, State_Editing = 4194304, State_Enabled = 1, State_FocusAtBorder = 2048,
  State_HasFocus = 256, State_Horizontal = 128, State_Item = 1048576, State_KeyboardFocusChange = 8388608,
  State_Mini = 134217728, State_MouseOver = 8192, State_NoChange = 16, State_None = 0,
  State_Off = 8, State_On = 32, State_Open = 262144, State_Raised = 2,
  State_ReadOnly = 33554432, State_Selected = 32768, State_Sibling = 2097152, State_Small = 67108864,
  State_Sunken = 4, State_Top = 512, State_UpArrow = 16384, State_Window = 131072
}
  More...
 
enum  StyleHint {
  SH_BlinkCursorWhenTextSelected = 28, SH_Button_FocusPolicy = 49, SH_ComboBox_LayoutDirection = 59, SH_ComboBox_ListMouseTracking = 19,
  SH_ComboBox_Popup = 25, SH_ComboBox_PopupFrameStyle = 70, SH_CustomBase = -268435456, SH_Dial_BackgroundRole = 58,
  SH_DialogButtonBox_ButtonsHaveIcons = 72, SH_DialogButtonLayout = 69, SH_DialogButtons_DefaultButton = 36, SH_DitherDisabledText = 1,
  SH_DockWidget_ButtonsHaveFrame = 95, SH_DrawMenuBarSeparator = 47, SH_EtchDisabledText = 0, SH_FocusFrame_AboveWidget = 78,
  SH_FocusFrame_Mask = 54, SH_FontDialog_SelectAssociatedText = 13, SH_FormLayoutFieldGrowthPolicy = 90, SH_FormLayoutFormAlignment = 91,
  SH_FormLayoutLabelAlignment = 92, SH_FormLayoutWrapPolicy = 87, SH_GroupBox_TextLabelColor = 32, SH_GroupBox_TextLabelVerticalAlignment = 31,
  SH_Header_ArrowAlignment = 6, SH_ItemView_ActivateItemOnSingleClick = 62, SH_ItemView_ArrowKeysNavigateIntoChildren = 81, SH_ItemView_ChangeHighlightOnFocus = 22,
  SH_ItemView_DrawDelegateFrame = 93, SH_ItemView_EllipsisLocation = 60, SH_ItemView_MovementWithoutUpdatingSelection = 76, SH_ItemView_PaintAlternatingRowColorsForEmptyArea = 86,
  SH_ItemView_ShowDecorationSelected = 61, SH_LineEdit_PasswordCharacter = 35, SH_MainWindow_SpaceBelowMenuBar = 12, SH_MenuBar_AltKeyNavigation = 18,
  SH_MenuBar_DismissOnSecondClick = 50, SH_MenuBar_MouseTracking = 21, SH_Menu_AllowActiveAndDisabled = 14, SH_Menu_FadeOutOnHide = 84,
  SH_Menu_FillScreenWithScroll = 45, SH_Menu_FlashTriggeredItem = 83, SH_Menu_KeyboardSearch = 67, SH_Menu_Mask = 82,
  SH_Menu_MouseTracking = 20, SH_Menu_Scrollable = 30, SH_Menu_SelectionWrap = 75, SH_Menu_SloppySubMenus = 33,
  SH_Menu_SpaceActivatesItem = 15, SH_Menu_SubMenuPopupDelay = 16, SH_MessageBox_CenterButtons = 74, SH_MessageBox_TextInteractionFlags = 71,
  SH_MessageBox_UseBorderForButtonSpacing = 51, SH_PrintDialog_RightAlignButtons = 11, SH_ProgressDialog_CenterCancelButton = 9, SH_ProgressDialog_TextLabelAlignment = 10,
  SH_Q3ListViewExpand_SelectMouseType = 40, SH_RequestSoftwareInputPanel = 97, SH_RichText_FullWidthSelection = 29, SH_RubberBand_Mask = 55,
  SH_ScrollBar_ContextMenu = 63, SH_ScrollBar_LeftClickAbsolutePosition = 39, SH_ScrollBar_MiddleClickAbsolutePosition = 2, SH_ScrollBar_RollBetweenButtons = 64,
  SH_ScrollBar_ScrollWhenPointerLeavesControl = 3, SH_ScrollBar_StopMouseOverSlider = 27, SH_ScrollView_FrameOnlyAroundContents = 17, SH_Slider_AbsoluteSetButtons = 65,
  SH_Slider_PageSetButtons = 66, SH_Slider_SloppyKeyEvents = 8, SH_Slider_SnapToValue = 7, SH_Slider_StopMouseOverSlider = 27,
  SH_SpellCheckUnderlineStyle = 73, SH_SpinBox_AnimateButton = 42, SH_SpinBox_ClickAutoRepeatRate = 44, SH_SpinBox_ClickAutoRepeatThreshold = 85,
  SH_SpinBox_KeyPressAutoRepeatRate = 43, SH_SpinControls_DisableOnBounds = 57, SH_TabBar_Alignment = 5, SH_TabBar_CloseButtonPosition = 94,
  SH_TabBar_ElideMode = 68, SH_TabBar_PreferNoArrows = 38, SH_TabBar_SelectMouseType = 4, SH_TabWidget_DefaultTabPosition = 88,
  SH_Table_GridLineColor = 34, SH_TextControl_FocusIndicatorTextCharFormat = 79, SH_TitleBar_AutoRaise = 52, SH_TitleBar_ModifyNotification = 48,
  SH_TitleBar_NoBorder = 26, SH_ToolBar_Movable = 89, SH_ToolBox_SelectedPageTitleBold = 37, SH_ToolButtonStyle = 96,
  SH_ToolButton_PopupDelay = 53, SH_ToolTipLabel_Opacity = 46, SH_ToolTip_Mask = 77, SH_UnderlineShortcut = 41,
  SH_Widget_ShareActivation = 23, SH_WindowFrame_Mask = 56, SH_WizardStyle = 80, SH_Workspace_FillSpaceOnMaximize = 24
}
  More...
 
enum  SubControl {
  SC_All = -1, SC_ComboBoxArrow = 4, SC_ComboBoxEditField = 2, SC_ComboBoxFrame = 1,
  SC_ComboBoxListBoxPopup = 8, SC_CustomBase = -268435456, SC_DialGroove = 1, SC_DialHandle = 2,
  SC_DialTickmarks = 4, SC_GroupBoxCheckBox = 1, SC_GroupBoxContents = 4, SC_GroupBoxFrame = 8,
  SC_GroupBoxLabel = 2, SC_MdiCloseButton = 4, SC_MdiMinButton = 1, SC_MdiNormalButton = 2,
  SC_None = 0, SC_Q3ListView = 1, SC_Q3ListViewBranch = 2, SC_Q3ListViewExpand = 4,
  SC_ScrollBarAddLine = 1, SC_ScrollBarAddPage = 4, SC_ScrollBarFirst = 16, SC_ScrollBarGroove = 128,
  SC_ScrollBarLast = 32, SC_ScrollBarSlider = 64, SC_ScrollBarSubLine = 2, SC_ScrollBarSubPage = 8,
  SC_SliderGroove = 1, SC_SliderHandle = 2, SC_SliderTickmarks = 4, SC_SpinBoxDown = 2,
  SC_SpinBoxEditField = 8, SC_SpinBoxFrame = 4, SC_SpinBoxUp = 1, SC_TitleBarCloseButton = 8,
  SC_TitleBarContextHelpButton = 128, SC_TitleBarLabel = 256, SC_TitleBarMaxButton = 4, SC_TitleBarMinButton = 2,
  SC_TitleBarNormalButton = 16, SC_TitleBarShadeButton = 32, SC_TitleBarSysMenu = 1, SC_TitleBarUnshadeButton = 64,
  SC_ToolButton = 1, SC_ToolButtonMenu = 2
}
  More...
 
enum  SubElement {
  SE_CheckBoxClickRect = 5, SE_CheckBoxContents = 3, SE_CheckBoxFocusRect = 4, SE_CheckBoxIndicator = 2,
  SE_CheckBoxLayoutItem = 42, SE_ComboBoxFocusRect = 10, SE_ComboBoxLayoutItem = 43, SE_CustomBase = -268435456,
  SE_DateTimeEditLayoutItem = 44, SE_DialogButtonAbort = 21, SE_DialogButtonAccept = 16, SE_DialogButtonAll = 20,
  SE_DialogButtonApply = 18, SE_DialogButtonBoxLayoutItem = 45, SE_DialogButtonCustom = 24, SE_DialogButtonHelp = 19,
  SE_DialogButtonIgnore = 22, SE_DialogButtonReject = 17, SE_DialogButtonRetry = 23, SE_DockWidgetCloseButton = 38,
  SE_DockWidgetFloatButton = 39, SE_DockWidgetIcon = 41, SE_DockWidgetTitleBarText = 40, SE_FrameContents = 37,
  SE_FrameLayoutItem = 53, SE_GroupBoxLayoutItem = 54, SE_HeaderArrow = 27, SE_HeaderLabel = 26,
  SE_ItemViewItemCheckIndicator = 33, SE_ItemViewItemDecoration = 56, SE_ItemViewItemFocusRect = 58, SE_ItemViewItemText = 57,
  SE_LabelLayoutItem = 46, SE_LineEditContents = 36, SE_ProgressBarContents = 14, SE_ProgressBarGroove = 13,
  SE_ProgressBarLabel = 15, SE_ProgressBarLayoutItem = 47, SE_PushButtonContents = 0, SE_PushButtonFocusRect = 1,
  SE_PushButtonLayoutItem = 48, SE_Q3DockWindowHandleRect = 12, SE_RadioButtonClickRect = 9, SE_RadioButtonContents = 7,
  SE_RadioButtonFocusRect = 8, SE_RadioButtonIndicator = 6, SE_RadioButtonLayoutItem = 49, SE_ShapedFrameContents = 62,
  SE_SliderFocusRect = 11, SE_SliderLayoutItem = 50, SE_SpinBoxLayoutItem = 51, SE_TabBarTabLeftButton = 59,
  SE_TabBarTabRightButton = 60, SE_TabBarTabText = 61, SE_TabBarTearIndicator = 34, SE_TabWidgetLayoutItem = 55,
  SE_TabWidgetLeftCorner = 31, SE_TabWidgetRightCorner = 32, SE_TabWidgetTabBar = 28, SE_TabWidgetTabContents = 30,
  SE_TabWidgetTabPane = 29, SE_ToolBarHandle = 63, SE_ToolBoxTabContents = 25, SE_ToolButtonLayoutItem = 52,
  SE_TreeViewDisclosureItem = 35, SE_ViewItemCheckIndicator = 33
}
  More...
 

Public Member Functions

 QStyle ()
 
 
override void CreateProxy ()
 
new int CombinedLayoutSpacing (QSizePolicy.ControlType controls1, QSizePolicy.ControlType controls2, Qt.Orientation orientation, QStyleOption option=null, QWidget widget=null)
 
 
abstract void DrawComplexControl (QStyle.ComplexControl cc, QStyleOptionComplex opt, QPainter p, QWidget widget=null)
 
 
abstract void DrawControl (QStyle.ControlElement element, QStyleOption opt, QPainter p, QWidget w=null)
 
 
virtual void DrawItemPixmap (QPainter painter, QRect rect, int alignment, QPixmap pixmap)
 
 
virtual void DrawItemText (QPainter painter, QRect rect, int flags, QPalette pal, bool enabled, string text, QPalette.ColorRole textRole=QPalette.ColorRole.NoRole)
 
 
abstract void DrawPrimitive (QStyle.PrimitiveElement pe, QStyleOption opt, QPainter p, QWidget w=null)
 
 
abstract QPixmap GeneratedIconPixmap (QIcon.Mode iconMode, QPixmap pixmap, QStyleOption opt)
 
 
abstract QStyle.SubControl HitTestComplexControl (QStyle.ComplexControl cc, QStyleOptionComplex opt, QPoint pt, QWidget widget=null)
 
 
virtual QRect ItemPixmapRect (QRect r, int flags, QPixmap pixmap)
 
 
virtual QRect ItemTextRect (QFontMetrics fm, QRect r, int flags, bool enabled, string text)
 
 
new int LayoutSpacing (QSizePolicy.ControlType control1, QSizePolicy.ControlType control2, Qt.Orientation orientation, QStyleOption option=null, QWidget widget=null)
 
 
new int pixelMetric (QStyle.PixelMetric metric)
 
 
new int pixelMetric (QStyle.PixelMetric metric, QStyleOption option=null)
 
 
abstract int pixelMetric (QStyle.PixelMetric metric, QStyleOption option=null, QWidget widget=null)
 
 
virtual void Polish (QWidget arg1)
 
 
virtual void Polish (QApplication arg1)
 
 
virtual void Polish (QPalette arg1)
 
 
new QStyle Proxy ()
 
 
abstract QSize SizeFromContents (QStyle.ContentsType ct, QStyleOption opt, QSize contentsSize, QWidget w=null)
 
 
new QIcon StandardIcon (QStyle.StandardPixmap standardIcon, QStyleOption option=null, QWidget widget=null)
 
 
virtual QPalette StandardPalette ()
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap)
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap, QStyleOption opt=null)
 
 
abstract QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap, QStyleOption opt=null, QWidget widget=null)
 
 
new int styleHint (QStyle.StyleHint stylehint)
 
 
new int styleHint (QStyle.StyleHint stylehint, QStyleOption opt=null)
 
 
new int styleHint (QStyle.StyleHint stylehint, QStyleOption opt=null, QWidget widget=null)
 
 
abstract int styleHint (QStyle.StyleHint stylehint, QStyleOption opt=null, QWidget widget=null, QStyleHintReturn returnData=null)
 
 
abstract QRect SubControlRect (QStyle.ComplexControl cc, QStyleOptionComplex opt, QStyle.SubControl sc, QWidget widget=null)
 
 
abstract QRect SubElementRect (QStyle.SubElement subElement, QStyleOption option, QWidget widget=null)
 
 
virtual void Unpolish (QWidget arg1)
 
 
virtual void Unpolish (QApplication arg1)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool OnEvent (QEvent arg1)
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 

Static Public Member Functions

static QRect AlignedRect (Qt.LayoutDirection direction, Qt.AlignmentFlag alignment, QSize size, QRect rectangle)
 
 
static int SliderPositionFromValue (int min, int max, int val, int space, bool upsideDown=false)
 
 
static int SliderValueFromPosition (int min, int max, int pos, int space, bool upsideDown=false)
 
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
static Qt.AlignmentFlag VisualAlignment (Qt.LayoutDirection direction, Qt.AlignmentFlag alignment)
 
 
static QPoint VisualPos (Qt.LayoutDirection direction, QRect boundingRect, QPoint logicalPos)
 
 
static QRect VisualRect (Qt.LayoutDirection direction, QRect boundingRect, QRect logicalRect)
 
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QStyle (System.Type dummy)
 
new int LayoutSpacingImplementation (QSizePolicy.ControlType control1, QSizePolicy.ControlType control2, Qt.Orientation orientation, QStyleOption option=null, QWidget widget=null)
 
 
new QIcon StandardIconImplementation (QStyle.StandardPixmap standardIcon, QStyleOption opt=null, QWidget widget=null)
 
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

static new QMetaObject StaticMetaObject [get]
 
new IQStyleSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Member Enumeration Documentation

This enum describes the available complex controls. Complex controls have different behavior depending upon where the user clicks on them or which keys are pressed.

See also SubControl and drawComplexControl().

Enumerator:
CC_ComboBox 

A combobox, like QComboBox.

CC_CustomBase 

Base value for custom complex controls. Custom values must be greater than this value.

CC_Dial 

A dial, like QDial.

CC_GroupBox 

A group box, like QGroupBox.

CC_MdiControls 

The minimize, close, and normal button in the menu bar for a maximized MDI subwindow.

CC_Q3ListView 

Used for drawing the Q3ListView class.

CC_ScrollBar 

A scroll bar, like QScrollBar.

CC_Slider 

A slider, like QSlider.

CC_SpinBox 

A spinbox, like QSpinBox.

CC_TitleBar 

A Title bar, like those used in QMdiSubWindow.

CC_ToolButton 

A tool button, like QToolButton.

This enum describes the available contents types. These are used to calculate sizes for the contents of various widgets.

See also sizeFromContents().

Enumerator:
CT_CheckBox 

A check box, like QCheckBox.

CT_ComboBox 

A combo box, like QComboBox.

CT_CustomBase 

Base value for custom contents types. Custom values must be greater than this value.

CT_DialogButtons 
CT_GroupBox 

A group box, like QGroupBox.

CT_HeaderSection 

A header section, like QHeader.

CT_ItemViewItem 

An item inside an item view.

CT_LineEdit 

A line edit, like QLineEdit.

CT_MdiControls 

The minimize, normal, and close button in the menu bar for a maximized MDI subwindow.

CT_Menu 

A menu, like QMenu.

CT_MenuBar 

A menu bar, like QMenuBar.

CT_MenuBarItem 

A menu bar item, like the buttons in a QMenuBar.

CT_MenuItem 

A menu item, like QMenuItem.

CT_ProgressBar 

A progress bar, like QProgressBar.

CT_PushButton 

A push button, like QPushButton.

CT_Q3DockWindow 

A Q3DockWindow.

CT_Q3Header 

A Qt 3 header section, like Q3Header.

CT_RadioButton 

A radio button, like QRadioButton.

CT_ScrollBar 

A scroll bar, like QScrollBar.

CT_SizeGrip 

A size grip, like QSizeGrip.

CT_Slider 

A slider, like QSlider.

CT_SpinBox 

A spin box, like QSpinBox.

CT_Splitter 

A splitter, like QSplitter.

CT_TabBarTab 

A tab on a tab bar, like QTabBar.

CT_TabWidget 

A tab widget, like QTabWidget.

CT_ToolButton 

A tool button, like QToolButton.

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

See also drawControl().

Enumerator:
CE_CheckBox 

A QCheckBox, draws a PE_IndicatorCheckBox, a CE_CheckBoxLabel and a PE_FrameFocusRect.

CE_CheckBoxLabel 

The label (text or pixmap) of a QCheckBox.

CE_ColumnViewGrip 
CE_ComboBoxLabel 

The label of a non-editable QComboBox.

CE_CustomBase 

Base value for custom control elements; custom values must be greater than this value.

CE_DockWidgetTitle 

Dock window title.

CE_FocusFrame 

Focus frame that is style controlled.

CE_Header 

A header.

CE_HeaderEmptyArea 

The area of a header view where there are no header sections.

CE_HeaderLabel 

The header's label.

CE_HeaderSection 

A header section.

CE_ItemViewItem 

An item inside an item view.

CE_MenuBarEmptyArea 

The empty area of a QMenuBar.

CE_MenuBarItem 

A menu item in a QMenuBar.

CE_MenuEmptyArea 

The area in a menu without menu items.

CE_MenuHMargin 

The horizontal extra space on the left/right of a menu.

CE_MenuItem 

A menu item in a QMenu.

CE_MenuScroller 

Scrolling areas in a QMenu when the style supports scrolling.

CE_MenuTearoff 

A menu item representing the tear off section of a QMenu.

CE_MenuVMargin 

The vertical extra space on the top/bottom of a menu.

CE_ProgressBar 

A QProgressBar, draws CE_ProgressBarGroove, CE_ProgressBarContents and CE_ProgressBarLabel.

CE_ProgressBarContents 

The progress indicator of a QProgressBar.

CE_ProgressBarGroove 

The groove where the progress indicator is drawn in a QProgressBar.

CE_ProgressBarLabel 

The text label of a QProgressBar.

CE_PushButton 

A QPushButton, draws CE_PushButtonBevel, CE_PushButtonLabel and PE_FrameFocusRect.

CE_PushButtonBevel 

The bevel and default indicator of a QPushButton.

CE_PushButtonLabel 

The label (an icon with text or pixmap) of a QPushButton.

CE_Q3DockWindowEmptyArea 

The empty area of a QDockWidget.

CE_RadioButton 

A QRadioButton, draws a PE_IndicatorRadioButton, a CE_RadioButtonLabel and a PE_FrameFocusRect.

CE_RadioButtonLabel 

The label (text or pixmap) of a QRadioButton.

CE_RubberBand 

Rubber band used in for example an icon view.

CE_ScrollBarAddLine 

Scroll bar line increase indicator. (i.e., scroll down); see also QScrollBar.

CE_ScrollBarAddPage 

Scolllbar page increase indicator (i.e., page down).

CE_ScrollBarFirst 

Scroll bar first line indicator (i.e., home).

CE_ScrollBarLast 

Scroll bar last line indicator (i.e., end).

CE_ScrollBarSlider 

Scroll bar slider.

CE_ScrollBarSubLine 

Scroll bar line decrease indicator (i.e., scroll up).

CE_ScrollBarSubPage 

Scroll bar page decrease indicator (i.e., page up).

CE_ShapedFrame 

The frame with the shape specified in the QStyleOptionFrameV3; see QFrame.

CE_SizeGrip 

Window resize handle; see also QSizeGrip.

CE_Splitter 

Splitter handle; see also QSplitter.

CE_TabBarTab 

The tab and label within a QTabBar.

CE_TabBarTabLabel 

The label within a tab.

CE_TabBarTabShape 

The tab shape within a tab bar.

CE_ToolBar 

A toolbar like QToolBar.

CE_ToolBoxTab 

The toolbox's tab and label within a QToolBox.

CE_ToolBoxTabLabel 

The toolbox's tab label.

CE_ToolBoxTabShape 

The toolbox's tab shape.

CE_ToolButtonLabel 

A tool button's label.

This enum describes the various available pixel metrics. A pixel metric is a style dependent size represented by a single pixel value.

The following values are obsolete:

See also pixelMetric().

Enumerator:
PM_ButtonDefaultIndicator 

Width of the default-button indicator frame.

PM_ButtonIconSize 

The default size of button icons

PM_ButtonMargin 

Amount of whitespace between push button labels and the frame.

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_CheckBoxLabelSpacing 

The spacing between a check box indicator and its label.

PM_CheckListButtonSize 

Area (width/height) of the checkbox/radio button in a Q3CheckListItem.

PM_CheckListControllerSize 

Area (width/height) of the controller in a Q3CheckListItem.

PM_ComboBoxFrameWidth 

Frame width of a combo box, defaults to PM_DefaultFrameWidth.

PM_CustomBase 

Base value for custom pixel metrics. Custom values must be greater than this value.

PM_DefaultChildMargin 

Use PM_LayoutLeftMargin, PM_LayoutTopMargin, PM_LayoutRightMargin, and PM_LayoutBottomMargin instead.

PM_DefaultFrameWidth 

Default frame width (usually 2).

PM_DefaultLayoutSpacing 

Use PM_LayoutHorizontalSpacing and PM_LayoutVerticalSpacing instead.

PM_DefaultTopLevelMargin 

Use PM_LayoutLeftMargin, PM_LayoutTopMargin, PM_LayoutRightMargin, and PM_LayoutBottomMargin instead.

PM_DialogButtonsButtonHeight 
PM_DialogButtonsButtonWidth 
PM_DialogButtonsSeparator 
PM_DockWidgetFrameWidth 

Frame width of a dock window.

PM_DockWidgetHandleExtent 

Width of the handle in a horizontal dock window and the height of the handle in a vertical dock window.

PM_DockWidgetSeparatorExtent 

Width of a separator in a horizontal dock window and the height of a separator in a vertical dock window.

PM_DockWidgetTitleBarButtonMargin 

Amount of whitespace between dock widget's title bar button labels and the frame.

PM_DockWidgetTitleMargin 

Margin of the dock window title.

PM_ExclusiveIndicatorHeight 

Height of a radio button indicator.

PM_ExclusiveIndicatorWidth 

Width of a radio button indicator.

PM_FocusFrameHMargin 

Horizontal margin that the focus frame will outset the widget by.

PM_FocusFrameVMargin 

Vertical margin that the focus frame will outset the widget by.

PM_HeaderGripMargin 

The size of the resize grip in a header.

PM_HeaderMargin 

The size of the margin between the sort indicator and the text.

PM_HeaderMarkSize 

The size of the sort indicator in a header.

PM_IconViewIconSize 

The default size for icons in an icon view.

PM_IndicatorHeight 

Height of a checkbox indicator.

PM_IndicatorWidth 

Width of a check box indicator.

PM_LargeIconSize 

Default large icon size

PM_LayoutBottomMargin 

Default bottom margin for a QLayout.

PM_LayoutHorizontalSpacing 

Default horizontal spacing for a QLayout.

PM_LayoutLeftMargin 

Default left margin for a QLayout.

PM_LayoutRightMargin 

Default right margin for a QLayout.

PM_LayoutTopMargin 

Default top margin for a QLayout.

PM_LayoutVerticalSpacing 

Default vertical spacing for a QLayout.

PM_ListViewIconSize 

The default size for icons in a list view.

PM_MDIFrameWidth 

Obsolete. Use PM_MdiSubWindowFrameWidth instead.

PM_MDIMinimizedWidth 

Obsolete. Use PM_MdiSubWindowMinimizedWidth instead.

PM_MaximumDragDistance 

The maximum allowed distance between the mouse and a scrollbar when dragging. Exceeding the specified distance will cause the slider to jump back to the original position; a value of -1 disables this behavior.

PM_MdiSubWindowFrameWidth 

Frame width of an MDI window.

PM_MdiSubWindowMinimizedWidth 

Width of a minimized MDI window.

PM_MenuBarHMargin 

Spacing between menu bar items and left/right of bar.

PM_MenuBarItemSpacing 

Spacing between menu bar items.

PM_MenuBarPanelWidth 

Frame width of a menu bar, defaults to PM_DefaultFrameWidth.

PM_MenuBarVMargin 

Spacing between menu bar items and top/bottom of bar.

PM_MenuButtonIndicator 

Width of the menu button indicator proportional to the widget height.

PM_MenuDesktopFrameWidth 

The frame width for the menu on the desktop.

PM_MenuHMargin 

Additional border (used on left and right) for a QMenu.

PM_MenuPanelWidth 

Border width (applied on all sides) for a QMenu.

PM_MenuScrollerHeight 

Height of the scroller area in a QMenu.

PM_MenuTearoffHeight 

Height of a tear off area in a QMenu.

PM_MenuVMargin 

Additional border (used for bottom and top) for a QMenu.

PM_MessageBoxIconSize 

The size of the standard icons in a message box

PM_ProgressBarChunkWidth 

Width of a chunk in a progress bar indicator.

PM_RadioButtonLabelSpacing 

The spacing between a radio button indicator and its label.

PM_ScrollBarExtent 

Width of a vertical scroll bar and the height of a horizontal scroll bar.

PM_ScrollBarSliderMin 

The minimum height of a vertical scroll bar's slider and the minimum width of a horizontal scroll bar's slider.

PM_ScrollView_ScrollBarSpacing 

Distance between frame and scrollbar with SH_ScrollView_FrameOnlyAroundContents set.

PM_SizeGripSize 

The size of a size grip.

PM_SliderControlThickness 

Thickness of the slider handle.

PM_SliderLength 

Length of the slider.

PM_SliderSpaceAvailable 

The available space for the slider to move.

PM_SliderThickness 

Total slider thickness.

PM_SliderTickmarkOffset 

The offset between the tickmarks and the slider.

PM_SmallIconSize 

Default small icon size

PM_SpinBoxFrameWidth 

Frame width of a spin box, defaults to PM_DefaultFrameWidth.

PM_SpinBoxSliderHeight 

The height of the optional spin box slider.

PM_SplitterWidth 

Width of a splitter.

PM_SubMenuOverlap 

The horizontal overlap between a submenu and its parent.

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_TabBarIconSize 

The default icon size for a tab bar.

PM_TabBarScrollButtonWidth 
PM_TabBarTabHSpace 

Extra space added to the tab width.

PM_TabBarTabOverlap 

Number of pixels the tabs should overlap. (Currently only used in styles, not inside of QTabBar)

PM_TabBarTabShiftHorizontal 

Horizontal pixel shift when a tab is selected.

PM_TabBarTabShiftVertical 

Vertical pixel shift when a tab is selected.

PM_TabBarTabVSpace 

Extra space added to the tab height.

PM_TabBar_ScrollButtonOverlap 

The distance between the left and right buttons in a tab bar.

PM_TabCloseIndicatorHeight 

The default height of a close button on a tab in a tab bar.

PM_TabCloseIndicatorWidth 

The default width of a close button on a tab in a tab bar.

PM_TextCursorWidth 

The width of the cursor in a line edit or text edit

PM_TitleBarHeight 

Height of the title bar.

PM_ToolBarExtensionExtent 

Width of a toolbar extension button in a horizontal toolbar and the height of the button in a vertical toolbar.

PM_ToolBarFrameWidth 

Width of the frame around toolbars.

PM_ToolBarHandleExtent 

Width of a toolbar handle in a horizontal toolbar and the height of the handle in a vertical toolbar.

PM_ToolBarIconSize 

Default tool bar icon size

PM_ToolBarItemMargin 

Spacing between the toolbar frame and the items.

PM_ToolBarItemSpacing 

Spacing between toolbar items.

PM_ToolBarSeparatorExtent 

Width of a toolbar separator in a horizontal toolbar and the height of a separator in a vertical toolbar.

PM_ToolTipLabelFrameWidth 

The frame width for a tool tip label.

This enum describes the various primitive elements. A primitive element is a common GUI element, such as a checkbox indicator or button bevel.

See also drawPrimitive().

Enumerator:
PE_CustomBase 

Base value for custom primitive elements. All values above this are reserved for custom use. Custom values must be greater than this value.

PE_Frame 

Generic frame

PE_FrameButtonBevel 

Panel frame for a button bevel.

PE_FrameButtonTool 

Panel frame for a tool button.

PE_FrameDefaultButton 

This frame around a default button, e.g. in a dialog.

PE_FrameDockWidget 

Panel frame for dock windows and toolbars.

PE_FrameFocusRect 

Generic focus indicator.

PE_FrameGroupBox 

Panel frame around group boxes.

PE_FrameLineEdit 

Panel frame for line edits.

PE_FrameMenu 

Frame for popup windows/menus; see also QMenu.

PE_FrameStatusBar 

Frame

PE_FrameStatusBarItem 

Frame for an item of a status bar; see also QStatusBar.

PE_FrameTabBarBase 

The frame that is drawn for a tab bar, ususally drawn for a tab bar that isn't part of a tab widget.

PE_FrameTabWidget 

Frame for tab widgets.

PE_FrameWindow 

Frame around a MDI window or a docking window.

PE_IndicatorArrowDown 

Generic Down arrow.

PE_IndicatorArrowLeft 

Generic Left arrow.

PE_IndicatorArrowRight 

Generic Right arrow.

PE_IndicatorArrowUp 

Generic Up arrow.

PE_IndicatorBranch 

Lines used to represent the branch of a tree in a tree view.

PE_IndicatorButtonDropDown 

Indicator for a drop down button, for example, a tool button that displays a menu.

PE_IndicatorCheckBox 

On/off indicator, for example, a QCheckBox.

PE_IndicatorColumnViewArrow 

An arrow in a QColumnView.

PE_IndicatorDockWidgetResizeHandle 

Resize handle for dock windows.

PE_IndicatorHeaderArrow 

Arrow used to indicate sorting on a list or table header.

PE_IndicatorItemViewItemCheck 

On/off indicator for a view item.

PE_IndicatorItemViewItemDrop 

An indicator that is drawn to show where an item in an item view is about to be dropped during a drag-and-drop operation in an item view.

PE_IndicatorMenuCheckMark 

Check mark used in a menu.

PE_IndicatorProgressChunk 

Section of a progress bar indicator; see also QProgressBar.

PE_IndicatorRadioButton 

Exclusive on/off indicator, for example, a QRadioButton.

PE_IndicatorSpinDown 

Down symbol for a spin widget.

PE_IndicatorSpinMinus 

Decrease symbol for a spin widget.

PE_IndicatorSpinPlus 

Increase symbol for a spin widget.

PE_IndicatorSpinUp 

Up symbol for a spin widget, for example a QSpinBox.

PE_IndicatorTabClose 

The close button on a tab bar.

PE_IndicatorTabTear 

An indicator that a tab is partially scrolled out of the visible tab bar when there are many tabs.

PE_IndicatorToolBarHandle 

The handle of a toolbar.

PE_IndicatorToolBarSeparator 

The separator in a toolbar.

PE_IndicatorViewItemCheck 
PE_PanelButtonBevel 

Generic panel with a button bevel.

PE_PanelButtonCommand 

Button used to initiate an action, for example, a QPushButton.

PE_PanelButtonTool 

Panel for a Tool button, used with QToolButton.

PE_PanelItemViewItem 

The background for an item in an item view.

PE_PanelItemViewRow 

The background of a row in an item view.

PE_PanelLineEdit 

Panel for a QLineEdit.

PE_PanelMenu 

The panel for a menu.

PE_PanelMenuBar 

Panel for menu bars.

PE_PanelScrollAreaCorner 

Panel at the bottom-right (or bottom-left) corner of a scroll area.

PE_PanelStatusBar 

The panel for a status bar.

PE_PanelTipLabel 

The panel for a tip label.

PE_PanelToolBar 

The panel for a toolbar.

PE_Q3CheckListController 

Qt 3 compatible controller part of a list view item.

PE_Q3CheckListExclusiveIndicator 

Qt 3 compatible radio button part of a list view item.

PE_Q3CheckListIndicator 

Qt 3 compatible checkbox part of a list view item.

PE_Q3DockWindowSeparator 

Item separator for Qt 3 compatible dock window and toolbar contents.

PE_Q3Separator 

Qt 3 compatible generic separator.

PE_Widget 

A plain QWidget.

This enum describes under what circumstances a software input panel will be requested by input capable widgets.

See also QEvent::RequestSoftwareInputPanel and QInputContext.

Enumerator:
RSIP_OnMouseClick 

Requests an input panel if the user clicks on the widget.

RSIP_OnMouseClickAndAlreadyFocused 

Requests an input panel if the user clicks on the widget, but only if it is already focused.

This enum describes the available standard pixmaps. A standard pixmap is a pixmap that can follow some existing GUI style or guideline.

See also standardIcon().

Enumerator:
SP_ArrowBack 

Equivalent to SP_ArrowLeft when the current layout direction is Qt::LeftToRight, otherwise SP_ArrowRight.

SP_ArrowDown 

Icon arrow pointing down.

SP_ArrowForward 

Equivalent to SP_ArrowRight when the current layout direction is Qt::LeftToRight, otherwise SP_ArrowLeft.

SP_ArrowLeft 

Icon arrow pointing left.

SP_ArrowRight 

Icon arrow pointing right.

SP_ArrowUp 

Icon arrow pointing up.

SP_BrowserReload 

Icon indicating that the current page should be reloaded.

SP_BrowserStop 

Icon indicating that the page loading should stop.

SP_CommandLink 

Icon used to indicate a Vista style command link glyph.

SP_ComputerIcon 

The "My computer" icon.

SP_CustomBase 

Base value for custom standard pixmaps; custom values must be greater than this value.

SP_DesktopIcon 

The "desktop" icon.

SP_DialogApplyButton 

Icon for a standard Apply button in a QDialogButtonBox.

SP_DialogCancelButton 

Icon for a standard Cancel button in a QDialogButtonBox.

SP_DialogCloseButton 

Icon for a standard Close button in a QDialogButtonBox.

SP_DialogDiscardButton 

Icon for a standard Discard button in a QDialogButtonBox.

SP_DialogHelpButton 

Icon for a standard Help button in a QDialogButtonBox.

SP_DialogNoButton 

Icon for a standard No button in a QDialogButtonBox.

SP_DialogOkButton 

Icon for a standard OK button in a QDialogButtonBox.

SP_DialogOpenButton 

Icon for a standard Open button in a QDialogButtonBox.

SP_DialogResetButton 

Icon for a standard Reset button in a QDialogButtonBox.

SP_DialogSaveButton 

Icon for a standard Save button in a QDialogButtonBox.

SP_DialogYesButton 

Icon for a standard Yes button in a QDialogButtonBox.

SP_DirClosedIcon 

The closed directory icon.

SP_DirHomeIcon 

The home directory icon.

SP_DirIcon 

The directory icon.

SP_DirLinkIcon 

The link to directory icon.

SP_DirOpenIcon 

The open directory icon.

SP_DockWidgetCloseButton 

Close button on dock windows (see also QDockWidget).

SP_DriveCDIcon 

The CD icon.

SP_DriveDVDIcon 

The DVD icon.

SP_DriveFDIcon 

The floppy icon.

SP_DriveHDIcon 

The harddrive icon.

SP_DriveNetIcon 

The network icon.

SP_FileDialogBack 

The back arrow in a file dialog.

SP_FileDialogContentsView 

The contents view icon in a file dialog.

SP_FileDialogDetailedView 

The detailed view icon in a file dialog.

SP_FileDialogEnd 

The "end" icon in a file dialog.

SP_FileDialogInfoView 

The file info icon in a file dialog.

SP_FileDialogListView 

The list view icon in a file dialog.

SP_FileDialogNewFolder 

The "create new folder" icon in a file dialog.

SP_FileDialogStart 

The "start" icon in a file dialog.

SP_FileDialogToParent 

The "parent directory" icon in a file dialog.

SP_FileIcon 

The file icon.

SP_FileLinkIcon 

The link to file icon.

SP_MediaPause 

Icon indicating that media should pause playback.

SP_MediaPlay 

Icon indicating that media should begin playback.

SP_MediaSeekBackward 

Icon indicating that media should seek backward.

SP_MediaSeekForward 

Icon indicating that media should seek forward.

SP_MediaSkipBackward 

Icon indicating that media should skip backward.

SP_MediaSkipForward 

Icon indicating that media should skip forward.

SP_MediaStop 

Icon indicating that media should stop playback.

SP_MediaVolume 

Icon indicating a volume control.

SP_MediaVolumeMuted 

Icon indicating a muted volume control.

SP_MessageBoxCritical 

The "critical" icon.

SP_MessageBoxInformation 

The "information" icon.

SP_MessageBoxQuestion 

The "question" icon.

SP_MessageBoxWarning 

The "warning" icon.

SP_TitleBarCloseButton 

Close button on title bars.

SP_TitleBarContextHelpButton 

The Context help button on title bars.

SP_TitleBarMaxButton 

Maximize button on title bars.

SP_TitleBarMenuButton 

Menu button on a title bar.

SP_TitleBarMinButton 

Minimize button on title bars (e.g., in QMdiSubWindow).

SP_TitleBarNormalButton 

Normal (restore) button on title bars.

SP_TitleBarShadeButton 

Shade button on title bars.

SP_TitleBarUnshadeButton 

Unshade button on title bars.

SP_ToolBarHorizontalExtensionButton 

Extension button for horizontal toolbars.

SP_ToolBarVerticalExtensionButton 

Extension button for vertical toolbars.

SP_TrashIcon 

The "trash" icon.

SP_VistaShield 

Icon used to indicate UAC prompts on Windows Vista. This will return a null pixmap or icon on all other platforms.

This enum describes flags that are used when drawing primitive elements.

Note that not all primitives use all of these flags, and that the flags may mean different things to different items.

See also drawPrimitive().

Enumerator:
State_Active 

Indicates that the widget is active.

State_AutoRaise 

Used to indicate if auto-raise appearance should be usd on a tool button.

State_Bottom 
State_Children 

Used to indicate if an item view branch has children.

State_DownArrow 

Used to indicate if a down arrow should be visible on the widget.

State_Editing 

Used to indicate if an editor is opened on the widget.

State_Enabled 

Used to indicate if the widget is enabled.

State_FocusAtBorder 
State_HasFocus 

Used to indicate if the widget has focus.

State_Horizontal 

Used to indicate if the widget is laid out horizontally, for example. a tool bar.

State_Item 

Used by item views to indicate if a horizontal branch should be drawn.

State_KeyboardFocusChange 

Used to indicate if the focus was changed with the keyboard, e.g., tab, backtab or shortcut.

State_Mini 

Used to indicate a mini style Mac widget or button.

State_MouseOver 

Used to indicate if the widget is under the mouse.

State_NoChange 

Used to indicate a tri-state checkbox.

State_None 

Indicates that the widget does not have a state.

State_Off 

Used to indicate if the widget is not checked.

State_On 

Used to indicate if the widget is checked.

State_Open 

Used by item views to indicate if the tree branch is open.

State_Raised 

Used to indicate if a button is raised.

State_ReadOnly 

Used to indicate if a widget is read-only.

State_Selected 

Used to indicate if a widget is selected.

State_Sibling 

Used by item views to indicate if a vertical line needs to be drawn (for siblings).

State_Small 

Used to indicate a small style Mac widget or button.

State_Sunken 

Used to indicate if the widget is sunken or pressed.

State_Top 
State_UpArrow 

Used to indicate if an up arrow should be visible on the widget.

State_Window 

This enum describes the available style hints. A style hint is a general look and/or feel hint.

See also styleHint().

Enumerator:
SH_BlinkCursorWhenTextSelected 

Whether cursor should blink when text is selected.

SH_Button_FocusPolicy 

The default focus policy for buttons.

SH_ComboBox_LayoutDirection 

The layout direction for the combo box. By default it should be the same as indicated by the QStyleOption::direction variable.

SH_ComboBox_ListMouseTracking 

Mouse tracking in combobox drop-down lists.

SH_ComboBox_Popup 

Allows popups as a combobox drop-down menu.

SH_ComboBox_PopupFrameStyle 

The frame style used when drawing a combobox popup menu.

SH_CustomBase 

Base value for custom style hints. Custom values must be greater than this value.

SH_Dial_BackgroundRole 

Defines the style's preferred background role (as QPalette::ColorRole) for a dial widget.

SH_DialogButtonBox_ButtonsHaveIcons 

Indicates whether or not StandardButtons in QDialogButtonBox should have icons or not.

SH_DialogButtonLayout 

Controls how buttons are laid out in a QDialogButtonBox, returns a QDialogButtonBox::ButtonLayout enum.

SH_DialogButtons_DefaultButton 

Which button gets the default status in a dialog's button widget.

SH_DitherDisabledText 

Disabled text is dithered as it is on Motif.

SH_DockWidget_ButtonsHaveFrame 

Determines if dockwidget buttons should have frames. Default is true.

SH_DrawMenuBarSeparator 

Indicates whether or not the menu bar draws separators.

SH_EtchDisabledText 

Disabled text is "etched" as it is on Windows.

SH_FocusFrame_AboveWidget 

The FocusFrame is stacked above the widget that it is "focusing on".

SH_FocusFrame_Mask 

The mask of the focus frame.

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, as done on Windows.

SH_FormLayoutFieldGrowthPolicy 

Provides a default for how fields can grow in a QFormLayout. Returns a QFormLayout::FieldGrowthPolicy enum.

SH_FormLayoutFormAlignment 

Provides a default for how a QFormLayout aligns its contents within the available space. Returns a Qt::Alignment enum.

SH_FormLayoutLabelAlignment 

Provides a default for how a QFormLayout aligns labels within the available space. Returns a Qt::Alignment enum.

SH_FormLayoutWrapPolicy 

Provides a default for how rows are wrapped in a QFormLayout. Returns a QFormLayout::RowWrapPolicy enum.

SH_GroupBox_TextLabelColor 

How to paint a group box's text label.

SH_GroupBox_TextLabelVerticalAlignment 

How to vertically align a group box's text label.

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_ItemView_ActivateItemOnSingleClick 

Emit the activated signal when the user single clicks on an item in an item in an item view. Otherwise the signal is emitted when the user double clicks on an item.

SH_ItemView_ArrowKeysNavigateIntoChildren 

Controls whether the tree view will select the first child when it is exapanded and the right arrow key is pressed.

SH_ItemView_ChangeHighlightOnFocus 

Gray out selected items when losing focus.

SH_ItemView_DrawDelegateFrame 

Determines if there should be a frame for a delegate widget.

SH_ItemView_EllipsisLocation 

The location where ellipses should be added for item text that is too long to fit in an view item.

SH_ItemView_MovementWithoutUpdatingSelection 

The item view is able to indicate a current item without changing the selection.

SH_ItemView_PaintAlternatingRowColorsForEmptyArea 

Whether QTreeView paints alternating row colors for the area that does not have any items.

SH_ItemView_ShowDecorationSelected 

When an item in an item view is selected, also highlight the branch or other decoration.

SH_LineEdit_PasswordCharacter 

The Unicode character to be used for passwords.

SH_MainWindow_SpaceBelowMenuBar 

One or two pixel space between the menu bar and the dockarea, as done on Windows.

SH_MenuBar_AltKeyNavigation 

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

SH_MenuBar_DismissOnSecondClick 

A boolean indicating if a menu in the menu bar should be dismissed when it is clicked on a second time. (Example: Clicking and releasing on the File Menu in a menu bar and then immediately clicking on the File Menu again.)

SH_MenuBar_MouseTracking 

Mouse tracking in menu bars.

SH_Menu_AllowActiveAndDisabled 

Allows disabled menu items to be active.

SH_Menu_FadeOutOnHide 

Fade out the menu instead of hiding it immediately.

SH_Menu_FillScreenWithScroll 

Whether scrolling popups should fill the screen as they are scrolled.

SH_Menu_FlashTriggeredItem 

Flash triggered item.

SH_Menu_KeyboardSearch 

Typing causes a menu to be search for relevant items, otherwise only mnemnonic is considered.

SH_Menu_Mask 

The mask for a popup menu.

SH_Menu_MouseTracking 

Mouse tracking in popup menus.

SH_Menu_Scrollable 

Whether popup menus must support scrolling.

SH_Menu_SelectionWrap 

Whether popups should allow the selections to wrap, that is when selection should the next item be the first item.

SH_Menu_SloppySubMenus 

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

SH_Menu_SpaceActivatesItem 

Pressing the space bar activates the item, as done on Motif.

SH_Menu_SubMenuPopupDelay 

The number of milliseconds to wait before opening a submenu (256 on Windows, 96 on Motif).

SH_MessageBox_CenterButtons 

A boolean indicating whether the buttons in the message box should be centered or not (see QDialogButtonBox::setCentered()).

SH_MessageBox_TextInteractionFlags 

A boolean indicating if the text in a message box should allow user interfactions (e.g. selection) or not.

SH_MessageBox_UseBorderForButtonSpacing 

A boolean indicating what the to use the border of the buttons (computed as half the button height) for the spacing of the button in a message box.

SH_PrintDialog_RightAlignButtons 

Right align buttons in the print dialog, as done on Windows.

SH_ProgressDialog_CenterCancelButton 

Center button on progress dialogs, like Motif, otherwise right aligned.

SH_ProgressDialog_TextLabelAlignment 

The alignment for text labels in progress dialogs; Qt::AlignCenter on Windows, Qt::AlignVCenter otherwise.

SH_Q3ListViewExpand_SelectMouseType 

Which type of mouse event should cause a list view expansion to be selected.

SH_RequestSoftwareInputPanel 

Determines when a software input panel should be requested by input widgets. Returns an enum of type QStyle::RequestSoftwareInputPanel.

SH_RichText_FullWidthSelection 

Whether richtext selections should extend to the full width of the document.

SH_RubberBand_Mask 

The mask of the rubber band.

SH_ScrollBar_ContextMenu 

Whether or not a scroll bar has a context menu.

SH_ScrollBar_LeftClickAbsolutePosition 

A boolean value. If true, left clicking on a scroll bar causes the slider to jump to that position. If false, left clicking will behave as appropriate for each control.

SH_ScrollBar_MiddleClickAbsolutePosition 

A boolean value. If true, middle clicking on a scroll bar causes the slider to jump to that position. If false, middle clicking is ignored.

SH_ScrollBar_RollBetweenButtons 

A boolean value. If true, when clicking a scroll bar button (SC_ScrollBarAddLine or SC_ScrollBarSubLine) and dragging over to the opposite button (rolling) will press the new button and release the old one. When it is false, the original button is released and nothing happens (like a push button).

SH_ScrollBar_ScrollWhenPointerLeavesControl 

A boolean value. If true, when clicking a scroll bar SubControl, holding the mouse button down and moving the pointer outside the SubControl, the scroll bar continues to scroll. If false, the scollbar stops scrolling when the pointer leaves the SubControl.

SH_ScrollBar_StopMouseOverSlider 

Obsolete. Use SH_Slider_StopMouseOverSlider instead.

SH_ScrollView_FrameOnlyAroundContents 

Whether scrollviews draw their frame only around contents (like Motif), or around contents, scroll bars and corner widgets (like Windows).

SH_Slider_AbsoluteSetButtons 

Which mouse buttons cause a slider to set the value to the position clicked on.

SH_Slider_PageSetButtons 

Which mouse buttons cause a slider to page step the value.

SH_Slider_SloppyKeyEvents 

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

SH_Slider_SnapToValue 

Sliders snap to values while moving, as they do on Windows.

SH_Slider_StopMouseOverSlider 

Stops auto-repeat when the slider reaches the mouse position.

SH_SpellCheckUnderlineStyle 

A QTextCharFormat::UnderlineStyle value that specifies the way misspelled words should be underlined.

SH_SpinBox_AnimateButton 

Animate a click when up or down is pressed in a spin box.

SH_SpinBox_ClickAutoRepeatRate 

Auto-repeat interval for spinbox mouse clicks.

SH_SpinBox_ClickAutoRepeatThreshold 

Auto-repeat threshold for spinbox mouse clicks.

SH_SpinBox_KeyPressAutoRepeatRate 

Auto-repeat interval for spinbox key presses.

SH_SpinControls_DisableOnBounds 

Determines if the spin controls will shown as disabled when reaching the spin range boundary.

SH_TabBar_Alignment 

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

SH_TabBar_CloseButtonPosition 

Determines the position of the close button on a tab in a tab bar.

SH_TabBar_ElideMode 

The default eliding style for a tab bar.

SH_TabBar_PreferNoArrows 

Whether a tab bar should suggest a size to prevent scoll arrows.

SH_TabBar_SelectMouseType 

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

SH_TabWidget_DefaultTabPosition 

Default position of the tab bar in a tab widget.

SH_Table_GridLineColor 

The RGB value of the grid for a table.

SH_TextControl_FocusIndicatorTextCharFormat 

Specifies the text format used to highlight focused anchors in rich text documents displayed for example in QTextBrowser. The format has to be a QTextCharFormat returned in the variant of the QStyleHintReturnVariant return value. The QTextFormat::OutlinePen property is used for the outline and QTextFormat::BackgroundBrush for the background of the highlighted area.

SH_TitleBar_AutoRaise 

A boolean indicating whether controls on a title bar ought to update when the mouse is over them.

SH_TitleBar_ModifyNotification 

Indicates if the title bar should show a '*' for windows that are modified.

SH_TitleBar_NoBorder 

The title bar has no border.

SH_ToolBar_Movable 

Determines if the tool bar is movable by default.

SH_ToolBox_SelectedPageTitleBold 

Boldness of the selected page title in a QToolBox.

SH_ToolButtonStyle 

Determines the default system style for tool buttons that uses Qt::ToolButtonFollowStyle.

SH_ToolButton_PopupDelay 

An int indicating the popup delay in milliseconds for menus attached to tool buttons.

SH_ToolTipLabel_Opacity 

An integer indicating the opacity for the tip label, 0 is completely transparent, 255 is completely opaque.

SH_ToolTip_Mask 

The mask of a tool tip.

SH_UnderlineShortcut 

Whether shortcuts are underlined.

SH_Widget_ShareActivation 

Turn on sharing activation with floating modeless dialogs.

SH_WindowFrame_Mask 

The mask of the window frame.

SH_WizardStyle 

Controls the look and feel of a QWizard. Returns a QWizard::WizardStyle enum.

SH_Workspace_FillSpaceOnMaximize 

The workspace should maximize the client area.

This enum describes the available sub controls. A subcontrol is a control element within a complex control (ComplexControl).

See also ComplexControl.

Enumerator:
SC_All 

Special value that matches all sub-controls.

SC_ComboBoxArrow 

Combobox arrow button.

SC_ComboBoxEditField 

Combobox edit field; see also QComboBox.

SC_ComboBoxFrame 

Combobox frame.

SC_ComboBoxListBoxPopup 

The reference rectangle for the combobox popup. Used to calculate the position of the popup.

SC_CustomBase 
SC_DialGroove 

The groove for the dial.

SC_DialHandle 

The handle of the dial (i.e. what you use to control the dial).

SC_DialTickmarks 

The tickmarks for the dial.

SC_GroupBoxCheckBox 

The optional check box of a group box.

SC_GroupBoxContents 

The group box contents.

SC_GroupBoxFrame 

The frame of a group box.

SC_GroupBoxLabel 

The title of a group box.

SC_MdiCloseButton 

The close button for a MDI subwindow in the menu bar.

SC_MdiMinButton 

The minimize button for a MDI subwindow in the menu bar.

SC_MdiNormalButton 

The normal button for a MDI subwindow in the menu bar.

SC_None 

Special value that matches no other sub control.

SC_Q3ListView 

The list view area.

SC_Q3ListViewBranch 
SC_Q3ListViewExpand 

Expand item (i.e., show/hide child items).

SC_ScrollBarAddLine 

Scroll bar add line (i.e., down/right arrow); see also QScrollBar.

SC_ScrollBarAddPage 

Scroll bar add page (i.e., page down).

SC_ScrollBarFirst 

Scroll bar first line (i.e., home).

SC_ScrollBarGroove 

Special sub-control which contains the area in which the slider handle may move.

SC_ScrollBarLast 

Scroll bar last line (i.e., end).

SC_ScrollBarSlider 

Scroll bar slider handle.

SC_ScrollBarSubLine 

Scroll bar sub line (i.e., up/left arrow).

SC_ScrollBarSubPage 

Scroll bar sub page (i.e., page up).

SC_SliderGroove 

Special sub-control which contains the area in which the slider handle may move.

SC_SliderHandle 

Slider handle.

SC_SliderTickmarks 

Slider tickmarks.

SC_SpinBoxDown 

Spin widget down/decrease.

SC_SpinBoxEditField 

Spin widget edit field.

SC_SpinBoxFrame 

Spin widget frame.

SC_SpinBoxUp 

Spin widget up/increase; see also QSpinBox.

SC_TitleBarCloseButton 

Close button.

SC_TitleBarContextHelpButton 

Context Help button.

SC_TitleBarLabel 

Window title label.

SC_TitleBarMaxButton 

Maximize button.

SC_TitleBarMinButton 

Minimize button.

SC_TitleBarNormalButton 

Normal (restore) button.

SC_TitleBarShadeButton 

Shade button.

SC_TitleBarSysMenu 

System menu button (i.e., restore, close, etc.).

SC_TitleBarUnshadeButton 

Unshade button.

SC_ToolButton 

Tool button (see also QToolButton).

SC_ToolButtonMenu 

Sub-control for opening a popup menu in a tool button; see also Q3PopupMenu.

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

See also subElementRect().

Enumerator:
SE_CheckBoxClickRect 

Clickable area, defaults to SE_CheckBoxFocusRect.

SE_CheckBoxContents 

Area for the label (text or pixmap).

SE_CheckBoxFocusRect 

Area for the focus indicator.

SE_CheckBoxIndicator 

Area for the state indicator (e.g., check mark).

SE_CheckBoxLayoutItem 

Area that counts for the parent layout.

SE_ComboBoxFocusRect 

Area for the focus indicator.

SE_ComboBoxLayoutItem 

Area that counts for the parent layout.

SE_CustomBase 

Base value for custom sub-elements. Custom values must be greater than this value.

SE_DateTimeEditLayoutItem 

Area that counts for the parent layout.

SE_DialogButtonAbort 
SE_DialogButtonAccept 
SE_DialogButtonAll 
SE_DialogButtonApply 
SE_DialogButtonBoxLayoutItem 

Area that counts for the parent layout.

SE_DialogButtonCustom 
SE_DialogButtonHelp 
SE_DialogButtonIgnore 
SE_DialogButtonReject 
SE_DialogButtonRetry 
SE_DockWidgetCloseButton 

The close button of a dock widget.

SE_DockWidgetFloatButton 

The float button of a dock widget.

SE_DockWidgetIcon 

The icon of a dock widget.

SE_DockWidgetTitleBarText 

The text bounds of the dock widgets title.

SE_FrameContents 

Area for a frame's contents.

SE_FrameLayoutItem 

Area that counts for the parent layout.

SE_GroupBoxLayoutItem 

Area that counts for the parent layout.

SE_HeaderArrow 

Area for the sort indicator for a header.

SE_HeaderLabel 

Area for the label in a header.

SE_ItemViewItemCheckIndicator 

Area for a view item's check mark.

SE_ItemViewItemDecoration 

Area for a view item's decoration (icon).

SE_ItemViewItemFocusRect 

Area for a view item's focus rect.

SE_ItemViewItemText 

Area for a view item's text.

SE_LabelLayoutItem 

Area that counts for the parent layout.

SE_LineEditContents 

Area for a line edit's contents.

SE_ProgressBarContents 

Area for the progress indicator.

SE_ProgressBarGroove 

Area for the groove.

SE_ProgressBarLabel 

Area for the text label.

SE_ProgressBarLayoutItem 

Area that counts for the parent layout.

SE_PushButtonContents 

Area containing the label (icon with text or pixmap).

SE_PushButtonFocusRect 

Area for the focus rect (usually larger than the contents rect).

SE_PushButtonLayoutItem 

Area that counts for the parent layout.

SE_Q3DockWindowHandleRect 

Area for the tear-off handle.

SE_RadioButtonClickRect 

Clickable area, defaults to SE_RadioButtonFocusRect.

SE_RadioButtonContents 

Area for the label.

SE_RadioButtonFocusRect 

Area for the focus indicator.

SE_RadioButtonIndicator 

Area for the state indicator.

SE_RadioButtonLayoutItem 

Area that counts for the parent layout.

SE_ShapedFrameContents 

Area for a frame's contents using the shape in QStyleOptionFrameV3; see QFrame

SE_SliderFocusRect 

Area for the focus indicator.

SE_SliderLayoutItem 

Area that counts for the parent layout.

SE_SpinBoxLayoutItem 

Area that counts for the parent layout.

SE_TabBarTabLeftButton 

Area for a widget on the left side of a tab in a tab bar.

SE_TabBarTabRightButton 

Area for a widget on the right side of a tab in a tab bar.

SE_TabBarTabText 

Area for the text on a tab in a tab bar.

SE_TabBarTearIndicator 

Area for the tear indicator on a tab bar with scroll arrows.

SE_TabWidgetLayoutItem 

Area that counts for the parent layout.

SE_TabWidgetLeftCorner 

Area for the left corner widget in a tab widget.

SE_TabWidgetRightCorner 

Area for the right corner widget in a tab widget.

SE_TabWidgetTabBar 

Area for the tab bar widget in a tab widget.

SE_TabWidgetTabContents 

Area for the contents of the tab widget.

SE_TabWidgetTabPane 

Area for the pane of a tab widget.

SE_ToolBarHandle 

Area for the handle of a tool bar.

SE_ToolBoxTabContents 

Area for a toolbox tab's icon and label.

SE_ToolButtonLayoutItem 

Area that counts for the parent layout.

SE_TreeViewDisclosureItem 

Area for the actual disclosure item in a tree branch.

SE_ViewItemCheckIndicator 

Constructor & Destructor Documentation

QtGui.QStyle.QStyle ( System.Type  dummy)
protected
QtGui.QStyle.QStyle ( )

Constructs a style object.

Member Function Documentation

static QRect QtGui.QStyle.AlignedRect ( Qt.LayoutDirection  direction,
Qt.AlignmentFlag  alignment,
QSize  size,
QRect  rectangle 
)
static

Returns a new rectangle of the specified size that is aligned to the given rectangle according to the specified alignment and direction.

new int QtGui.QStyle.CombinedLayoutSpacing ( QSizePolicy.ControlType  controls1,
QSizePolicy.ControlType  controls2,
Qt.Orientation  orientation,
QStyleOption  option = null,
QWidget  widget = null 
)

Returns the spacing that should be used between controls1 and controls2 in a layout. orientation specifies whether the controls are laid out side by side or stacked vertically. The option parameter can be used to pass extra information about the parent widget. The widget parameter is optional and can also be used if option is 0.

controls1 and controls2 are OR-combination of zero or more control types.

This function is called by the layout system. It is used only if PM_LayoutHorizontalSpacing or PM_LayoutVerticalSpacing returns a negative value.

This function was introduced in Qt 4.3.

See also layoutSpacing() and layoutSpacingImplementation().

override void QtGui.QStyle.CreateProxy ( )
virtual

Reimplemented from QtCore.QObject.

new void QtGui.QStyle.Dispose ( )
abstract void QtGui.QStyle.DrawComplexControl ( QStyle.ComplexControl  cc,
QStyleOptionComplex  opt,
QPainter  p,
QWidget  widget = null 
)
pure virtual

Draws the given control using the provided painter with the style options specified by option.

The widget argument is optional and can be used as aid in drawing the control.

The option parameter is a pointer to a QStyleOptionComplex object that can be cast to the correct subclass using the qstyleoption_cast() function. Note that the rect member of the specified option must be in logical coordinates. Reimplementations of this function should use visualRect() to change the logical coordinates into screen coordinates before calling the drawPrimitive() or drawControl() function.

The table below is listing the complex control elements and their associated style option subclass. The style options contain all the parameters required to draw the controls, including QStyleOption::state which holds the style flags that are used when drawing. The table also describes which flags that are set when casting the given option to the appropriate subclass.

Complex ControlQStyleOptionComplex SubclassStyle FlagRemark

CC_SpinBox QStyleOptionSpinBox State_Enabled Set if the spin box is enabled.

State_HasFocus Set if the spin box has input focus.

CC_ComboBox QStyleOptionComboBox State_Enabled Set if the combobox is enabled.

State_HasFocus Set if the combobox has input focus.

CC_ScrollBar QStyleOptionSlider State_Enabled Set if the scroll bar is enabled.

State_HasFocus Set if the scroll bar has input focus.

CC_Slider QStyleOptionSlider State_Enabled Set if the slider is enabled.

State_HasFocus Set if the slider has input focus.

CC_Dial QStyleOptionSlider State_Enabled Set if the dial is enabled.

State_HasFocus Set if the dial has input focus.

CC_ToolButton QStyleOptionToolButton State_Enabled Set if the tool button is enabled.

State_HasFocus Set if the tool button has input focus.

State_DownArrow Set if the tool button is down (i.e., a mouse button or the space bar is pressed).

State_On Set if the tool button is a toggle button and is toggled on.

State_AutoRaise Set if the tool button has auto-raise enabled.

State_Raised Set if the button is not down, not on, and doesn't contain the mouse when auto-raise is enabled.

CC_TitleBar QStyleOptionTitleBar State_Enabled Set if the title bar is enabled.

CC_Q3ListView QStyleOptionQ3ListView State_Enabled Set if the list view is enabled.

See also drawPrimitive() and drawControl().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

abstract void QtGui.QStyle.DrawControl ( QStyle.ControlElement  element,
QStyleOption  opt,
QPainter  p,
QWidget  w = null 
)
pure virtual

Draws the given element with the provided painter with the style options specified by option.

The widget argument is optional and can be used as aid in drawing the control. The option parameter is a pointer to a QStyleOption object that can be cast to the correct subclass using the qstyleoption_cast() function.

The table below is listing the control elements and their associated style option subclass. The style options contain all the parameters required to draw the controls, including QStyleOption::state which holds the style flags that are used when drawing. The table also describes which flags that are set when casting the given option to the appropriate subclass.

Note that if a control element is not listed here, it is because it uses a plain QStyleOption object.

Control ElementQStyleOption SubclassStyle FlagRemark

CE_MenuItem, CE_MenuBarItem QStyleOptionMenuItem State_Selected The menu item is currently selected item.

State_Enabled The item is enabled.

State_DownArrow Indicates that a scroll down arrow should be drawn.

State_UpArrow Indicates that a scroll up arrow should be drawn

State_HasFocus Set if the menu bar has input focus.

CE_PushButton, CE_PushButtonBevel, CE_PushButtonLabel QStyleOptionButton State_Enabled Set if the button is enabled.

State_HasFocus Set if the button has input focus.

State_Raised Set if the button is not down, not on and not flat.

State_On Set if the button is a toggle button and is toggled on.

State_Sunken Set if the button is down (i.e., the mouse button or the space bar is pressed on the button).

CE_RadioButton, CE_RadioButtonLabel, CE_CheckBox, CE_CheckBoxLabel QStyleOptionButton State_Enabled Set if the button is enabled.

State_HasFocus Set if the button has input focus.

State_On Set if the button is checked.

State_Off Set if the button is not checked.

State_NoChange Set if the button is in the NoChange state.

State_Sunken Set if the button is down (i.e., the mouse button or the space bar is pressed on the button).

CE_ProgressBarContents, CE_ProgressBarLabel, CE_ProgressBarGroove QStyleOptionProgressBar State_Enabled Set if the progress bar is enabled.

State_HasFocus Set if the progress bar has input focus.

CE_Header, CE_HeaderSection, CE_HeaderLabel QStyleOptionHeader

CE_TabBarTab, CE_TabBarTabShape, CE_TabBarTabLabel QStyleOptionTab State_Enabled Set if the tab bar is enabled.

State_Selected The tab bar is the currently selected tab bar.

State_HasFocus Set if the tab bar tab has input focus.

CE_ToolButtonLabel QStyleOptionToolButton State_Enabled Set if the tool button is enabled.

State_HasFocus Set if the tool button has input focus.

State_Sunken Set if the tool button is down (i.e., a mouse button or the space bar is pressed).

State_On Set if the tool button is a toggle button and is toggled on.

State_AutoRaise Set if the tool button has auto-raise enabled.

State_MouseOver Set if the mouse pointer is over the tool button.

State_Raised Set if the button is not down and is not on.

CE_ToolBoxTab QStyleOptionToolBox State_Selected The tab is the currently selected tab.

CE_HeaderSection QStyleOptionHeader State_Sunken Indicates that the section is pressed.

State_UpArrow Indicates that the sort indicator should be pointing up.

State_DownArrow Indicates that the sort indicator should be pointing down.

See also drawPrimitive() and drawComplexControl().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual void QtGui.QStyle.DrawItemPixmap ( QPainter  painter,
QRect  rect,
int  alignment,
QPixmap  pixmap 
)
virtual

Draws the given pixmap in the specified rectangle, according to the specified alignment, using the provided painter.

See also drawItemText().

Reimplemented in QtGui.QProxyStyle.

virtual void QtGui.QStyle.DrawItemText ( QPainter  painter,
QRect  rect,
int  flags,
QPalette  pal,
bool  enabled,
string  text,
QPalette.ColorRole  textRole = QPalette.ColorRole.NoRole 
)
virtual

Draws the given text in the specified rectangle using the provided painter and palette.

The text is drawn using the painter's pen, and aligned and wrapped according to the specified alignment. If an explicit textRole is specified, the text is drawn using the palette's color for the given role. The enabled parameter indicates whether or not the item is enabled; when reimplementing this function, the enabled parameter should influence how the item is drawn.

See also Qt::Alignment and drawItemPixmap().

Reimplemented in QtGui.QProxyStyle.

abstract void QtGui.QStyle.DrawPrimitive ( QStyle.PrimitiveElement  pe,
QStyleOption  opt,
QPainter  p,
QWidget  w = null 
)
pure virtual

Draws the given primitive element with the provided painter using the style options specified by option.

The widget argument is optional and may contain a widget that may aid in drawing the primitive element.

The table below is listing the primitive elements and their associated style option subclasses. The style options contain all the parameters required to draw the elements, including QStyleOption::state which holds the style flags that are used when drawing. The table also describes which flags that are set when casting the given option to the appropriate subclass.

Note that if a primitive element is not listed here, it is because it uses a plain QStyleOption object.

Primitive ElementQStyleOption SubclassStyle FlagRemark

PE_FrameFocusRect QStyleOptionFocusRect State_FocusAtBorder Whether the focus is is at the border or inside the widget.

PE_IndicatorCheckBox QStyleOptionButton State_NoChange Indicates a "tri-state" checkbox.

State_On Indicates the indicator is checked.

PE_IndicatorRadioButton QStyleOptionButton State_On Indicates that a radio button is selected.

PE_Q3CheckListExclusiveIndicator, PE_Q3CheckListIndicator QStyleOptionQ3ListView State_On Indicates whether or not the controller is selected.

State_NoChange Indicates a "tri-state" controller.

State_Enabled Indicates the controller is enabled.

PE_IndicatorBranch QStyleOption State_Children Indicates that the control for expanding the tree to show child items, should be drawn.

State_Item Indicates that a horizontal branch (to show a child item), should be drawn.

State_Open Indicates that the tree branch is expanded.

State_Sibling Indicates that a vertical line (to show a sibling item), should be drawn.

PE_IndicatorHeaderArrow QStyleOptionHeader State_UpArrow Indicates that the arrow should be drawn up; otherwise it should be down.

PE_FrameGroupBox, PE_Frame, PE_FrameLineEdit, PE_FrameMenu, PE_FrameDockWidget, PE_FrameWindow QStyleOptionFrame State_Sunken Indicates that the Frame should be sunken.

PE_IndicatorToolBarHandle QStyleOption State_Horizontal Indicates that the window handle is horizontal instead of vertical.

PE_Q3DockWindowSeparator QStyleOption State_Horizontal Indicates that the separator is horizontal instead of vertical.

PE_IndicatorSpinPlus, PE_IndicatorSpinMinus, PE_IndicatorSpinUp, PE_IndicatorSpinDown, QStyleOptionSpinBox State_Sunken Indicates that the button is pressed.

PE_PanelButtonCommand QStyleOptionButton State_Enabled Set if the button is enabled.

State_HasFocus Set if the button has input focus.

State_Raised Set if the button is not down, not on and not flat.

State_On Set if the button is a toggle button and is toggled on.

State_Sunken Set if the button is down (i.e., the mouse button or the space bar is pressed on the button).

See also drawComplexControl() and drawControl().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

abstract QPixmap QtGui.QStyle.GeneratedIconPixmap ( QIcon.Mode  iconMode,
QPixmap  pixmap,
QStyleOption  opt 
)
pure virtual

Returns a copy of the given pixmap, styled to conform to the specified iconMode and taking into account the palette specified by option.

The option parameter can pass extra information, but it must contain a palette.

Note that not all pixmaps will conform, in which case the returned pixmap is a plain copy.

See also QIcon.

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

abstract QStyle.SubControl QtGui.QStyle.HitTestComplexControl ( QStyle.ComplexControl  cc,
QStyleOptionComplex  opt,
QPoint  pt,
QWidget  widget = null 
)
pure virtual

Returns the sub control at the given position in the given complex control (with the style options specified by option).

Note that the position is expressed in screen coordinates.

The option argument is a pointer to a QStyleOptionComplex object (or one of its subclasses). The object can be cast to the appropriate type using the qstyleoption_cast() function. See drawComplexControl() for details. The widget argument is optional and can contain additional information for the function.

See also drawComplexControl() and subControlRect().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual QRect QtGui.QStyle.ItemPixmapRect ( QRect  r,
int  flags,
QPixmap  pixmap 
)
virtual

Returns the area within the given rectangle in which to draw the specified pixmap according to the defined alignment.

Reimplemented in QtGui.QProxyStyle.

virtual QRect QtGui.QStyle.ItemTextRect ( QFontMetrics  fm,
QRect  r,
int  flags,
bool  enabled,
string  text 
)
virtual

Returns the area within the given rectangle in which to draw the provided text according to the specified font metrics and alignment. The enabled parameter indicates whether or not the associated item is enabled.

If the given rectangle is larger than the area needed to render the text, the rectangle that is returned will be offset within rectangle according to the specified alignment. For example, if alignment is Qt::AlignCenter, the returned rectangle will be centered within rectangle. If the given rectangle is smaller than the area needed, the returned rectangle will be the smallest rectangle large enough to render the text.

See also Qt::Alignment.

Reimplemented in QtGui.QProxyStyle.

new int QtGui.QStyle.LayoutSpacing ( QSizePolicy.ControlType  control1,
QSizePolicy.ControlType  control2,
Qt.Orientation  orientation,
QStyleOption  option = null,
QWidget  widget = null 
)

Returns the spacing that should be used between control1 and control2 in a layout. orientation specifies whether the controls are laid out side by side or stacked vertically. The option parameter can be used to pass extra information about the parent widget. The widget parameter is optional and can also be used if option is 0.

This function is called by the layout system. It is used only if PM_LayoutHorizontalSpacing or PM_LayoutVerticalSpacing returns a negative value.

For binary compatibility reasons, this function is not virtual. If you want to specify custom layout spacings in a QStyle subclass, implement a slot called layoutSpacingImplementation(). QStyle will discover the slot at run-time (using Qt's meta-object system) and direct all calls to layoutSpacing() to layoutSpacingImplementation().

This function was introduced in Qt 4.3.

See also combinedLayoutSpacing() and layoutSpacingImplementation().

new int QtGui.QStyle.LayoutSpacingImplementation ( QSizePolicy.ControlType  control1,
QSizePolicy.ControlType  control2,
Qt.Orientation  orientation,
QStyleOption  option = null,
QWidget  widget = null 
)
protected

This slot is called by layoutSpacing() to determine the spacing that should be used between control1 and control2 in a layout. orientation specifies whether the controls are laid out side by side or stacked vertically. The option parameter can be used to pass extra information about the parent widget. The widget parameter is optional and can also be used if option is 0.

If you want to provide custom layout spacings in a QStyle subclass, implement a slot called layoutSpacingImplementation() in your subclass. Be aware that this slot will only be called if PM_LayoutHorizontalSpacing or PM_LayoutVerticalSpacing returns a negative value.

The default implementation returns -1.

This function was introduced in Qt 4.3.

See also layoutSpacing() and combinedLayoutSpacing().

new int QtGui.QStyle.pixelMetric ( QStyle.PixelMetric  metric)

Returns the value of the given pixel metric.

The specified option and widget can be used for calculating the metric. In general, the widget argument is not used. The option can be cast to the appropriate type using the qstyleoption_cast() function. Note that the option may be zero even for PixelMetrics that can make use of it. See the table below for the appropriate option casts:

Pixel MetricQStyleOption Subclass

PM_SliderControlThickness QStyleOptionSlider

PM_SliderLength QStyleOptionSlider

PM_SliderTickmarkOffset QStyleOptionSlider

PM_SliderSpaceAvailable QStyleOptionSlider

PM_ScrollBarExtent QStyleOptionSlider

PM_TabBarTabOverlap QStyleOptionTab

PM_TabBarTabHSpace QStyleOptionTab

PM_TabBarTabVSpace QStyleOptionTab

PM_TabBarBaseHeight QStyleOptionTab

PM_TabBarBaseOverlap QStyleOptionTab

Some pixel metrics are called from widgets and some are only called internally by the style. If the metric is not called by a widget, it is the discretion of the style author to make use of it. For some styles, this may not be appropriate.

new int QtGui.QStyle.pixelMetric ( QStyle.PixelMetric  metric,
QStyleOption  option = null 
)

Returns the value of the given pixel metric.

The specified option and widget can be used for calculating the metric. In general, the widget argument is not used. The option can be cast to the appropriate type using the qstyleoption_cast() function. Note that the option may be zero even for PixelMetrics that can make use of it. See the table below for the appropriate option casts:

Pixel MetricQStyleOption Subclass

PM_SliderControlThickness QStyleOptionSlider

PM_SliderLength QStyleOptionSlider

PM_SliderTickmarkOffset QStyleOptionSlider

PM_SliderSpaceAvailable QStyleOptionSlider

PM_ScrollBarExtent QStyleOptionSlider

PM_TabBarTabOverlap QStyleOptionTab

PM_TabBarTabHSpace QStyleOptionTab

PM_TabBarTabVSpace QStyleOptionTab

PM_TabBarBaseHeight QStyleOptionTab

PM_TabBarBaseOverlap QStyleOptionTab

Some pixel metrics are called from widgets and some are only called internally by the style. If the metric is not called by a widget, it is the discretion of the style author to make use of it. For some styles, this may not be appropriate.

abstract int QtGui.QStyle.pixelMetric ( QStyle.PixelMetric  metric,
QStyleOption  option = null,
QWidget  widget = null 
)
pure virtual

Returns the value of the given pixel metric.

The specified option and widget can be used for calculating the metric. In general, the widget argument is not used. The option can be cast to the appropriate type using the qstyleoption_cast() function. Note that the option may be zero even for PixelMetrics that can make use of it. See the table below for the appropriate option casts:

Pixel MetricQStyleOption Subclass

PM_SliderControlThickness QStyleOptionSlider

PM_SliderLength QStyleOptionSlider

PM_SliderTickmarkOffset QStyleOptionSlider

PM_SliderSpaceAvailable QStyleOptionSlider

PM_ScrollBarExtent QStyleOptionSlider

PM_TabBarTabOverlap QStyleOptionTab

PM_TabBarTabHSpace QStyleOptionTab

PM_TabBarTabVSpace QStyleOptionTab

PM_TabBarBaseHeight QStyleOptionTab

PM_TabBarBaseOverlap QStyleOptionTab

Some pixel metrics are called from widgets and some are only called internally by the style. If the metric is not called by a widget, it is the discretion of the style author to make use of it. For some styles, this may not be appropriate.

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual void QtGui.QStyle.Polish ( QWidget  arg1)
virtual

Initializes the appearance of the given widget.

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

Note that the default implementation does nothing. Reasonable actions in this function might be to call the QWidget::setBackgroundMode() function for the widget. Do not use the function to set, for example, the geometry. Reimplementing this function provides a back-door through which the appearance of a widget can be changed, but with Qt's style engine it is rarely necessary to implement this function; reimplement drawItemPixmap(), drawItemText(), drawPrimitive(), etc. instead.

The QWidget::inherits() function may provide enough information to allow class-specific customizations. But because new QStyle subclasses are expected to work reasonably with all current and future widgets, limited use of hard-coded customization is recommended.

See also unpolish().

Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual void QtGui.QStyle.Polish ( QApplication  arg1)
virtual

This is an overloaded function.

Late initialization of the given application object.

Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual void QtGui.QStyle.Polish ( QPalette  arg1)
virtual

This is an overloaded function.

Changes the palette according to style specific requirements for color palettes (if any).

See also QPalette and QApplication::setPalette().

Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

new QStyle QtGui.QStyle.Proxy ( )

This function returns the current proxy for this style. By default most styles will return themselves. However when a proxy style is in use, it will allow the style to call back into its proxy.

This function was introduced in Qt 4.6.

abstract QSize QtGui.QStyle.SizeFromContents ( QStyle.ContentsType  ct,
QStyleOption  opt,
QSize  contentsSize,
QWidget  w = null 
)
pure virtual

Returns the size of the element described by the specified option and type, based on the provided contentsSize.

The option argument is a pointer to a QStyleOption or one of its subclasses. The option can be cast to the appropriate type using the qstyleoption_cast() function. The widget is an optional argument and can contain extra information used for calculating the size.

See the table below for the appropriate option casts:

Contents TypeQStyleOption Subclass

CT_PushButton QStyleOptionButton

CT_CheckBox QStyleOptionButton

CT_RadioButton QStyleOptionButton

CT_ToolButton QStyleOptionToolButton

CT_ComboBox QStyleOptionComboBox

CT_Splitter QStyleOption

CT_Q3DockWindow QStyleOptionQ3DockWindow

CT_ProgressBar QStyleOptionProgressBar

CT_MenuItem QStyleOptionMenuItem

See also ContentsType and QStyleOption.

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

static int QtGui.QStyle.SliderPositionFromValue ( int  min,
int  max,
int  val,
int  space,
bool  upsideDown = false 
)
static

Converts the given logicalValue to a pixel position. The min parameter maps to 0, max maps to span and other values are distributed evenly in-between.

This function can handle the entire integer range without overflow, providing that span is less than 4096.

By default, this function assumes that the maximum value is on the right for horizontal items and on the bottom for vertical items. Set the upsideDown parameter to true to reverse this behavior.

See also sliderValueFromPosition().

static int QtGui.QStyle.SliderValueFromPosition ( int  min,
int  max,
int  pos,
int  space,
bool  upsideDown = false 
)
static

Converts the given pixel position to a logical value. 0 maps to the min parameter, span maps to max and other values are distributed evenly in-between.

This function can handle the entire integer range without overflow.

By default, this function assumes that the maximum value is on the right for horizontal items and on the bottom for vertical items. Set the upsideDown parameter to true to reverse this behavior.

See also sliderPositionFromValue().

new QIcon QtGui.QStyle.StandardIcon ( QStyle.StandardPixmap  standardIcon,
QStyleOption  option = null,
QWidget  widget = null 
)

Returns an icon for the given standardIcon.

The standardIcon is a standard pixmap which can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate icon. The widget argument is optional and can also be used to aid the determination of the icon.

Warning: Because of binary compatibility constraints, this function is not virtual. If you want to provide your own icons in a QStyle subclass, reimplement the standardIconImplementation() slot in your subclass instead. The standardIcon() function will dynamically detect the slot and call it.

This function was introduced in Qt 4.1.

See also standardIconImplementation().

new QIcon QtGui.QStyle.StandardIconImplementation ( QStyle.StandardPixmap  standardIcon,
QStyleOption  opt = null,
QWidget  widget = null 
)
protected

Returns an icon for the given standardIcon.

Reimplement this slot to provide your own icons in a QStyle subclass; because of binary compatibility constraints, the standardIcon() function (introduced in Qt 4.1) is not virtual. Instead, standardIcon() will dynamically detect and call this slot.

The standardIcon is a standard pixmap which can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate icon. The widget argument is optional and can also be used to aid the determination of the icon.

This function was introduced in Qt 4.1.

See also standardIcon().

virtual QPalette QtGui.QStyle.StandardPalette ( )
virtual

Returns the style's standard palette.

Note that on systems that support system colors, the style's standard palette is not used. In particular, the Windows XP, Vista, and Mac styles do not use the standard palette, but make use of native theme engines. With these styles, you should not set the palette with QApplication::setStandardPalette().

Reimplemented in QtGui.QProxyStyle.

new QPixmap QtGui.QStyle.standardPixmap ( QStyle.StandardPixmap  standardPixmap)

Returns a pixmap for the given standardPixmap.

A standard pixmap is a pixmap that can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate pixmap. The widget argument is optional and can also be used to aid the determination of the pixmap.

Developers calling standardPixmap() should instead call standardIcon() Developers who re-implemented standardPixmap() should instead re-implement the slot standardIconImplementation().

See also standardIcon().

new QPixmap QtGui.QStyle.standardPixmap ( QStyle.StandardPixmap  standardPixmap,
QStyleOption  opt = null 
)

Returns a pixmap for the given standardPixmap.

A standard pixmap is a pixmap that can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate pixmap. The widget argument is optional and can also be used to aid the determination of the pixmap.

Developers calling standardPixmap() should instead call standardIcon() Developers who re-implemented standardPixmap() should instead re-implement the slot standardIconImplementation().

See also standardIcon().

abstract QPixmap QtGui.QStyle.standardPixmap ( QStyle.StandardPixmap  standardPixmap,
QStyleOption  opt = null,
QWidget  widget = null 
)
pure virtual

Returns a pixmap for the given standardPixmap.

A standard pixmap is a pixmap that can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate pixmap. The widget argument is optional and can also be used to aid the determination of the pixmap.

Developers calling standardPixmap() should instead call standardIcon() Developers who re-implemented standardPixmap() should instead re-implement the slot standardIconImplementation().

See also standardIcon().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

new int QtGui.QStyle.styleHint ( QStyle.StyleHint  stylehint)

Returns an integer representing the specified style hint for the given widget described by the provided style option.

returnData is used when the querying widget needs more detailed data than the integer that styleHint() returns. See the QStyleHintReturn class description for details.

new int QtGui.QStyle.styleHint ( QStyle.StyleHint  stylehint,
QStyleOption  opt = null 
)

Returns an integer representing the specified style hint for the given widget described by the provided style option.

returnData is used when the querying widget needs more detailed data than the integer that styleHint() returns. See the QStyleHintReturn class description for details.

new int QtGui.QStyle.styleHint ( QStyle.StyleHint  stylehint,
QStyleOption  opt = null,
QWidget  widget = null 
)

Returns an integer representing the specified style hint for the given widget described by the provided style option.

returnData is used when the querying widget needs more detailed data than the integer that styleHint() returns. See the QStyleHintReturn class description for details.

abstract int QtGui.QStyle.styleHint ( QStyle.StyleHint  stylehint,
QStyleOption  opt = null,
QWidget  widget = null,
QStyleHintReturn  returnData = null 
)
pure virtual

Returns an integer representing the specified style hint for the given widget described by the provided style option.

returnData is used when the querying widget needs more detailed data than the integer that styleHint() returns. See the QStyleHintReturn class description for details.

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

abstract QRect QtGui.QStyle.SubControlRect ( QStyle.ComplexControl  cc,
QStyleOptionComplex  opt,
QStyle.SubControl  sc,
QWidget  widget = null 
)
pure virtual

Returns the rectangle containing the specified subControl of the given complex control (with the style specified by option). The rectangle is defined in screen coordinates.

The option argument is a pointer to QStyleOptionComplex or one of its subclasses, and can be cast to the appropriate type using the qstyleoption_cast() function. See drawComplexControl() for details. The widget is optional and can contain additional information for the function.

See also drawComplexControl().

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

abstract QRect QtGui.QStyle.SubElementRect ( QStyle.SubElement  subElement,
QStyleOption  option,
QWidget  widget = null 
)
pure virtual

Returns the sub-area for the given element as described in the provided style option. The returned rectangle is defined in screen coordinates.

The widget argument is optional and can be used to aid determining the area. The QStyleOption object can be cast to the appropriate type using the qstyleoption_cast() function. See the table below for the appropriate option casts:

Sub ElementQStyleOption Subclass

SE_PushButtonContents QStyleOptionButton

SE_PushButtonFocusRect QStyleOptionButton

SE_CheckBoxIndicator QStyleOptionButton

SE_CheckBoxContents QStyleOptionButton

SE_CheckBoxFocusRect QStyleOptionButton

SE_RadioButtonIndicator QStyleOptionButton

SE_RadioButtonContents QStyleOptionButton

SE_RadioButtonFocusRect QStyleOptionButton

SE_ComboBoxFocusRect QStyleOptionComboBox

SE_Q3DockWindowHandleRect QStyleOptionQ3DockWindow

SE_ProgressBarGroove QStyleOptionProgressBar

SE_ProgressBarContents QStyleOptionProgressBar

SE_ProgressBarLabel QStyleOptionProgressBar

Implemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

static string QtGui.QStyle.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QStyle.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QStyle.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QStyle.TrUtf8 ( string  s,
string  c,
int  n 
)
static
virtual void QtGui.QStyle.Unpolish ( QWidget  arg1)
virtual

Uninitialize the given widget's appearance.

This function is the counterpart to polish(). It is called for every polished widget whenever the style is dynamically changed; the former style has to unpolish its settings before the new style can polish them again.

Note that unpolish() will only be called if the widget is destroyed. This can cause problems in some cases, e.g, if you remove a widget from the UI, cache it, and then reinsert it after the style has changed; some of Qt's classes cache their widgets.

See also polish().

Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

virtual void QtGui.QStyle.Unpolish ( QApplication  arg1)
virtual

This is an overloaded function.

Uninitialize the given application.

Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.

static Qt.AlignmentFlag QtGui.QStyle.VisualAlignment ( Qt.LayoutDirection  direction,
Qt.AlignmentFlag  alignment 
)
static

Transforms an alignment of Qt::AlignLeft or Qt::AlignRight without Qt::AlignAbsolute into Qt::AlignLeft or Qt::AlignRight with Qt::AlignAbsolute according to the layout direction. The other alignment flags are left untouched.

If no horizontal alignment was specified, the function returns the default alignment for the given layout direction.

QWidget::layoutDirection

static QPoint QtGui.QStyle.VisualPos ( Qt.LayoutDirection  direction,
QRect  boundingRect,
QPoint  logicalPos 
)
static

Returns the given logicalPosition converted to screen coordinates based on the specified direction. The boundingRectangle is used when performing the translation.

See also QWidget::layoutDirection.

static QRect QtGui.QStyle.VisualRect ( Qt.LayoutDirection  direction,
QRect  boundingRect,
QRect  logicalRect 
)
static

Returns the given logicalRectangle converted to screen coordinates based on the specified direction. The boundingRectangle is used when performing the translation.

This function is provided to support right-to-left desktops, and is typically used in implementations of the subControlRect() function.

See also QWidget::layoutDirection.

Property Documentation

new IQStyleSignals QtGui.QStyle.Emit
getprotected
new QMetaObject QtGui.QStyle.StaticMetaObject
staticget