QStyle Class Reference
[QtGui module]
Inherits QObject.
Types
- enum ComplexControl { CC_SpinBox, CC_ComboBox, CC_ScrollBar, CC_Slider, ..., CC_CustomBase }
- enum ContentsType { CT_PushButton, CT_CheckBox, CT_RadioButton, CT_ToolButton, ..., CT_CustomBase }
- enum ControlElement { CE_PushButton, CE_PushButtonBevel, CE_PushButtonLabel, CE_CheckBox, ..., CE_CustomBase }
- enum PixelMetric { PM_ButtonMargin, PM_ButtonDefaultIndicator, PM_MenuButtonIndicator, PM_ButtonShiftHorizontal, ..., PM_CustomBase }
- enum PrimitiveElement { PE_Q3CheckListController, PE_Q3CheckListExclusiveIndicator, PE_Q3CheckListIndicator, PE_Q3DockWindowSeparator, ..., PE_CustomBase }
- enum RequestSoftwareInputPanel { RSIP_OnMouseClickAndAlreadyFocused, RSIP_OnMouseClick }
- enum StandardPixmap { SP_TitleBarMenuButton, SP_TitleBarMinButton, SP_TitleBarMaxButton, SP_TitleBarCloseButton, ..., SP_CustomBase }
- class State
- enum StateFlag { State_None, State_Enabled, State_Raised, State_Sunken, ..., State_Mini }
- enum StyleHint { SH_EtchDisabledText, SH_DitherDisabledText, SH_ScrollBar_MiddleClickAbsolutePosition, SH_ScrollBar_ScrollWhenPointerLeavesControl, ..., SH_CustomBase }
- enum SubControl { SC_None, SC_ScrollBarAddLine, SC_ScrollBarSubLine, SC_ScrollBarAddPage, ..., SC_All }
- class SubControls
- enum SubElement { SE_PushButtonContents, SE_PushButtonFocusRect, SE_CheckBoxIndicator, SE_CheckBoxContents, ..., SE_CustomBase }
Methods
- __init__ (self)
- int combinedLayoutSpacing (self, QSizePolicy.ControlTypes, QSizePolicy.ControlTypes, Qt.Orientation, QStyleOption option = None, QWidget widget = None)
- drawComplexControl (self, ComplexControl, QStyleOptionComplex, QPainter, QWidget widget = None)
- drawControl (self, ControlElement, QStyleOption, QPainter, QWidget widget = None)
- drawItemPixmap (self, QPainter, QRect, int, QPixmap)
- drawItemText (self, QPainter, QRect, int, QPalette, bool, QString, QPalette.ColorRole textRole = QPalette.NoRole)
- drawPrimitive (self, PrimitiveElement, QStyleOption, QPainter, QWidget widget = None)
- QPixmap generatedIconPixmap (self, QIcon.Mode, QPixmap, QStyleOption)
- SubControl hitTestComplexControl (self, ComplexControl, QStyleOptionComplex, QPoint, QWidget widget = None)
- QRect itemPixmapRect (self, QRect, int, QPixmap)
- QRect itemTextRect (self, QFontMetrics, QRect, int, bool, QString)
- int layoutSpacing (self, QSizePolicy.ControlType, QSizePolicy.ControlType, Qt.Orientation, QStyleOption option = None, QWidget widget = None)
- int layoutSpacingImplementation (self, QSizePolicy.ControlType, QSizePolicy.ControlType, Qt.Orientation, QStyleOption option = None, QWidget widget = None)
- int pixelMetric (self, PixelMetric, QStyleOption option = None, QWidget widget = None)
- polish (self, QWidget)
- polish (self, QApplication)
- QPalette polish (self, QPalette)
- QStyle proxy (self)
- QSize sizeFromContents (self, ContentsType, QStyleOption, QSize, QWidget widget = None)
- QIcon standardIcon (self, StandardPixmap, QStyleOption option = None, QWidget widget = None)
- QIcon standardIconImplementation (self, StandardPixmap, QStyleOption option = None, QWidget widget = None)
- QPalette standardPalette (self)
- QPixmap standardPixmap (self, StandardPixmap, QStyleOption option = None, QWidget widget = None)
- int styleHint (self, StyleHint, QStyleOption option = None, QWidget widget = None, QStyleHintReturn returnData = None)
- QRect subControlRect (self, ComplexControl, QStyleOptionComplex, SubControl, QWidget widget = None)
- QRect subElementRect (self, SubElement, QStyleOption, QWidget widget = None)
- unpolish (self, QWidget)
- unpolish (self, QApplication)
Static Methods
- QRect alignedRect (Qt.LayoutDirection, Qt.Alignment, QSize, QRect)
- int sliderPositionFromValue (int, int, int, int, bool upsideDown = False)
- int sliderValueFromPosition (int, int, int, int, bool upsideDown = False)
- Qt.Alignment visualAlignment (Qt.LayoutDirection, Qt.Alignment)
- QPoint visualPos (Qt.LayoutDirection, QRect, QPoint)
- QRect visualRect (Qt.LayoutDirection, QRect, QRect)
Detailed Description
Type Documentation
QStyle.ComplexControl
QStyle.ContentsType
QStyle.ControlElement
QStyle.PixelMetric
QStyle.PrimitiveElement
QStyle.RequestSoftwareInputPanel
QStyle.StandardPixmap
QStyle.StateFlag
QStyle.StyleHint
QStyle.SubControl
QStyle.SubElement
Method Documentation
QStyle.__init__ (self)
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
QStyle.drawItemText (self, QPainter, QRect, int, QPalette, bool, QString, QPalette.ColorRole textRole = QPalette.NoRole)
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
QRect QStyle.itemPixmapRect (self, QRect, int, QPixmap)
QRect QStyle.itemTextRect (self, QFontMetrics, QRect, int, bool, QString)
This method is also a Qt slot with the C++ signature int layoutSpacingImplementation(QSizePolicy::ControlType,QSizePolicy::ControlType,Qt::Orientation,const QStyleOption * = 0,const QWidget * = 0) const.
int QStyle.pixelMetric (self, PixelMetric, QStyleOption option = None, QWidget widget = None)
This method is abstract and should be reimplemented in any sub-class.
QStyle.polish (self, QWidget)
QStyle QStyle.proxy (self)
This method is abstract and should be reimplemented in any sub-class.
int QStyle.sliderPositionFromValue (int, int, int, int, bool upsideDown = False)
int QStyle.sliderValueFromPosition (int, int, int, int, bool upsideDown = False)
This method is also a Qt slot with the C++ signature QIcon standardIconImplementation(QStyle::StandardPixmap,const QStyleOption * = 0,const QWidget * = 0) const.
QPalette QStyle.standardPalette (self)
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
This method is abstract and should be reimplemented in any sub-class.
QStyle.unpolish (self, QWidget)