Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QProxyStyle Class Reference

The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements. More...

Inheritance diagram for QtGui.QProxyStyle:
Collaboration diagram for QtGui.QProxyStyle:

Public Member Functions

 QProxyStyle (QStyle baseStyle=null)
 
 
override void CreateProxy ()
 
override void DrawComplexControl (QStyle.ComplexControl control, QStyleOptionComplex option, QPainter painter, QWidget widget=null)
 
 
override void DrawControl (QStyle.ControlElement element, QStyleOption option, QPainter painter, QWidget widget=null)
 
 
override void DrawItemPixmap (QPainter painter, QRect rect, int alignment, QPixmap pixmap)
 
 
override void DrawItemText (QPainter painter, QRect rect, int flags, QPalette pal, bool enabled, string text, QPalette.ColorRole textRole=QPalette.ColorRole.NoRole)
 
 
override void DrawPrimitive (QStyle.PrimitiveElement element, QStyleOption option, QPainter painter, QWidget widget=null)
 
 
override bool OnEvent (QEvent e)
 
 
override QPixmap GeneratedIconPixmap (QIcon.Mode iconMode, QPixmap pixmap, QStyleOption opt)
 
 
override QStyle.SubControl HitTestComplexControl (QStyle.ComplexControl control, QStyleOptionComplex option, QPoint pos, QWidget widget=null)
 
 
override QRect ItemPixmapRect (QRect r, int flags, QPixmap pixmap)
 
 
override QRect ItemTextRect (QFontMetrics fm, QRect r, int flags, bool enabled, string text)
 
 
new int pixelMetric (QStyle.PixelMetric metric)
 
 
new int pixelMetric (QStyle.PixelMetric metric, QStyleOption option=null)
 
 
override int pixelMetric (QStyle.PixelMetric metric, QStyleOption option=null, QWidget widget=null)
 
 
override void Polish (QWidget widget)
 
 
override void Polish (QPalette pal)
 
 
override void Polish (QApplication app)
 
 
override QSize SizeFromContents (QStyle.ContentsType type, QStyleOption option, QSize size, QWidget widget)
 
 
override QPalette StandardPalette ()
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap, QStyleOption opt)
 
 
override QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap, QStyleOption opt, QWidget widget=null)
 
 
new int styleHint (QStyle.StyleHint hint)
 
 
new int styleHint (QStyle.StyleHint hint, QStyleOption option=null)
 
 
new int styleHint (QStyle.StyleHint hint, QStyleOption option=null, QWidget widget=null)
 
 
override int styleHint (QStyle.StyleHint hint, QStyleOption option=null, QWidget widget=null, QStyleHintReturn returnData=null)
 
 
override QRect SubControlRect (QStyle.ComplexControl cc, QStyleOptionComplex opt, QStyle.SubControl sc, QWidget widget)
 
 
override QRect SubElementRect (QStyle.SubElement element, QStyleOption option, QWidget widget)
 
 
override void Unpolish (QWidget widget)
 
 
override void Unpolish (QApplication app)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QCommonStyle
 QCommonStyle ()
 
 
new int pixelMetric (QStyle.PixelMetric m)
 
 
new int pixelMetric (QStyle.PixelMetric m, QStyleOption opt=null)
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap sp)
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap sp, QStyleOption opt=null)
 
 
new int styleHint (QStyle.StyleHint sh)
 
 
new int styleHint (QStyle.StyleHint sh, QStyleOption opt=null)
 
 
new int styleHint (QStyle.StyleHint sh, QStyleOption opt=null, QWidget w=null)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QStyle
 QStyle ()
 
 
override void CreateProxy ()
 
new int CombinedLayoutSpacing (QSizePolicy.ControlType controls1, QSizePolicy.ControlType controls2, Qt.Orientation orientation, QStyleOption option=null, QWidget widget=null)
 
 
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)
 
 
new QStyle Proxy ()
 
 
new QIcon StandardIcon (QStyle.StandardPixmap standardIcon, QStyleOption option=null, QWidget widget=null)
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap)
 
 
new QPixmap standardPixmap (QStyle.StandardPixmap standardPixmap, QStyleOption opt=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)
 
 
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 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 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 QtGui.QCommonStyle
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 QtGui.QStyle
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

 QProxyStyle (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 option, QWidget widget)
 
 
- Protected Member Functions inherited from QtGui.QCommonStyle
 QCommonStyle (System.Type dummy)
 
