Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
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< QObject > | DestroyedQObject |
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>() |
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().
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().
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().
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().
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().
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.
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().
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().
This enum describes the available style hints. A style hint is a general look and/or feel hint.
See also styleHint().
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.
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().
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 |
|
protected |
QtGui.QStyle.QStyle | ( | ) |
Constructs a style object.
|
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().
|
virtual |
Reimplemented from QtCore.QObject.
new void QtGui.QStyle.Dispose | ( | ) |
|
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.
|
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 |
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 |
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.
|
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.
|
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.
|
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.
Returns the area within the given rectangle in which to draw the specified pixmap according to the defined alignment.
Reimplemented in QtGui.QProxyStyle.
|
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().
|
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.
|
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 |
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 |
This is an overloaded function.
Late initialization of the given application object.
Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.
|
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.
|
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 |
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 |
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().
|
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 |
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().
|
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.
|
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.
|
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.
|
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 |
|
static |
|
static |
|
static |
|
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 |
This is an overloaded function.
Uninitialize the given application.
Reimplemented in QtGui.QProxyStyle, and QtGui.QCommonStyle.
|
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 |
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 |
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.
|
getprotected |
|
staticget |