43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtCore/qobject.h>
45 #include <QtCore/qrect.h>
46 #include <QtCore/qsize.h>
47 #include <QtGui/qicon.h>
48 #include <QtGui/qpixmap.h>
49 #include <QtGui/qpalette.h>
50 #include <QtWidgets/qsizepolicy.h>
99 virtual QPalette standardPalette()
const;
102 State_None = 0x00000000,
103 State_Enabled = 0x00000001,
104 State_Raised = 0x00000002,
105 State_Sunken = 0x00000004,
106 State_Off = 0x00000008,
107 State_NoChange = 0x00000010,
108 State_On = 0x00000020,
109 State_DownArrow = 0x00000040,
110 State_Horizontal = 0x00000080,
111 State_HasFocus = 0x00000100,
112 State_Top = 0x00000200,
113 State_Bottom = 0x00000400,
114 State_FocusAtBorder = 0x00000800,
115 State_AutoRaise = 0x00001000,
116 State_MouseOver = 0x00002000,
117 State_UpArrow = 0x00004000,
118 State_Selected = 0x00008000,
119 State_Active = 0x00010000,
120 State_Window = 0x00020000,
121 State_Open = 0x00040000,
122 State_Children = 0x00080000,
123 State_Item = 0x00100000,
124 State_Sibling = 0x00200000,
125 State_Editing = 0x00400000,
126 State_KeyboardFocusChange = 0x00800000,
127 #ifdef QT_KEYPAD_NAVIGATION
128 State_HasEditFocus = 0x01000000,
130 State_ReadOnly = 0x02000000,
131 State_Small = 0x04000000,
132 State_Mini = 0x08000000
181 PE_IndicatorTabTearLeft = PE_IndicatorTabTear,
200 PE_CustomBase = 0xf000000
271 CE_CustomBase = 0xf0000000
313 SE_TabBarTearIndicatorLeft = SE_TabBarTearIndicator,
359 SE_CustomBase = 0xf0000000
379 CC_CustomBase = 0xf0000000
384 SC_None = 0x00000000,
386 SC_ScrollBarAddLine = 0x00000001,
387 SC_ScrollBarSubLine = 0x00000002,
388 SC_ScrollBarAddPage = 0x00000004,
389 SC_ScrollBarSubPage = 0x00000008,
390 SC_ScrollBarFirst = 0x00000010,
391 SC_ScrollBarLast = 0x00000020,
392 SC_ScrollBarSlider = 0x00000040,
393 SC_ScrollBarGroove = 0x00000080,
395 SC_SpinBoxUp = 0x00000001,
396 SC_SpinBoxDown = 0x00000002,
397 SC_SpinBoxFrame = 0x00000004,
398 SC_SpinBoxEditField = 0x00000008,
400 SC_ComboBoxFrame = 0x00000001,
401 SC_ComboBoxEditField = 0x00000002,
402 SC_ComboBoxArrow = 0x00000004,
403 SC_ComboBoxListBoxPopup = 0x00000008,
405 SC_SliderGroove = 0x00000001,
406 SC_SliderHandle = 0x00000002,
407 SC_SliderTickmarks = 0x00000004,
409 SC_ToolButton = 0x00000001,
410 SC_ToolButtonMenu = 0x00000002,
412 SC_TitleBarSysMenu = 0x00000001,
413 SC_TitleBarMinButton = 0x00000002,
414 SC_TitleBarMaxButton = 0x00000004,
415 SC_TitleBarCloseButton = 0x00000008,
416 SC_TitleBarNormalButton = 0x00000010,
417 SC_TitleBarShadeButton = 0x00000020,
418 SC_TitleBarUnshadeButton = 0x00000040,
419 SC_TitleBarContextHelpButton = 0x00000080,
420 SC_TitleBarLabel = 0x00000100,
422 SC_DialGroove = 0x00000001,
423 SC_DialHandle = 0x00000002,
424 SC_DialTickmarks = 0x00000004,
426 SC_GroupBoxCheckBox = 0x00000001,
427 SC_GroupBoxLabel = 0x00000002,
428 SC_GroupBoxContents = 0x00000004,
429 SC_GroupBoxFrame = 0x00000008,
431 SC_MdiMinButton = 0x00000001,
432 SC_MdiNormalButton = 0x00000002,
433 SC_MdiCloseButton = 0x00000004,
435 SC_CustomBase = 0xf0000000,
573 PM_CustomBase = 0xf0000000
605 CT_CustomBase = 0xf0000000
616 Q_ENUM(RequestSoftwareInputPanel)
743 SH_CustomBase = 0xf0000000
831 SP_CustomBase = 0xf0000000
848 static
int sliderPositionFromValue(
int min,
int max,
int val,
int space,
849 bool upsideDown =
false);
850 static
int sliderValueFromPosition(
int min,
int max,
int pos,
int space,
851 bool upsideDown =
false);
859 int combinedLayoutSpacing(
QSizePolicy::ControlTypes controls1,
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QApplication class manages the GUI application's control flow and main settings.
The QDebug class provides an output stream for debugging information.
The QFontMetrics class provides font metrics information.
The QIcon class provides scalable icons in different modes and states.
The QObject class is the base class of all Qt objects.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPalette class contains color groups for each widget state.
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QPoint class defines a point in the plane using integer precision.
The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
The QString class provides a Unicode character string.
The QStyleFactory class creates QStyle objects.
the exposed rectangle, in item coordinates
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
@ SH_TitleBar_ShowToolTipsOnButtons
@ SH_ComboBox_ListMouseTracking
@ SH_GroupBox_TextLabelColor
@ SH_TabBar_CloseButtonPosition
@ SH_Slider_PageSetButtons
@ SH_ScrollView_FrameOnlyAroundContents
@ SH_Splitter_OpaqueResize
@ SH_MainWindow_SpaceBelowMenuBar
@ SH_ProgressDialog_CenterCancelButton
@ SH_SpinBox_AnimateButton
@ SH_Menu_SubMenuUniDirectionFailCount
@ SH_TextControl_FocusIndicatorTextCharFormat
@ SH_MessageBox_UseBorderForButtonSpacing
@ SH_SpinBox_ClickAutoRepeatRate
@ SH_ItemView_PaintAlternatingRowColorsForEmptyArea
@ SH_ComboBox_UseNativePopup
@ SH_ItemView_ChangeHighlightOnFocus
@ SH_SpinBox_KeyPressAutoRepeatRate
@ SH_ItemView_MovementWithoutUpdatingSelection
@ SH_MenuBar_AltKeyNavigation
@ SH_Menu_SubMenuUniDirection
@ SH_ScrollBar_RollBetweenButtons
@ SH_TabBar_AllowWheelScrolling
@ SH_SpinControls_DisableOnBounds
@ SH_ScrollBar_MiddleClickAbsolutePosition
@ SH_Menu_FlashTriggeredItem
@ SH_Menu_SubMenuPopupDelay
@ SH_ItemView_ArrowKeysNavigateIntoChildren
@ SH_Slider_AbsoluteSetButtons
@ SH_Widget_Animation_Duration
@ SH_Menu_SubMenuResetWhenReenteringParent
@ SH_ComboBox_PopupFrameStyle
@ SH_Slider_SloppyKeyEvents
@ SH_TabWidget_DefaultTabPosition
@ SH_TabBar_ChangeCurrentDelay
@ SH_Header_ArrowAlignment
@ SH_ToolBox_SelectedPageTitleBold
@ SH_LineEdit_PasswordMaskDelay
@ SH_SpinBox_SelectOnStep
@ SH_TabBar_PreferNoArrows
@ SH_Menu_SupportsSections
@ SH_Menu_SubMenuSloppySelectOtherActions
@ SH_FormLayoutWrapPolicy
@ SH_Widget_ShareActivation
@ SH_ComboBox_LayoutDirection
@ SH_DialogButtons_DefaultButton
@ SH_ComboBox_AllowWheelScrolling
@ SH_ToolButton_PopupDelay
@ SH_Menu_AllowActiveAndDisabled
@ SH_SpinBox_StepModifier
@ SH_TabBar_SelectMouseType
@ SH_Menu_FillScreenWithScroll
@ SH_Table_AlwaysDrawLeftTopGridLines
@ SH_FontDialog_SelectAssociatedText
@ SH_ToolTipLabel_Opacity
@ SH_ScrollBar_LeftClickAbsolutePosition
@ SH_DialogButtonBox_ButtonsHaveIcons
@ SH_MenuBar_MouseTracking
@ SH_FormLayoutFieldGrowthPolicy
@ SH_SpinBox_ClickAutoRepeatThreshold
@ SH_ScrollBar_ContextMenu
@ SH_FormLayoutFormAlignment
@ SH_Menu_SubMenuDontStartSloppyOnLeave
@ SH_MessageBox_CenterButtons
@ SH_TitleBar_ModifyNotification
@ SH_Slider_StopMouseOverSlider
@ SH_DrawMenuBarSeparator
@ SH_RequestSoftwareInputPanel
@ SH_LineEdit_PasswordCharacter
@ SH_SpinBox_ButtonsInsideFrame
@ SH_ItemView_DrawDelegateFrame
@ SH_GroupBox_TextLabelVerticalAlignment
@ SH_ScrollBar_ScrollWhenPointerLeavesControl
@ SH_ToolTip_FallAsleepDelay
@ SH_PrintDialog_RightAlignButtons
@ SH_BlinkCursorWhenTextSelected
@ SH_ListViewExpand_SelectMouseType
@ SH_ItemView_EllipsisLocation
@ SH_ItemView_ActivateItemOnSingleClick
@ SH_MessageBox_TextInteractionFlags
@ SH_RichText_FullWidthSelection
@ SH_FormLayoutLabelAlignment
@ SH_ItemView_ShowDecorationSelected
@ SH_DockWidget_ButtonsHaveFrame
@ SH_Menu_SpaceActivatesItem
@ SH_FocusFrame_AboveWidget
@ SH_ProgressDialog_TextLabelAlignment
@ SH_Menu_SubMenuSloppyCloseTimeout
@ SH_Workspace_FillSpaceOnMaximize
@ SP_DockWidgetCloseButton
@ SP_RestoreDefaultsButton
@ SP_TitleBarContextHelpButton
@ SP_TitleBarNormalButton
@ SP_FileDialogDetailedView
@ SP_MessageBoxInformation
@ SP_FileDialogContentsView
@ SP_TitleBarUnshadeButton
@ SP_ToolBarVerticalExtensionButton
@ SP_ToolBarHorizontalExtensionButton
@ SP_DialogYesToAllButton
@ PM_TabBar_ScrollButtonOverlap
@ PM_TitleBarButtonIconSize
@ PM_DockWidgetFrameWidth
@ PM_DockWidgetTitleMargin
@ PM_ExclusiveIndicatorHeight
@ PM_ButtonShiftHorizontal
@ PM_MdiSubWindowFrameWidth
@ PM_DockWidgetTitleBarButtonMargin
@ PM_ToolBarSeparatorExtent
@ PM_HeaderDefaultSectionSizeHorizontal
@ PM_ScrollView_ScrollBarOverlap
@ PM_DockWidgetSeparatorExtent
@ PM_TabCloseIndicatorWidth
@ PM_CheckBoxLabelSpacing
@ PM_LayoutVerticalSpacing
@ PM_TabBarTabShiftVertical
@ PM_LayoutHorizontalSpacing
@ PM_SliderTickmarkOffset
@ PM_ButtonDefaultIndicator
@ PM_SliderControlThickness
@ PM_SliderSpaceAvailable
@ PM_MenuDesktopFrameWidth
@ PM_ProgressBarChunkWidth
@ PM_DialogButtonsSeparator
@ PM_TabBarScrollButtonWidth
@ PM_DockWidgetHandleExtent
@ PM_ToolBarExtensionExtent
@ PM_TabCloseIndicatorHeight
@ PM_HeaderDefaultSectionSizeVertical
@ PM_DialogButtonsButtonHeight
@ PM_DialogButtonsButtonWidth
@ PM_RadioButtonLabelSpacing
@ PM_TabBarTabShiftHorizontal
@ PM_ScrollView_ScrollBarSpacing
@ PM_MdiSubWindowMinimizedWidth
@ PM_ExclusiveIndicatorWidth
@ PM_ToolTipLabelFrameWidth
RequestSoftwareInputPanel
@ RSIP_OnMouseClickAndAlreadyFocused
@ PE_IndicatorToolBarHandle
@ PE_IndicatorHeaderArrow
@ PE_PanelScrollAreaCorner
@ PE_IndicatorButtonDropDown
@ PE_IndicatorDockWidgetResizeHandle
@ PE_IndicatorProgressChunk
@ PE_IndicatorColumnViewArrow
@ PE_IndicatorItemViewItemDrop
@ PE_IndicatorRadioButton
@ PE_IndicatorToolBarSeparator
@ PE_IndicatorTabTearRight
@ PE_IndicatorMenuCheckMark
@ PE_IndicatorItemViewItemCheck
@ SE_RadioButtonLayoutItem
@ SE_TreeViewDisclosureItem
@ SE_TabBarTabRightButton
@ SE_ToolButtonLayoutItem
@ SE_TabBarTearIndicatorRight
@ SE_ItemViewItemDecoration
@ SE_ItemViewItemFocusRect
@ SE_TabWidgetRightCorner
@ SE_ItemViewItemCheckIndicator
@ SE_RadioButtonFocusRect
@ SE_ProgressBarLayoutItem
@ SE_DockWidgetTitleBarText
@ SE_DateTimeEditLayoutItem
@ SE_TabBarScrollRightButton
@ SE_TabBarScrollLeftButton
@ SE_DockWidgetFloatButton
@ SE_RadioButtonIndicator
@ SE_PushButtonLayoutItem
@ SE_RadioButtonClickRect
@ SE_DockWidgetCloseButton
@ SE_TabWidgetTabContents
The QStyleOption class stores the parameters used by QStyle functions.
employee setName("Richard Schmit")
void drawControl(ControlElement element, QPainter *painter, const QWidget *widget, const QRect &rect, const QColorGroup &colorGroup, SFlags how=Style_Default, const QStyleOption &option=QStyleOption::Default) const
[1]
drawPrimitive(PE_IndicatorCheckBox, &subopt, p, widget)
auto it unsigned count const
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
#define Q_DISABLE_COPY(Class)
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
serverSocket setProxy(QNetworkProxy::NoProxy)
[0]