new QIcon StandardIconImplementation (QStyle.StandardPixmap standardIcon, QStyleOption opt=null, QWidget widget=null)
 
- Protected Member Functions inherited from QtGui.QStyle
 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

new QStyle BaseStyle [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQProxyStyleSignals Emit [get]
 
- Properties inherited from QtGui.QCommonStyle
static new QMetaObject StaticMetaObject [get]
 
new IQCommonStyleSignals Emit [get]
 
- Properties inherited from QtGui.QStyle
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

- Public Types inherited from QtGui.QStyle
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...
 
- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements.

A QProxyStyle wraps a QStyle (usually the default system style) for the purpose of dynamically overriding painting or other specific style behavior.

The following example shows how to override the shortcut underline behavior on any platform:

#include "textedit.h"

#include <QApplication>

#include <QProxyStyle>

class MyProxyStyle : public QProxyStyle

{

public:

int styleHint(StyleHint hint, const QStyleOption *option = 0,

const QWidget *widget = 0, QStyleHintReturn *returnData = 0) const

{

if (hint == QStyle::SH_UnderlineShortcut)

return 0;

return QProxyStyle::styleHint(hint, option, widget, returnData);

}

};

int main(int argc, char **argv)

{

Q_INIT_RESOURCE(textedit);

QApplication a(argc, argv);

a.setStyle(new MyProxyStyle);

TextEdit mw;

mw.resize(700, 800);

mw.show();

//...

}

Warning: The common styles provided by Qt will respect this hint, because they call QStyle::proxy(), but there is no guarantee that QStyle::proxy() will be called for user defined or system controlled styles. It would not work on a Mac, for example, where menus are handled by the operating system.

See also QStyle.

Constructor & Destructor Documentation

QtGui.QProxyStyle.QProxyStyle ( System.Type  dummy)
protected
QtGui.QProxyStyle.QProxyStyle ( QStyle  baseStyle = null)

Constructs a QProxyStyle object for overriding behavior in style or in the current application style if style is 0 (default). Normally style is 0, because you want to override behavior in the system style.

Ownership of style is transferred to QProxyStyle.

Member Function Documentation

override void QtGui.QProxyStyle.CreateProxy ( )
virtual

Reimplemented from QtGui.QCommonStyle.

new void QtGui.QProxyStyle.Dispose ( )
override void QtGui.QProxyStyle.DrawComplexControl ( QStyle.ComplexControl  control,
QStyleOptionComplex  option,
QPainter  painter,
QWidget  widget = null 
)
virtual

Reimplemented from QStyle::drawComplexControl().

Reimplemented from QtGui.QCommonStyle.

override void QtGui.QProxyStyle.DrawControl ( QStyle.ControlElement  element,
QStyleOption  option,
QPainter  painter,
QWidget  widget = null 
)
virtual

Reimplemented from QStyle::drawControl().

Reimplemented from QtGui.QCommonStyle.

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

Reimplemented from QStyle::drawItemPixmap().

Reimplemented from QtGui.QStyle.

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

Reimplemented from QStyle::drawItemText().

Reimplemented from QtGui.QStyle.

override void QtGui.QProxyStyle.DrawPrimitive ( QStyle.PrimitiveElement  element,
QStyleOption  option,
QPainter  painter,
QWidget  widget = null 
)
virtual

Reimplemented from QStyle::drawPrimitive().

Reimplemented from QtGui.QCommonStyle.

override QPixmap QtGui.QProxyStyle.GeneratedIconPixmap ( QIcon.Mode  iconMode,
QPixmap  pixmap,
QStyleOption  opt 
)
virtual

Reimplemented from QStyle::generatedIconPixmap().

Reimplemented from QtGui.QCommonStyle.

override QStyle.SubControl QtGui.QProxyStyle.HitTestComplexControl ( QStyle.ComplexControl  control,
QStyleOptionComplex  option,
QPoint  pos,
QWidget  widget = null 
)
virtual

Reimplemented from QStyle::hitTestComplexControl().

Reimplemented from QtGui.QCommonStyle.

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

Reimplemented from QStyle::itemPixmapRect().

Reimplemented from QtGui.QStyle.

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

Reimplemented from QStyle::itemTextRect().

Reimplemented from QtGui.QStyle.

new int QtGui.QProxyStyle.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.

The default implementation returns -1.

See also layoutSpacing() and combinedLayoutSpacing().

override bool QtGui.QProxyStyle.OnEvent ( QEvent  e)
virtual

Reimplemented from QObject::event().

Reimplemented from QtCore.QObject.

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

Reimplemented from QStyle::pixelMetric().

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

Reimplemented from QStyle::pixelMetric().

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

Reimplemented from QStyle::pixelMetric().

Reimplemented from QtGui.QCommonStyle.

override void QtGui.QProxyStyle.Polish ( QWidget  widget)
virtual

Reimplemented from QStyle::polish().

Reimplemented from QtGui.QCommonStyle.

override void QtGui.QProxyStyle.Polish ( QPalette  pal)
virtual

Reimplemented from QStyle::polish().

Reimplemented from QtGui.QCommonStyle.

override void QtGui.QProxyStyle.Polish ( QApplication  app)
virtual

Reimplemented from QStyle::polish().

Reimplemented from QtGui.QCommonStyle.

override QSize QtGui.QProxyStyle.SizeFromContents ( QStyle.ContentsType  type,
QStyleOption  option,
QSize  size,
QWidget  widget 
)
virtual

Reimplemented from QStyle::sizeFromContents().

Reimplemented from QtGui.QCommonStyle.

new QIcon QtGui.QProxyStyle.StandardIconImplementation ( QStyle.StandardPixmap  standardIcon,
QStyleOption  option,
QWidget  widget 
)
protected

Returns an icon for the given standardIcon.

Reimplement this slot to provide your own icons in a QStyle subclass. The option argument can be used to pass extra information required to find the appropriate icon. The widget argument is optional and can also be used to help find the icon.

Note: Because of binary compatibility constraints, standardIcon() introduced in Qt 4.1 is not virtual. Therefore it must dynamically detect and call this slot. This default implementation simply calls standardIcon() with the given parameters.

See also standardIcon().

override QPalette QtGui.QProxyStyle.StandardPalette ( )
virtual

Reimplemented from QStyle::standardPalette().

Reimplemented from QtGui.QStyle.

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

Reimplemented from QStyle::standardPixmap().

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

Reimplemented from QStyle::standardPixmap().

Reimplemented from QtGui.QCommonStyle.

new int QtGui.QProxyStyle.styleHint ( QStyle.StyleHint  hint)

Reimplemented from QStyle::styleHint().

new int QtGui.QProxyStyle.styleHint ( QStyle.StyleHint  hint,
QStyleOption  option = null 
)

Reimplemented from QStyle::styleHint().

new int QtGui.QProxyStyle.styleHint ( QStyle.StyleHint  hint,
QStyleOption  option = null,
QWidget  widget = null 
)

Reimplemented from QStyle::styleHint().

override int QtGui.QProxyStyle.styleHint ( QStyle.StyleHint  hint,
QStyleOption  option = null,
QWidget  widget = null,
QStyleHintReturn  returnData = null 
)
virtual

Reimplemented from QStyle::styleHint().

Reimplemented from QtGui.QCommonStyle.

override QRect QtGui.QProxyStyle.SubControlRect ( QStyle.ComplexControl  cc,
QStyleOptionComplex  opt,
QStyle.SubControl  sc,
QWidget  widget 
)
virtual

Reimplemented from QStyle::subControlRect().

Reimplemented from QtGui.QCommonStyle.

override QRect QtGui.QProxyStyle.SubElementRect ( QStyle.SubElement  element,
QStyleOption  option,
QWidget  widget 
)
virtual

Reimplemented from QStyle::subElementRect().

Reimplemented from QtGui.QCommonStyle.

static string QtGui.QProxyStyle.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QProxyStyle.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QProxyStyle.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QProxyStyle.TrUtf8 ( string  s,
string  c,
int  n 
)
static
override void QtGui.QProxyStyle.Unpolish ( QWidget  widget)
virtual

Reimplemented from QStyle::unpolish().

Reimplemented from QtGui.QCommonStyle.

override void QtGui.QProxyStyle.Unpolish ( QApplication  app)
virtual

Reimplemented from QStyle::unpolish().

Reimplemented from QtGui.QCommonStyle.

Property Documentation

new QStyle QtGui.QProxyStyle.BaseStyle
getset

Returns the proxy base style object. If no base style is set on the proxy style, QProxyStyle will create an instance of the application style instead.

Sets the base style that should be proxied.

Ownership of style is transferred to QProxyStyle.

If style is zero, a desktop-dependant style will be assigned automatically.

new IQProxyStyleSignals QtGui.QProxyStyle.Emit
getprotected
new QMetaObject QtGui.QProxyStyle.StaticMetaObject
staticget