Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCommonStyle Class Reference

The QCommonStyle class encapsulates the common Look and Feel of a GUI. More...

#include <qcommonstyle.h>

+ Inheritance diagram for QCommonStyle:
+ Collaboration diagram for QCommonStyle:

Public Member Functions

 QCommonStyle ()
 Constructs a QCommonStyle.
 
 ~QCommonStyle ()
 Destroys the style.
 
void drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const override
 \reimp
 
void drawControl (ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const override
 \reimp
 
QRect subElementRect (SubElement r, const QStyleOption *opt, const QWidget *widget=nullptr) const override
 \reimp
 
void drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=nullptr) const override
 \reimp
 
SubControl hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *w=nullptr) const override
 \reimp
 
QRect subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *w=nullptr) const override
 \reimp
 
QSize sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=nullptr) const override
 \reimp
 
int pixelMetric (PixelMetric m, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override
 \reimp
 
int styleHint (StyleHint sh, const QStyleOption *opt=nullptr, const QWidget *w=nullptr, QStyleHintReturn *shret=nullptr) const override
 \reimp
 
QIcon standardIcon (StandardPixmap standardIcon, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override
 
QPixmap standardPixmap (StandardPixmap sp, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override
 \reimp
 
QPixmap generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override
 \reimp
 
int layoutSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override
 \reimp
 
void polish (QPalette &) override
 \reimp
 
void polish (QApplication *app) override
 \reimp
 
void polish (QWidget *widget) override
 \reimp
 
void unpolish (QWidget *widget) override
 \reimp
 
void unpolish (QApplication *application) override
 \reimp
 
- Public Member Functions inherited from QStyle
 QStyle ()
 Constructs a style object.
 
virtual ~QStyle ()
 Destroys the style object.
 
QString name () const
 Returns the name of the style.
 
virtual QRect itemTextRect (const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const
 Returns the area within the given rectangle in which to draw the provided text according to the specified font metrics and alignment.
 
virtual QRect itemPixmapRect (const QRect &r, int flags, const QPixmap &pixmap) const
 Returns the area within the given rectangle in which to draw the specified pixmap according to the defined alignment.
 
virtual void drawItemText (QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const
 Draws the given text in the specified rectangle using the provided painter and palette.
 
virtual void drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const
 Draws the given pixmap in the specified rectangle, according to the specified alignment, using the provided painter.
 
virtual QPalette standardPalette () const
 Returns the style's standard palette.
 
int combinedLayoutSpacing (QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption *option=nullptr, QWidget *widget=nullptr) const
 
const QStyleproxy () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Protected Member Functions

 QCommonStyle (QCommonStylePrivate &dd)
 
- Protected Member Functions inherited from QStyle
 QStyle (QStylePrivate &dd)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Additional Inherited Members

- Public Types inherited from QStyle
enum  StateFlag {
  State_None = 0x00000000 , State_Enabled = 0x00000001 , State_Raised = 0x00000002 , State_Sunken = 0x00000004 ,
  State_Off = 0x00000008 , State_NoChange = 0x00000010 , State_On = 0x00000020 , State_DownArrow = 0x00000040 ,
  State_Horizontal = 0x00000080 , State_HasFocus = 0x00000100 , State_Top = 0x00000200 , State_Bottom = 0x00000400 ,
  State_FocusAtBorder = 0x00000800 , State_AutoRaise = 0x00001000 , State_MouseOver = 0x00002000 , State_UpArrow = 0x00004000 ,
  State_Selected = 0x00008000 , State_Active = 0x00010000 , State_Window = 0x00020000 , State_Open = 0x00040000 ,
  State_Children = 0x00080000 , State_Item = 0x00100000 , State_Sibling = 0x00200000 , State_Editing = 0x00400000 ,
  State_KeyboardFocusChange = 0x00800000 , State_ReadOnly = 0x02000000 , State_Small = 0x04000000 , State_Mini = 0x08000000
}
 This enum describes flags that are used when drawing primitive elements. More...
 
enum  PrimitiveElement {
  PE_Frame , PE_FrameDefaultButton , PE_FrameDockWidget , PE_FrameFocusRect ,
  PE_FrameGroupBox , PE_FrameLineEdit , PE_FrameMenu , PE_FrameStatusBarItem ,
  PE_FrameTabWidget , PE_FrameWindow , PE_FrameButtonBevel , PE_FrameButtonTool ,
  PE_FrameTabBarBase , PE_PanelButtonCommand , PE_PanelButtonBevel , PE_PanelButtonTool ,
  PE_PanelMenuBar , PE_PanelToolBar , PE_PanelLineEdit , PE_IndicatorArrowDown ,
  PE_IndicatorArrowLeft , PE_IndicatorArrowRight , PE_IndicatorArrowUp , PE_IndicatorBranch ,
  PE_IndicatorButtonDropDown , PE_IndicatorItemViewItemCheck , PE_IndicatorCheckBox , PE_IndicatorDockWidgetResizeHandle ,
  PE_IndicatorHeaderArrow , PE_IndicatorMenuCheckMark , PE_IndicatorProgressChunk , PE_IndicatorRadioButton ,
  PE_IndicatorSpinDown , PE_IndicatorSpinMinus , PE_IndicatorSpinPlus , PE_IndicatorSpinUp ,
  PE_IndicatorToolBarHandle , PE_IndicatorToolBarSeparator , PE_PanelTipLabel , PE_IndicatorTabTear ,
  PE_IndicatorTabTearLeft = PE_IndicatorTabTear , PE_PanelScrollAreaCorner , PE_Widget , PE_IndicatorColumnViewArrow ,
  PE_IndicatorItemViewItemDrop , PE_PanelItemViewItem , PE_PanelItemViewRow , PE_PanelStatusBar ,
  PE_IndicatorTabClose , PE_PanelMenu , PE_IndicatorTabTearRight , PE_CustomBase = 0xf000000
}
 This enum describes the various primitive elements. More...
 
enum  ControlElement {
  CE_PushButton , CE_PushButtonBevel , CE_PushButtonLabel , CE_CheckBox ,
  CE_CheckBoxLabel , CE_RadioButton , CE_RadioButtonLabel , CE_TabBarTab ,
  CE_TabBarTabShape , CE_TabBarTabLabel , CE_ProgressBar , CE_ProgressBarGroove ,
  CE_ProgressBarContents , CE_ProgressBarLabel , CE_MenuItem , CE_MenuScroller ,
  CE_MenuVMargin , CE_MenuHMargin , CE_MenuTearoff , CE_MenuEmptyArea ,
  CE_MenuBarItem , CE_MenuBarEmptyArea , CE_ToolButtonLabel , CE_Header ,
  CE_HeaderSection , CE_HeaderLabel , CE_ToolBoxTab , CE_SizeGrip ,
  CE_Splitter , CE_RubberBand , CE_DockWidgetTitle , CE_ScrollBarAddLine ,
  CE_ScrollBarSubLine , CE_ScrollBarAddPage , CE_ScrollBarSubPage , CE_ScrollBarSlider ,
  CE_ScrollBarFirst , CE_ScrollBarLast , CE_FocusFrame , CE_ComboBoxLabel ,
  CE_ToolBar , CE_ToolBoxTabShape , CE_ToolBoxTabLabel , CE_HeaderEmptyArea ,
  CE_ColumnViewGrip , CE_ItemViewItem , CE_ShapedFrame , CE_CustomBase = 0xf0000000
}
 This enum represents a control element. More...
 
enum  SubElement {
  SE_PushButtonContents , SE_PushButtonFocusRect , SE_CheckBoxIndicator , SE_CheckBoxContents ,
  SE_CheckBoxFocusRect , SE_CheckBoxClickRect , SE_RadioButtonIndicator , SE_RadioButtonContents ,
  SE_RadioButtonFocusRect , SE_RadioButtonClickRect , SE_ComboBoxFocusRect , SE_SliderFocusRect ,
  SE_ProgressBarGroove , SE_ProgressBarContents , SE_ProgressBarLabel , SE_ToolBoxTabContents ,
  SE_HeaderLabel , SE_HeaderArrow , SE_TabWidgetTabBar , SE_TabWidgetTabPane ,
  SE_TabWidgetTabContents , SE_TabWidgetLeftCorner , SE_TabWidgetRightCorner , SE_ItemViewItemCheckIndicator ,
  SE_TabBarTearIndicator , SE_TabBarTearIndicatorLeft = SE_TabBarTearIndicator , SE_TreeViewDisclosureItem , SE_LineEditContents ,
  SE_FrameContents , SE_DockWidgetCloseButton , SE_DockWidgetFloatButton , SE_DockWidgetTitleBarText ,
  SE_DockWidgetIcon , SE_CheckBoxLayoutItem , SE_ComboBoxLayoutItem , SE_DateTimeEditLayoutItem ,
  SE_LabelLayoutItem , SE_ProgressBarLayoutItem , SE_PushButtonLayoutItem , SE_RadioButtonLayoutItem ,
  SE_SliderLayoutItem , SE_SpinBoxLayoutItem , SE_ToolButtonLayoutItem , SE_FrameLayoutItem ,
  SE_GroupBoxLayoutItem , SE_TabWidgetLayoutItem , SE_ItemViewItemDecoration , SE_ItemViewItemText ,
  SE_ItemViewItemFocusRect , SE_TabBarTabLeftButton , SE_TabBarTabRightButton , SE_TabBarTabText ,
  SE_ShapedFrameContents , SE_ToolBarHandle , SE_TabBarScrollLeftButton , SE_TabBarScrollRightButton ,
  SE_TabBarTearIndicatorRight , SE_PushButtonBevel , SE_CustomBase = 0xf0000000
}
 This enum represents a sub-area of a widget. More...
 
enum  ComplexControl {
  CC_SpinBox , CC_ComboBox , CC_ScrollBar , CC_Slider ,
  CC_ToolButton , CC_TitleBar , CC_Dial , CC_GroupBox ,
  CC_MdiControls , CC_CustomBase = 0xf0000000
}
 This enum describes the available complex controls. More...
 
enum  SubControl {
  SC_None = 0x00000000 , SC_ScrollBarAddLine = 0x00000001 , SC_ScrollBarSubLine = 0x00000002 , SC_ScrollBarAddPage = 0x00000004 ,
  SC_ScrollBarSubPage = 0x00000008 , SC_ScrollBarFirst = 0x00000010 , SC_ScrollBarLast = 0x00000020 , SC_ScrollBarSlider = 0x00000040 ,
  SC_ScrollBarGroove = 0x00000080 , SC_SpinBoxUp = 0x00000001 , SC_SpinBoxDown = 0x00000002 , SC_SpinBoxFrame = 0x00000004 ,
  SC_SpinBoxEditField = 0x00000008 , SC_ComboBoxFrame = 0x00000001 , SC_ComboBoxEditField = 0x00000002 , SC_ComboBoxArrow = 0x00000004 ,
  SC_ComboBoxListBoxPopup = 0x00000008 , SC_SliderGroove = 0x00000001 , SC_SliderHandle = 0x00000002 , SC_SliderTickmarks = 0x00000004 ,
  SC_ToolButton = 0x00000001 , SC_ToolButtonMenu = 0x00000002 , SC_TitleBarSysMenu = 0x00000001 , SC_TitleBarMinButton = 0x00000002 ,
  SC_TitleBarMaxButton = 0x00000004 , SC_TitleBarCloseButton = 0x00000008 , SC_TitleBarNormalButton = 0x00000010 , SC_TitleBarShadeButton = 0x00000020 ,
  SC_TitleBarUnshadeButton = 0x00000040 , SC_TitleBarContextHelpButton = 0x00000080 , SC_TitleBarLabel = 0x00000100 , SC_DialGroove = 0x00000001 ,
  SC_DialHandle = 0x00000002 , SC_DialTickmarks = 0x00000004 , SC_GroupBoxCheckBox = 0x00000001 , SC_GroupBoxLabel = 0x00000002 ,
  SC_GroupBoxContents = 0x00000004 , SC_GroupBoxFrame = 0x00000008 , SC_MdiMinButton = 0x00000001 , SC_MdiNormalButton = 0x00000002 ,
  SC_MdiCloseButton = 0x00000004 , SC_CustomBase = 0xf0000000 , SC_All = 0xffffffff
}
 This enum describes the available sub controls. More...
 
enum  PixelMetric {
  PM_ButtonMargin , PM_ButtonDefaultIndicator , PM_MenuButtonIndicator , PM_ButtonShiftHorizontal ,
  PM_ButtonShiftVertical , PM_DefaultFrameWidth , PM_SpinBoxFrameWidth , PM_ComboBoxFrameWidth ,
  PM_MaximumDragDistance , PM_ScrollBarExtent , PM_ScrollBarSliderMin , PM_SliderThickness ,
  PM_SliderControlThickness , PM_SliderLength , PM_SliderTickmarkOffset , PM_SliderSpaceAvailable ,
  PM_DockWidgetSeparatorExtent , PM_DockWidgetHandleExtent , PM_DockWidgetFrameWidth , PM_TabBarTabOverlap ,
  PM_TabBarTabHSpace , PM_TabBarTabVSpace , PM_TabBarBaseHeight , PM_TabBarBaseOverlap ,
  PM_ProgressBarChunkWidth , PM_SplitterWidth , PM_TitleBarHeight , PM_MenuScrollerHeight ,
  PM_MenuHMargin , PM_MenuVMargin , PM_MenuPanelWidth , PM_MenuTearoffHeight ,
  PM_MenuDesktopFrameWidth , PM_MenuBarPanelWidth , PM_MenuBarItemSpacing , PM_MenuBarVMargin ,
  PM_MenuBarHMargin , PM_IndicatorWidth , PM_IndicatorHeight , PM_ExclusiveIndicatorWidth ,
  PM_ExclusiveIndicatorHeight , PM_MdiSubWindowFrameWidth = 44 , PM_MdiSubWindowMinimizedWidth , PM_HeaderMargin ,
  PM_HeaderMarkSize , PM_HeaderGripMargin , PM_TabBarTabShiftHorizontal , PM_TabBarTabShiftVertical ,
  PM_TabBarScrollButtonWidth , PM_ToolBarFrameWidth , PM_ToolBarHandleExtent , PM_ToolBarItemSpacing ,
  PM_ToolBarItemMargin , PM_ToolBarSeparatorExtent , PM_ToolBarExtensionExtent , PM_SpinBoxSliderHeight ,
  PM_ToolBarIconSize , PM_ListViewIconSize , PM_IconViewIconSize , PM_SmallIconSize ,
  PM_LargeIconSize , PM_FocusFrameVMargin , PM_FocusFrameHMargin , PM_ToolTipLabelFrameWidth ,
  PM_CheckBoxLabelSpacing , PM_TabBarIconSize , PM_SizeGripSize , PM_DockWidgetTitleMargin ,
  PM_MessageBoxIconSize , PM_ButtonIconSize , PM_DockWidgetTitleBarButtonMargin , PM_RadioButtonLabelSpacing ,
  PM_LayoutLeftMargin , PM_LayoutTopMargin , PM_LayoutRightMargin , PM_LayoutBottomMargin ,
  PM_LayoutHorizontalSpacing , PM_LayoutVerticalSpacing , PM_TabBar_ScrollButtonOverlap , PM_TextCursorWidth ,
  PM_TabCloseIndicatorWidth , PM_TabCloseIndicatorHeight , PM_ScrollView_ScrollBarSpacing , PM_ScrollView_ScrollBarOverlap ,
  PM_SubMenuOverlap , PM_TreeViewIndentation , PM_HeaderDefaultSectionSizeHorizontal , PM_HeaderDefaultSectionSizeVertical ,
  PM_TitleBarButtonIconSize , PM_TitleBarButtonSize , PM_LineEditIconSize , PM_LineEditIconMargin ,
  PM_CustomBase = 0xf0000000
}
 This enum describes the various available pixel metrics. More...
 
enum  ContentsType {
  CT_PushButton , CT_CheckBox , CT_RadioButton , CT_ToolButton ,
  CT_ComboBox , CT_Splitter , CT_ProgressBar , CT_MenuItem ,
  CT_MenuBarItem , CT_MenuBar , CT_Menu , CT_TabBarTab ,
  CT_Slider , CT_ScrollBar , CT_LineEdit , CT_SpinBox ,
  CT_SizeGrip , CT_TabWidget , CT_DialogButtons , CT_HeaderSection ,
  CT_GroupBox , CT_MdiControls , CT_ItemViewItem , CT_CustomBase = 0xf0000000
}
 This enum describes the available contents types. More...
 
enum  RequestSoftwareInputPanel { RSIP_OnMouseClickAndAlreadyFocused , RSIP_OnMouseClick }
 This enum describes under what circumstances a software input panel will be requested by input capable widgets. More...
 
enum  StyleHint {
  SH_EtchDisabledText , SH_DitherDisabledText , SH_ScrollBar_MiddleClickAbsolutePosition , SH_ScrollBar_ScrollWhenPointerLeavesControl ,
  SH_TabBar_SelectMouseType , SH_TabBar_Alignment , SH_Header_ArrowAlignment , SH_Slider_SnapToValue ,
  SH_Slider_SloppyKeyEvents , SH_ProgressDialog_CenterCancelButton , SH_ProgressDialog_TextLabelAlignment , SH_PrintDialog_RightAlignButtons ,
  SH_MainWindow_SpaceBelowMenuBar , SH_FontDialog_SelectAssociatedText , SH_Menu_AllowActiveAndDisabled , SH_Menu_SpaceActivatesItem ,
  SH_Menu_SubMenuPopupDelay , SH_ScrollView_FrameOnlyAroundContents , SH_MenuBar_AltKeyNavigation , SH_ComboBox_ListMouseTracking ,
  SH_Menu_MouseTracking , SH_MenuBar_MouseTracking , SH_ItemView_ChangeHighlightOnFocus , SH_Widget_ShareActivation ,
  SH_Workspace_FillSpaceOnMaximize , SH_ComboBox_Popup , SH_TitleBar_NoBorder , SH_Slider_StopMouseOverSlider ,
  SH_BlinkCursorWhenTextSelected , SH_RichText_FullWidthSelection , SH_Menu_Scrollable , SH_GroupBox_TextLabelVerticalAlignment ,
  SH_GroupBox_TextLabelColor , SH_Menu_SloppySubMenus , SH_Table_GridLineColor , SH_LineEdit_PasswordCharacter ,
  SH_DialogButtons_DefaultButton , SH_ToolBox_SelectedPageTitleBold , SH_TabBar_PreferNoArrows , SH_ScrollBar_LeftClickAbsolutePosition ,
  SH_ListViewExpand_SelectMouseType , SH_UnderlineShortcut , SH_SpinBox_AnimateButton , SH_SpinBox_KeyPressAutoRepeatRate ,
  SH_SpinBox_ClickAutoRepeatRate , SH_Menu_FillScreenWithScroll , SH_ToolTipLabel_Opacity , SH_DrawMenuBarSeparator ,
  SH_TitleBar_ModifyNotification , SH_Button_FocusPolicy , SH_MessageBox_UseBorderForButtonSpacing , SH_TitleBar_AutoRaise ,
  SH_ToolButton_PopupDelay , SH_FocusFrame_Mask , SH_RubberBand_Mask , SH_WindowFrame_Mask ,
  SH_SpinControls_DisableOnBounds , SH_Dial_BackgroundRole , SH_ComboBox_LayoutDirection , SH_ItemView_EllipsisLocation ,
  SH_ItemView_ShowDecorationSelected , SH_ItemView_ActivateItemOnSingleClick , SH_ScrollBar_ContextMenu , SH_ScrollBar_RollBetweenButtons ,
  SH_Slider_AbsoluteSetButtons , SH_Slider_PageSetButtons , SH_Menu_KeyboardSearch , SH_TabBar_ElideMode ,
  SH_DialogButtonLayout , SH_ComboBox_PopupFrameStyle , SH_MessageBox_TextInteractionFlags , SH_DialogButtonBox_ButtonsHaveIcons ,
  SH_MessageBox_CenterButtons , SH_Menu_SelectionWrap , SH_ItemView_MovementWithoutUpdatingSelection , SH_ToolTip_Mask ,
  SH_FocusFrame_AboveWidget , SH_TextControl_FocusIndicatorTextCharFormat , SH_WizardStyle , SH_ItemView_ArrowKeysNavigateIntoChildren ,
  SH_Menu_Mask , SH_Menu_FlashTriggeredItem , SH_Menu_FadeOutOnHide , SH_SpinBox_ClickAutoRepeatThreshold ,
  SH_ItemView_PaintAlternatingRowColorsForEmptyArea , SH_FormLayoutWrapPolicy , SH_TabWidget_DefaultTabPosition , SH_ToolBar_Movable ,
  SH_FormLayoutFieldGrowthPolicy , SH_FormLayoutFormAlignment , SH_FormLayoutLabelAlignment , SH_ItemView_DrawDelegateFrame ,
  SH_TabBar_CloseButtonPosition , SH_DockWidget_ButtonsHaveFrame , SH_ToolButtonStyle , SH_RequestSoftwareInputPanel ,
  SH_ScrollBar_Transient , SH_Menu_SupportsSections , SH_ToolTip_WakeUpDelay , SH_ToolTip_FallAsleepDelay ,
  SH_Widget_Animate , SH_Splitter_OpaqueResize , SH_ComboBox_UseNativePopup , SH_LineEdit_PasswordMaskDelay ,
  SH_TabBar_ChangeCurrentDelay , SH_Menu_SubMenuUniDirection , SH_Menu_SubMenuUniDirectionFailCount , SH_Menu_SubMenuSloppySelectOtherActions ,
  SH_Menu_SubMenuSloppyCloseTimeout , SH_Menu_SubMenuResetWhenReenteringParent , SH_Menu_SubMenuDontStartSloppyOnLeave , SH_ItemView_ScrollMode ,
  SH_TitleBar_ShowToolTipsOnButtons , SH_Widget_Animation_Duration , SH_ComboBox_AllowWheelScrolling , SH_SpinBox_ButtonsInsideFrame ,
  SH_SpinBox_StepModifier , SH_TabBar_AllowWheelScrolling , SH_Table_AlwaysDrawLeftTopGridLines , SH_SpinBox_SelectOnStep ,
  SH_CustomBase = 0xf0000000
}
 This enum describes the available style hints. More...
 
enum  StandardPixmap {
  SP_TitleBarMenuButton , SP_TitleBarMinButton , SP_TitleBarMaxButton , SP_TitleBarCloseButton ,
  SP_TitleBarNormalButton , SP_TitleBarShadeButton , SP_TitleBarUnshadeButton , SP_TitleBarContextHelpButton ,
  SP_DockWidgetCloseButton , SP_MessageBoxInformation , SP_MessageBoxWarning , SP_MessageBoxCritical ,
  SP_MessageBoxQuestion , SP_DesktopIcon , SP_TrashIcon , SP_ComputerIcon ,
  SP_DriveFDIcon , SP_DriveHDIcon , SP_DriveCDIcon , SP_DriveDVDIcon ,
  SP_DriveNetIcon , SP_DirOpenIcon , SP_DirClosedIcon , SP_DirLinkIcon ,
  SP_DirLinkOpenIcon , SP_FileIcon , SP_FileLinkIcon , SP_ToolBarHorizontalExtensionButton ,
  SP_ToolBarVerticalExtensionButton , SP_FileDialogStart , SP_FileDialogEnd , SP_FileDialogToParent ,
  SP_FileDialogNewFolder , SP_FileDialogDetailedView , SP_FileDialogInfoView , SP_FileDialogContentsView ,
  SP_FileDialogListView , SP_FileDialogBack , SP_DirIcon , SP_DialogOkButton ,
  SP_DialogCancelButton , SP_DialogHelpButton , SP_DialogOpenButton , SP_DialogSaveButton ,
  SP_DialogCloseButton , SP_DialogApplyButton , SP_DialogResetButton , SP_DialogDiscardButton ,
  SP_DialogYesButton , SP_DialogNoButton , SP_ArrowUp , SP_ArrowDown ,
  SP_ArrowLeft , SP_ArrowRight , SP_ArrowBack , SP_ArrowForward ,
  SP_DirHomeIcon , SP_CommandLink , SP_VistaShield , SP_BrowserReload ,
  SP_BrowserStop , SP_MediaPlay , SP_MediaStop , SP_MediaPause ,
  SP_MediaSkipForward , SP_MediaSkipBackward , SP_MediaSeekForward , SP_MediaSeekBackward ,
  SP_MediaVolume , SP_MediaVolumeMuted , SP_LineEditClearButton , SP_DialogYesToAllButton ,
  SP_DialogNoToAllButton , SP_DialogSaveAllButton , SP_DialogAbortButton , SP_DialogRetryButton ,
  SP_DialogIgnoreButton , SP_RestoreDefaultsButton , SP_TabCloseButton , NStandardPixmap ,
  SP_CustomBase = 0xf0000000
}
 This enum describes the available standard pixmaps. More...
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 
- Static Public Member Functions inherited from QStyle
static QRect visualRect (Qt::LayoutDirection direction, const QRect &boundingRect, const QRect &logicalRect)
 Returns the given logicalRectangle converted to screen coordinates based on the specified direction.
 
static QPoint visualPos (Qt::LayoutDirection direction, const QRect &boundingRect, const QPoint &logicalPos)
 Returns the given logicalPosition converted to screen coordinates based on the specified direction.
 
static int sliderPositionFromValue (int min, int max, int val, int space, bool upsideDown=false)
 Converts the given logicalValue to a pixel position.
 
static int sliderValueFromPosition (int min, int max, int pos, int space, bool upsideDown=false)
 Converts the given pixel position to a logical value.
 
static Qt::Alignment visualAlignment (Qt::LayoutDirection direction, Qt::Alignment alignment)
 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.
 
static QRect alignedRect (Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize &size, const QRect &rectangle)
 Returns a new rectangle of the specified size that is aligned to the given rectangle according to the specified alignment and direction.
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

The QCommonStyle class encapsulates the common Look and Feel of a GUI.

\inmodule QtWidgets

This abstract class implements some of the widget's look and feel that is common to all GUI styles provided and shipped as part of Qt.

Since QCommonStyle inherits QStyle, all of its functions are fully documented in the QStyle documentation. \omit , although the extra functions that QCommonStyle provides, e.g. drawComplexControl(), drawControl(), drawPrimitive(), hitTestComplexControl(), subControlRect(), sizeFromContents(), and subElementRect() are documented here. \endomit

See also
QStyle, QProxyStyle

Definition at line 14 of file qcommonstyle.h.

Constructor & Destructor Documentation

◆ QCommonStyle() [1/2]

QCommonStyle::QCommonStyle ( )

Constructs a QCommonStyle.

Definition at line 151 of file qcommonstyle.cpp.

◆ ~QCommonStyle()

QCommonStyle::~QCommonStyle ( )

Destroys the style.

Definition at line 164 of file qcommonstyle.cpp.

◆ QCommonStyle() [2/2]

QCommonStyle::QCommonStyle ( QCommonStylePrivate & dd)
protected

Definition at line 157 of file qcommonstyle.cpp.

Member Function Documentation

◆ drawComplexControl()

void QCommonStyle::drawComplexControl ( ComplexControl cc,
const QStyleOptionComplex * opt,
QPainter * p,
const QWidget * w = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, QPixmapStyle, and QProxyStyle.

Definition at line 3268 of file qcommonstyle.cpp.

References QRect::adjust(), Qt::AlignCenter, Qt::AlignHCenter, Qt::AlignLeft, alignment, Qt::AlignVCenter, QPaintEngine::Antialiasing, QPainter::Antialiasing, QPalette::brush(), button, QPalette::button(), QStyle::CC_Dial, QStyle::CC_GroupBox, QStyle::CC_MdiControls, QStyle::CC_ScrollBar, QStyle::CC_Slider, QStyle::CC_SpinBox, QStyle::CC_TitleBar, QStyle::CC_ToolButton, QStyle::CE_ScrollBarAddLine, QStyle::CE_ScrollBarAddPage, QStyle::CE_ScrollBarFirst, QStyle::CE_ScrollBarLast, QStyle::CE_ScrollBarSlider, QStyle::CE_ScrollBarSubLine, QStyle::CE_ScrollBarSubPage, QStyle::CE_ToolButtonLabel, QBrush::color(), copy(), QPalette::dark(), QPalette::Disabled, QStyle::drawControl(), QStyle::drawItemPixmap(), QStyle::drawItemText(), QStyle::drawPrimitive(), frame, groupBox, QStyleOptionToolButton::HasMenu, Qt::Horizontal, iconSize, QColor::isValid(), Qt::LeftToRight, QPalette::light(), QFrame::lineWidth, QStyleOptionToolButton::MenuButtonPopup, QFrame::midLineWidth, Qt::NoBrush, Qt::NoPen, QPalette::NoRole, opt, p1, p2, QWidget::palette, QStyleOption::palette, QStyle::PE_FrameFocusRect, QStyle::PE_FrameGroupBox, QStyle::PE_IndicatorArrowDown, QStyle::PE_IndicatorButtonDropDown, QStyle::PE_IndicatorCheckBox, QStyle::PE_IndicatorSpinDown, QStyle::PE_IndicatorSpinMinus, QStyle::PE_IndicatorSpinPlus, QStyle::PE_IndicatorSpinUp, QStyle::PE_PanelButtonBevel, QStyle::PE_PanelButtonCommand, QStyle::PE_PanelButtonTool, pixelMetric(), QStyle::pixelMetric(), QAbstractSpinBox::PlusMinus, QStyle::PM_ButtonShiftHorizontal, QStyle::PM_ButtonShiftVertical, QStyle::PM_DefaultFrameWidth, QStyle::PM_MenuButtonIndicator, QStyle::PM_SliderControlThickness, QStyle::PM_SliderLength, QStyle::PM_SliderSpaceAvailable, QStyle::PM_SliderTickmarkOffset, QStyle::PM_SmallIconSize, QStyle::PM_TitleBarButtonIconSize, pos, QStyle::proxy(), qCWarning, qDrawWinPanel(), qMin(), QWidget::rect, QStyleOption::rect, QStyle::SC_DialTickmarks, QStyle::SC_GroupBoxCheckBox, QStyle::SC_GroupBoxFrame, QStyle::SC_GroupBoxLabel, QStyle::SC_MdiCloseButton, QStyle::SC_MdiMinButton, QStyle::SC_MdiNormalButton, QStyle::SC_ScrollBarAddLine, QStyle::SC_ScrollBarAddPage, QStyle::SC_ScrollBarFirst, QStyle::SC_ScrollBarLast, QStyle::SC_ScrollBarSlider, QStyle::SC_ScrollBarSubLine, QStyle::SC_ScrollBarSubPage, QStyle::SC_SliderTickmarks, QStyle::SC_SpinBoxDown, QStyle::SC_SpinBoxFrame, QStyle::SC_SpinBoxUp, QStyle::SC_TitleBarCloseButton, QStyle::SC_TitleBarContextHelpButton, QStyle::SC_TitleBarLabel, QStyle::SC_TitleBarMaxButton, QStyle::SC_TitleBarMinButton, QStyle::SC_TitleBarNormalButton, QStyle::SC_TitleBarShadeButton, QStyle::SC_TitleBarSysMenu, QStyle::SC_TitleBarUnshadeButton, QStyle::SC_ToolButton, QStyle::SC_ToolButtonMenu, QPalette::setBrush(), QPalette::setCurrentColorGroup(), QRect::setRect(), QStyle::SH_Dial_BackgroundRole, QStyle::SH_UnderlineShortcut, QStyle::sliderPositionFromValue(), QStyle::SP_DockWidgetCloseButton, QStyle::SP_TitleBarCloseButton, QStyle::SP_TitleBarContextHelpButton, QStyle::SP_TitleBarMaxButton, QStyle::SP_TitleBarMenuButton, QStyle::SP_TitleBarMinButton, QStyle::SP_TitleBarNormalButton, QStyle::SP_TitleBarShadeButton, QStyle::SP_TitleBarUnshadeButton, QStyle::standardIcon(), QStyleOption::state, QStyle::State_AutoRaise, QStyle::State_Enabled, QStyle::State_HasFocus, QStyle::State_MouseOver, QStyle::State_On, QStyle::State_Raised, QStyle::State_Sunken, QAbstractSpinBox::StepDownEnabled, QAbstractSpinBox::StepUpEnabled, styleHint(), QStyle::subControlRect(), Qt::TextHideMnemonic, textRect, Qt::TextShowMnemonic, Qt::TextSingleLine, QSlider::TicksAbove, QSlider::TicksBelow, Qt::Tool, QRect::united(), QStyle::visualRect(), widget, Qt::WindowContextHelpButtonHint, Qt::WindowMaximizeButtonHint, Qt::WindowMaximized, Qt::WindowMinimizeButtonHint, Qt::WindowMinimized, Qt::WindowShadeButtonHint, Qt::WindowSystemMenuHint, QPalette::WindowText, QPalette::windowText(), and Qt::WindowType_Mask.

Referenced by QQC2_NAMESPACE::QMacStyle::drawComplexControl(), QMacStyle::drawComplexControl(), and QPixmapStyle::drawComplexControl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawControl()

void QCommonStyle::drawControl ( ControlElement element,
const QStyleOption * opt,
QPainter * p,
const QWidget * w = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, QPixmapStyle, and QProxyStyle.

Definition at line 1326 of file qcommonstyle.cpp.

References QStyle::~QStyle(), QIcon::Active, QPalette::Active, QRect::adjusted(), Qt::AlignCenter, aligned(), QStyle::alignedRect(), Qt::AlignHCenter, Qt::AlignLeft, alignment, Qt::AlignRight, Qt::AlignVCenter, QPainter::Antialiasing, QStyleOptionToolButton::Arrow, QStyleOptionButton::AutoDefaultButton, QPalette::Base, QPalette::base(), QRect::bottom(), Qt::BottomLeftCorner, Qt::BottomRightCorner, QFontMetrics::boundingRect(), QFrame::Box, QPalette::brush(), btn, button, QPalette::Button, QPalette::ButtonText, cb, QStyle::CC_ComboBox, QStyle::CE_CheckBox, QStyle::CE_CheckBoxLabel, QStyle::CE_ColumnViewGrip, QStyle::CE_ComboBoxLabel, QStyle::CE_DockWidgetTitle, QStyle::CE_FocusFrame, QStyle::CE_Header, QStyle::CE_HeaderEmptyArea, QStyle::CE_HeaderLabel, QStyle::CE_HeaderSection, QStyle::CE_ItemViewItem, QStyle::CE_MenuBarEmptyArea, QStyle::CE_MenuBarItem, QStyle::CE_MenuScroller, QStyle::CE_MenuTearoff, QStyle::CE_ProgressBar, QStyle::CE_ProgressBarContents, QStyle::CE_ProgressBarGroove, QStyle::CE_ProgressBarLabel, QStyle::CE_PushButton, QStyle::CE_PushButtonBevel, QStyle::CE_PushButtonLabel, QStyle::CE_RadioButton, QStyle::CE_RadioButtonLabel, QStyle::CE_RubberBand, QStyle::CE_ShapedFrame, QStyle::CE_SizeGrip, QStyle::CE_TabBarTab, QStyle::CE_TabBarTabLabel, QStyle::CE_TabBarTabShape, QStyle::CE_ToolBar, QStyle::CE_ToolBoxTab, QStyle::CE_ToolBoxTabLabel, QStyle::CE_ToolBoxTabShape, QStyle::CE_ToolButtonLabel, Qt::Checked, QBrush::color(), QPalette::color(), QStyleOptionButton::CommandLinkButton, d, QPalette::Dark, QPalette::dark(), Qt::DashLine, QStyleOptionButton::DefaultButton, Qt::Dense4Pattern, QPixmap::devicePixelRatio(), QStyleOption::direction, QIcon::Disabled, QPalette::Disabled, QStyle::drawControl(), QStyle::drawItemPixmap(), QStyle::drawItemText(), QStyle::drawPrimitive(), drawPrimitive(), Qt::ElideNone, Qt::ElideRight, QStyleOptionButton::features, QStyleOptionButton::Flat, QWidget::fontMetrics(), QWidget::foregroundRole(), frame, QPixmap::fromImage(), QTransform::fromTranslate(), QRect::getRect(), QStyleOptionButton::HasMenu, header(), QPixmap::height(), QRect::height(), QPalette::Highlight, QPalette::HighlightedText, QFrame::HLine, i, QStyleOptionButton::icon, QAbstractButton::icon, QStyleOptionButton::iconSize, QAbstractButton::iconSize, QPalette::Inactive, QRect::intersected(), QString::isEmpty(), QIcon::isNull(), QPixmap::isNull(), QRect::isValid(), QRect::left(), Qt::LeftToRight, QPalette::light(), QFrame::lineWidth, QPalette::Mid, QFrame::midLineWidth, Qt::NoBrush, QStyleOptionHeader::None, Qt::NoPen, QIcon::Normal, QPalette::Normal, QPalette::NoRole, o, QIcon::Off, QIcon::On, Qt::OpaqueMode, opt, p1, p2, QWidget::palette, QStyleOption::palette, QFrame::Panel, QWidget::parentWidget(), Qt::PartiallyChecked, QStyle::PE_Frame, QStyle::PE_FrameDefaultButton, QStyle::PE_FrameFocusRect, QStyle::PE_IndicatorArrowDown, QStyle::PE_IndicatorArrowUp, QStyle::PE_IndicatorCheckBox, QStyle::PE_IndicatorHeaderArrow, QStyle::PE_IndicatorItemViewItemCheck, QStyle::PE_IndicatorProgressChunk, QStyle::PE_IndicatorRadioButton, QStyle::PE_PanelButtonCommand, QStyle::PE_PanelItemViewItem, QStyle::PE_PanelToolBar, pix, pixelMetric(), QStyle::pixelMetric(), QIcon::pixmap(), pixmap, QFrame::Plain, QStyle::PM_ButtonDefaultIndicator, QStyle::PM_ButtonShiftHorizontal, QStyle::PM_ButtonShiftVertical, QStyle::PM_DefaultFrameWidth, QStyle::PM_HeaderMargin, QStyle::PM_MenuButtonIndicator, QStyle::PM_ProgressBarChunkWidth, QStyle::PM_SmallIconSize, QStyle::PM_TabBarTabOverlap, QStyle::proxy(), Q_UNUSED, qDrawPlainRect(), qDrawShadeLine(), qDrawShadePanel(), qDrawShadeRect(), qDrawWinPanel(), qMin(), QFrame::Raised, rect, QWidget::rect, QStyleOption::rect, QRubberBand::Rectangle, QFont::resolveMask(), QRect::right(), Qt::RightToLeft, QTabBar::RoundedEast, QTabBar::RoundedWest, QStyle::SC_ComboBoxEditField, QStyle::SE_CheckBoxContents, QStyle::SE_CheckBoxFocusRect, QStyle::SE_CheckBoxIndicator, QStyle::SE_HeaderArrow, QStyle::SE_HeaderLabel, QStyle::SE_ItemViewItemCheckIndicator, QStyle::SE_ItemViewItemDecoration, QStyle::SE_ItemViewItemFocusRect, QStyle::SE_ItemViewItemText, QStyle::SE_ProgressBarContents, QStyle::SE_ProgressBarGroove, QStyle::SE_ProgressBarLabel, QStyle::SE_PushButtonContents, QStyle::SE_PushButtonFocusRect, QStyle::SE_RadioButtonContents, QStyle::SE_RadioButtonFocusRect, QStyle::SE_RadioButtonIndicator, QStyle::SE_TabBarTabText, QStyle::SE_ToolBoxTabContents, QIcon::Selected, QFont::setBold(), QPalette::setColor(), QPen::setColor(), QRect::setCoords(), QRect::setLeft(), QRect::setRect(), QRect::setRight(), QPen::setWidth(), QStyle::SH_RubberBand_Mask, QStyle::SH_ToolBox_SelectedPageTitleBold, QStyle::SH_UnderlineShortcut, QPixmap::size(), state, QStyleOption::state, QStyle::State_Active, QStyle::State_AutoRaise, QStyle::State_DownArrow, QStyle::State_Editing, QStyle::State_Enabled, QStyle::State_HasFocus, QStyle::State_Horizontal, QStyle::State_Item, QStyle::State_KeyboardFocusChange, QStyle::State_MouseOver, QStyle::State_NoChange, QStyle::State_None, QStyle::State_Off, QStyle::State_On, QStyle::State_Open, QStyle::State_Raised, QStyle::State_Selected, QStyle::State_Sunken, QWidget::style(), QFrame::StyledPanel, styleHint(), QStyle::styleHint(), QStyle::subControlRect(), subElementRect(), QStyle::subElementRect(), subopt, QFrame::Sunken, QWidget::testAttribute(), text, QPalette::Text, QStyleOptionButton::text, QAbstractButton::text, Qt::TextDontClip, Qt::TextHideMnemonic, textRect, Qt::TextShowMnemonic, Qt::TextSingleLine, Qt::ToolButtonIconOnly, Qt::ToolButtonTextOnly, Qt::ToolButtonTextUnderIcon, QRect::top(), Qt::TopLeftCorner, Qt::TopRightCorner, tr, QRect::translate(), QTabBar::TriangularEast, QTabBar::TriangularNorth, QTabBar::TriangularSouth, QTabBar::TriangularWest, txt, Qt::Unchecked, verticalTabs(), QStyle::visualAlignment(), QStyle::visualRect(), QFrame::VLine, Qt::WA_NoSystemBackground, QFont::WeightResolved, Qt::white, widget, QPixmap::width(), QRect::width(), QSize::width(), QPalette::Window, QPalette::window(), QPalette::WindowText, QPalette::windowText(), QFrame::WinPanel, QRect::x(), and QRect::y().

Referenced by QQC2_NAMESPACE::QMacStyle::drawControl(), QMacStyle::drawControl(), QWindows11Style::drawControl(), QWindowsVistaStyle::drawControl(), and QPixmapStyle::drawControl().

+ Here is the caller graph for this function:

◆ drawPrimitive()

void QCommonStyle::drawPrimitive ( PrimitiveElement pe,
const QStyleOption * opt,
QPainter * p,
const QWidget * w = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QPixmapStyle, QProxyStyle, and QMacStyle.

Definition at line 171 of file qcommonstyle.cpp.

References QIcon::Active, QPalette::Active, add(), QRect::adjust(), QRect::adjusted(), Qt::AlignCenter, QPalette::AlternateBase, QPainter::Antialiasing, QPalette::Base, Qt::black, QRect::bottom(), QRect::bottomRight(), QPalette::brush(), QPalette::Button, QPalette::buttonText(), className, QBrush::color(), d, QPalette::Dark, QPalette::dark(), Qt::Dense4Pattern, QStyleOption::direction, QIcon::Disabled, QPalette::Disabled, dpr(), QStyle::drawItemPixmap(), QStyle::drawPrimitive(), QPixmapCache::find(), QStyleOptionFrame::Flat, frame, QColor::getHsv(), header(), QRect::height(), QPalette::Highlight, QPalette::HighlightedText, QPalette::highlightedText(), i, QPalette::Inactive, QPixmapCache::insert(), QWidget::isEnabled(), QColor::isValid(), QRect::left(), QPalette::light(), QPainterPath::lineTo(), QFrame::lineWidth, metaObject(), QPalette::Mid, QPalette::mid(), QFrame::midLineWidth, QPainterPath::moveTo(), Qt::NoBrush, QIcon::Normal, QPalette::Normal, QIcon::Off, QIcon::On, opt, p1, p2, QWidget::palette, QStyleOption::palette, panel, QWidget::parentWidget(), QStyle::PE_Frame, QStyle::PE_FrameButtonBevel, QStyle::PE_FrameButtonTool, QStyle::PE_FrameDockWidget, QStyle::PE_FrameFocusRect, QStyle::PE_FrameGroupBox, QStyle::PE_FrameLineEdit, QStyle::PE_FrameMenu, QStyle::PE_FrameStatusBarItem, QStyle::PE_FrameTabBarBase, QStyle::PE_FrameTabWidget, QStyle::PE_FrameWindow, QStyle::PE_IndicatorArrowDown, QStyle::PE_IndicatorArrowLeft, QStyle::PE_IndicatorArrowRight, QStyle::PE_IndicatorArrowUp, QStyle::PE_IndicatorBranch, QStyle::PE_IndicatorButtonDropDown, QStyle::PE_IndicatorCheckBox, QStyle::PE_IndicatorColumnViewArrow, QStyle::PE_IndicatorHeaderArrow, QStyle::PE_IndicatorItemViewItemCheck, QStyle::PE_IndicatorItemViewItemDrop, QStyle::PE_IndicatorMenuCheckMark, QStyle::PE_IndicatorProgressChunk, QStyle::PE_IndicatorRadioButton, QStyle::PE_IndicatorSpinDown, QStyle::PE_IndicatorSpinMinus, QStyle::PE_IndicatorSpinPlus, QStyle::PE_IndicatorSpinUp, QStyle::PE_IndicatorTabClose, QStyle::PE_IndicatorTabTear, QStyle::PE_IndicatorToolBarHandle, QStyle::PE_IndicatorToolBarSeparator, QStyle::PE_PanelButtonBevel, QStyle::PE_PanelButtonCommand, QStyle::PE_PanelButtonTool, QStyle::PE_PanelItemViewItem, QStyle::PE_PanelItemViewRow, QStyle::PE_PanelLineEdit, QStyle::PE_PanelMenu, QStyle::PE_PanelMenuBar, QStyle::PE_PanelScrollAreaCorner, QStyle::PE_PanelTipLabel, QStyle::PE_PanelToolBar, pixelMetric(), QStyle::pixelMetric(), pixmap, QStyle::PM_ButtonShiftHorizontal, QStyle::PM_ButtonShiftVertical, QStyle::PM_DefaultFrameWidth, QStyle::PM_DockWidgetFrameWidth, QStyle::PM_SmallIconSize, QStyle::proxy(), Q_UNUSED, qDrawPlainRect(), qDrawShadeLine(), qDrawShadePanel(), qDrawShadeRect(), qDrawWinPanel(), qFuzzyCompare(), qMin(), qRound(), rect, QWidget::rect, QStyleOption::rect, QRect::right(), Qt::RightToLeft, QTabBar::RoundedEast, QTabBar::RoundedNorth, QTabBar::RoundedSouth, QTabBar::RoundedWest, QStyle::SE_ItemViewItemText, QStyleOptionHeader::SortDown, QStyleOptionHeader::SortUp, QStyle::SP_TabCloseButton, QStyle::standardIcon(), state, QStyleOption::state, QStyle::State_Active, QStyle::State_Children, QStyle::State_Enabled, QStyle::State_Horizontal, QStyle::State_Item, QStyle::State_NoChange, QStyle::State_On, QStyle::State_Open, QStyle::State_Raised, QStyle::State_Selected, QStyle::State_Sibling, QStyle::State_Sunken, styleCachePixmap(), subElementRect(), QPalette::text(), textRect, QPalette::toolTipBase(), QPalette::toolTipText(), QRect::topLeft(), QTabBar::TriangularEast, QTabBar::TriangularNorth, QTabBar::TriangularSouth, QTabBar::TriangularWest, QStyleHelper::uniqueName(), Qt::white, widget, QRect::width(), QPalette::Window, QPalette::WindowText, QPalette::windowText(), QRect::x(), and QRect::y().

Referenced by drawControl(), QPixmapStyle::drawPrimitive(), QQC2_NAMESPACE::QMacStyle::drawPrimitive(), and QMacStyle::drawPrimitive().

+ Here is the caller graph for this function:

◆ generatedIconPixmap()

QPixmap QCommonStyle::generatedIconPixmap ( QIcon::Mode iconMode,
const QPixmap & pixmap,
const QStyleOption * opt ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, QProxyStyle, and QQC2_NAMESPACE::QMacStyle.

Definition at line 6157 of file qcommonstyle.cpp.

References QIcon::Active, QColor::blue(), QPalette::color(), QPainter::CompositionMode_SourceAtop, QImage::convertToFormat(), QIcon::Disabled, QPalette::Disabled, QPainter::end(), QPainter::fillRect(), QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QPixmap::fromImage(), QColor::green(), QImage::height(), QPalette::Highlight, i, QPalette::Normal, opt, painter, QStyleOption::palette, pixmap, qAlpha(), qGray(), qMin(), QRgb, qRgba(), qt_intensity(), QColor::red(), red, QImage::scanLine(), QIcon::Selected, QColor::setAlphaF(), QPainter::setCompositionMode(), QImage::width(), and QPalette::Window.

Referenced by QMacStyle::generatedIconPixmap(), and QQC2_NAMESPACE::QMacStyle::generatedIconPixmap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hitTestComplexControl()

QStyle::SubControl QCommonStyle::hitTestComplexControl ( ComplexControl cc,
const QStyleOptionComplex * opt,
const QPoint & pt,
const QWidget * w = nullptr ) const
overridevirtual

◆ layoutSpacing()

int QCommonStyle::layoutSpacing ( QSizePolicy::ControlType control1,
QSizePolicy::ControlType control2,
Qt::Orientation orientation,
const QStyleOption * option = nullptr,
const QWidget * widget = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, and QProxyStyle.

Definition at line 6228 of file qcommonstyle.cpp.

◆ pixelMetric()

int QCommonStyle::pixelMetric ( PixelMetric m,
const QStyleOption * opt = nullptr,
const QWidget * widget = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QPixmapStyle, QProxyStyle, and QMacStyle.

Definition at line 4516 of file qcommonstyle.cpp.

References QGuiApplication::desktopSettingsAware(), QStyleHelper::dpiScaled(), QWidget::fontMetrics(), QStyleOption::fontMetrics, QFontMetrics::height(), Qt::Horizontal, QWidget::isWindow(), isWindow(), QPlatformTheme::MaximumScrollBarDragDistance, opt, QStyle::pixelMetric(), QGuiApplicationPrivate::platformTheme(), QStyle::PM_ButtonDefaultIndicator, QStyle::PM_ButtonIconSize, QStyle::PM_ButtonMargin, QStyle::PM_ButtonShiftHorizontal, QStyle::PM_ButtonShiftVertical, QStyle::PM_CheckBoxLabelSpacing, QStyle::PM_ComboBoxFrameWidth, QStyle::PM_DefaultFrameWidth, QStyle::PM_DockWidgetFrameWidth, QStyle::PM_DockWidgetHandleExtent, QStyle::PM_DockWidgetSeparatorExtent, QStyle::PM_DockWidgetTitleBarButtonMargin, QStyle::PM_DockWidgetTitleMargin, QStyle::PM_ExclusiveIndicatorHeight, QStyle::PM_ExclusiveIndicatorWidth, QStyle::PM_FocusFrameHMargin, QStyle::PM_FocusFrameVMargin, QStyle::PM_HeaderDefaultSectionSizeHorizontal, QStyle::PM_HeaderDefaultSectionSizeVertical, QStyle::PM_HeaderGripMargin, QStyle::PM_HeaderMargin, QStyle::PM_HeaderMarkSize, QStyle::PM_IconViewIconSize, QStyle::PM_IndicatorHeight, QStyle::PM_IndicatorWidth, QStyle::PM_LargeIconSize, QStyle::PM_LayoutBottomMargin, QStyle::PM_LayoutHorizontalSpacing, QStyle::PM_LayoutLeftMargin, QStyle::PM_LayoutRightMargin, QStyle::PM_LayoutTopMargin, QStyle::PM_LayoutVerticalSpacing, QStyle::PM_LineEditIconMargin, QStyle::PM_LineEditIconSize, QStyle::PM_ListViewIconSize, QStyle::PM_MaximumDragDistance, QStyle::PM_MdiSubWindowFrameWidth, QStyle::PM_MdiSubWindowMinimizedWidth, QStyle::PM_MenuBarHMargin, QStyle::PM_MenuBarItemSpacing, QStyle::PM_MenuBarPanelWidth, QStyle::PM_MenuBarVMargin, QStyle::PM_MenuButtonIndicator, QStyle::PM_MenuDesktopFrameWidth, QStyle::PM_MenuHMargin, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuScrollerHeight, QStyle::PM_MenuTearoffHeight, QStyle::PM_MenuVMargin, QStyle::PM_MessageBoxIconSize, QStyle::PM_ProgressBarChunkWidth, QStyle::PM_RadioButtonLabelSpacing, QStyle::PM_ScrollBarExtent, QStyle::PM_ScrollBarSliderMin, QStyle::PM_ScrollView_ScrollBarOverlap, QStyle::PM_ScrollView_ScrollBarSpacing, QStyle::PM_SizeGripSize, QStyle::PM_SliderControlThickness, QStyle::PM_SliderLength, QStyle::PM_SliderSpaceAvailable, QStyle::PM_SliderThickness, QStyle::PM_SliderTickmarkOffset, QStyle::PM_SmallIconSize, QStyle::PM_SpinBoxFrameWidth, QStyle::PM_SpinBoxSliderHeight, QStyle::PM_SubMenuOverlap, QStyle::PM_TabBar_ScrollButtonOverlap, QStyle::PM_TabBarBaseHeight, QStyle::PM_TabBarBaseOverlap, QStyle::PM_TabBarIconSize, QStyle::PM_TabBarScrollButtonWidth, QStyle::PM_TabBarTabHSpace, QStyle::PM_TabBarTabOverlap, QStyle::PM_TabBarTabShiftHorizontal, QStyle::PM_TabBarTabShiftVertical, QStyle::PM_TabBarTabVSpace, QStyle::PM_TabCloseIndicatorHeight, QStyle::PM_TabCloseIndicatorWidth, QStyle::PM_TextCursorWidth, QStyle::PM_TitleBarButtonIconSize, QStyle::PM_TitleBarButtonSize, QStyle::PM_TitleBarHeight, QStyle::PM_ToolBarExtensionExtent, QStyle::PM_ToolBarFrameWidth, QStyle::PM_ToolBarHandleExtent, QStyle::PM_ToolBarIconSize, QStyle::PM_ToolBarItemMargin, QStyle::PM_ToolBarItemSpacing, QStyle::PM_ToolBarSeparatorExtent, QStyle::PM_ToolTipLabelFrameWidth, QStyle::PM_TreeViewIndentation, QStyle::proxy(), qMax(), ret, QTabBar::RoundedEast, QTabBar::RoundedNorth, QTabBar::RoundedSouth, QTabBar::RoundedWest, QStyleOption::state, QStyle::State_Window, QPlatformTheme::TextCursorWidth, QSlider::TicksAbove, QSlider::TicksBothSides, Qt::Tool, QPlatformTheme::ToolBarIconSize, QTabBar::TriangularEast, QTabBar::TriangularWest, widget, and Qt::WindowType_Mask.

Referenced by drawComplexControl(), drawControl(), drawPrimitive(), QPixmapStyle::pixelMetric(), QQC2_NAMESPACE::QMacStyle::pixelMetric(), QMacStyle::pixelMetric(), sizeFromContents(), and subElementRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ polish() [1/3]

void QCommonStyle::polish ( QApplication * app)
overridevirtual

\reimp

Reimplemented from QStyle.

Reimplemented in QMacStyle, QProxyStyle, and QPixmapStyle.

Definition at line 6262 of file qcommonstyle.cpp.

References app, and QStyle::polish().

+ Here is the call graph for this function:

◆ polish() [2/3]

void QCommonStyle::polish ( QPalette & pal)
overridevirtual

\reimp

Reimplemented from QStyle.

Reimplemented in QMacStyle, QProxyStyle, and QPixmapStyle.

Definition at line 6238 of file qcommonstyle.cpp.

References QStyle::polish().

Referenced by QPixmapStyle::polish(), QMacStyle::polish(), and QPixmapStyle::polish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ polish() [3/3]

void QCommonStyle::polish ( QWidget * widget)
overridevirtual

\reimp

Reimplemented from QStyle.

Reimplemented in QMacStyle, QPixmapStyle, and QProxyStyle.

Definition at line 6246 of file qcommonstyle.cpp.

References QStyle::polish(), and widget.

+ Here is the call graph for this function:

◆ sizeFromContents()

QSize QCommonStyle::sizeFromContents ( ContentsType ct,
const QStyleOption * opt,
const QSize & contentsSize,
const QWidget * widget = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, QPixmapStyle, and QProxyStyle.

Definition at line 4887 of file qcommonstyle.cpp.

References QStyleOptionButton::AutoDefaultButton, QStyle::CT_CheckBox, QStyle::CT_ComboBox, QStyle::CT_GroupBox, QStyle::CT_HeaderSection, QStyle::CT_ItemViewItem, QStyle::CT_LineEdit, QStyle::CT_MdiControls, QStyle::CT_Menu, QStyle::CT_MenuBar, QStyle::CT_MenuBarItem, QStyle::CT_MenuItem, QStyle::CT_ProgressBar, QStyle::CT_PushButton, QStyle::CT_RadioButton, QStyle::CT_ScrollBar, QStyle::CT_Slider, QStyle::CT_SpinBox, QStyle::CT_TabBarTab, QStyle::CT_TabWidget, QStyle::CT_ToolButton, d, QStyleHelper::dpi(), QStyleHelper::dpiScaled(), QStyleOptionFrame::Flat, QSize::height(), Qt::Horizontal, iconSize, QAbstractSpinBox::NoButtons, QStyleOptionHeader::None, opt, other(), pixelMetric(), QStyle::pixelMetric(), QStyle::PM_ButtonDefaultIndicator, QStyle::PM_ButtonMargin, QStyle::PM_CheckBoxLabelSpacing, QStyle::PM_ComboBoxFrameWidth, QStyle::PM_DefaultFrameWidth, QStyle::PM_ExclusiveIndicatorHeight, QStyle::PM_ExclusiveIndicatorWidth, QStyle::PM_FocusFrameHMargin, QStyle::PM_HeaderMargin, QStyle::PM_IndicatorHeight, QStyle::PM_IndicatorWidth, QStyle::PM_RadioButtonLabelSpacing, QStyle::PM_ScrollBarExtent, QStyle::PM_SmallIconSize, QStyle::PM_SpinBoxFrameWidth, QStyle::PM_TitleBarButtonSize, QStyle::proxy(), Q_FALLTHROUGH, Q_UNUSED, qMax(), qRound(), QStyle::SC_MdiCloseButton, QStyle::SC_MdiMinButton, QStyle::SC_MdiNormalButton, QStyleOptionMenuItem::Separator, QSize::setHeight(), widget, and QSize::width().

Referenced by QPixmapStyle::comboBoxSizeFromContents(), QPixmapStyle::itemViewSizeFromContents(), QPixmapStyle::progressBarSizeFromContents(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QMacStyle::sizeFromContents(), QPixmapStyle::sizeFromContents(), and QPixmapStyle::sliderSizeFromContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ standardIcon()

QIcon QCommonStyle::standardIcon ( StandardPixmap standardIcon,
const QStyleOption * option = nullptr,
const QWidget * widget = nullptr ) const
overridevirtual

Implements QStyle.

Reimplemented in QMacStyle, and QProxyStyle.

Definition at line 6113 of file qcommonstyle.cpp.

References QIcon::addPixmap(), d, icon, QIcon::isNull(), QStyle::proxy(), QStyle::SP_TitleBarMenuButton, standardIcon(), QStyle::standardPixmap(), and widget.

Referenced by QQC2_NAMESPACE::QMacStyle::standardIcon(), QMacStyle::standardIcon(), and standardIcon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ standardPixmap()

QPixmap QCommonStyle::standardPixmap ( StandardPixmap sp,
const QStyleOption * opt = nullptr,
const QWidget * widget = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, and QProxyStyle.

Definition at line 5524 of file qcommonstyle.cpp.

References QImage::convertToFormat(), critical_xpm, d, dock_widget_close_xpm, filedialog_end_xpm, filedialog_start_xpm, QImage::Format_ARGB32, QPixmap::fromImage(), icon, information_xpm, QIcon::isNull(), QImage::mirrored(), QIcon::pixmap(), qt_close_xpm, qt_getDevicePixelRatio(), qt_help_xpm, qt_maximize_xpm, qt_minimize_xpm, qt_normalizeup_xpm, qt_shade_xpm, qt_unshade_xpm, question_xpm, sp, QStyle::SP_DockWidgetCloseButton, QStyle::SP_FileDialogEnd, QStyle::SP_FileDialogStart, QStyle::SP_MessageBoxCritical, QStyle::SP_MessageBoxInformation, QStyle::SP_MessageBoxQuestion, QStyle::SP_MessageBoxWarning, QStyle::SP_TitleBarCloseButton, QStyle::SP_TitleBarContextHelpButton, QStyle::SP_TitleBarMaxButton, QStyle::SP_TitleBarMenuButton, QStyle::SP_TitleBarMinButton, QStyle::SP_TitleBarNormalButton, QStyle::SP_TitleBarShadeButton, QStyle::SP_TitleBarUnshadeButton, QStyle::SP_ToolBarHorizontalExtensionButton, QStyle::SP_ToolBarVerticalExtensionButton, tb_extension_arrow_h_xpm, tb_extension_arrow_v_xpm, warning_xpm, and widget.

Referenced by QQC2_NAMESPACE::QMacStyle::standardPixmap(), and QMacStyle::standardPixmap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ styleHint()

int QCommonStyle::styleHint ( StyleHint sh,
const QStyleOption * opt = nullptr,
const QWidget * w = nullptr,
QStyleHintReturn * shret = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QPixmapStyle, QProxyStyle, and QMacStyle.

Definition at line 5080 of file qcommonstyle.cpp.

References QDialogButtonBox::AcceptRole, QRect::adjusted(), Qt::AlignCenter, Qt::AlignLeft, Qt::AlignRight, Qt::AlignTop, Qt::AlignTrailing, Qt::AlignVCenter, QFormLayout::AllNonFixedFieldsGrow, QWizard::ClassicStyle, QPalette::color(), Qt::ControlModifier, QPlatformTheme::defaultThemeHint(), QPlatformTheme::DialogButtonBoxButtonsHaveIcons, QPlatformTheme::DialogButtonBoxLayout, QStyleOption::direction, QFormLayout::DontWrapRows, Qt::DotLine, Qt::ElideNone, fmt, hint(), QPlatformTheme::ItemViewActivateItemOnSingleClick, Qt::LeftButton, Qt::LeftToRight, Qt::LinksAccessibleByMouse, QPlatformTheme::MenuBarFocusOnAltPressRelease, QPalette::Mid, Qt::MiddleButton, QEvent::MouseButtonPress, QTabWidget::North, opt, QTextFormat::OutlinePen, QStyleOption::palette, QPlatformTheme::PasswordMaskCharacter, QPlatformTheme::PasswordMaskDelay, QStyle::pixelMetric(), QFrame::Plain, QGuiApplicationPrivate::platformTheme(), QStyle::PM_DefaultFrameWidth, QStyle::PM_FocusFrameHMargin, QStyle::PM_FocusFrameVMargin, QStyle::proxy(), QWidget::rect, QStyleOption::rect, QRubberBand::Rectangle, ret, QColor::rgba(), QTabBar::RightSide, QStyle::RSIP_OnMouseClick, QAbstractItemView::ScrollPerItem, QTextFormat::setProperty(), QStyle::SH_BlinkCursorWhenTextSelected, QStyle::SH_Button_FocusPolicy, QStyle::SH_ComboBox_AllowWheelScrolling, QStyle::SH_ComboBox_LayoutDirection, QStyle::SH_ComboBox_ListMouseTracking, QStyle::SH_ComboBox_Popup, QStyle::SH_ComboBox_PopupFrameStyle, QStyle::SH_ComboBox_UseNativePopup, QStyle::SH_CustomBase, QStyle::SH_Dial_BackgroundRole, QStyle::SH_DialogButtonBox_ButtonsHaveIcons, QStyle::SH_DialogButtonLayout, QStyle::SH_DialogButtons_DefaultButton, QStyle::SH_DitherDisabledText, QStyle::SH_DockWidget_ButtonsHaveFrame, QStyle::SH_DrawMenuBarSeparator, QStyle::SH_EtchDisabledText, QStyle::SH_FocusFrame_AboveWidget, QStyle::SH_FocusFrame_Mask, QStyle::SH_FontDialog_SelectAssociatedText, QStyle::SH_FormLayoutFieldGrowthPolicy, QStyle::SH_FormLayoutFormAlignment, QStyle::SH_FormLayoutLabelAlignment, QStyle::SH_FormLayoutWrapPolicy, QStyle::SH_GroupBox_TextLabelColor, QStyle::SH_GroupBox_TextLabelVerticalAlignment, QStyle::SH_Header_ArrowAlignment, QStyle::SH_ItemView_ActivateItemOnSingleClick, QStyle::SH_ItemView_ArrowKeysNavigateIntoChildren, QStyle::SH_ItemView_ChangeHighlightOnFocus, QStyle::SH_ItemView_DrawDelegateFrame, QStyle::SH_ItemView_EllipsisLocation, QStyle::SH_ItemView_MovementWithoutUpdatingSelection, QStyle::SH_ItemView_PaintAlternatingRowColorsForEmptyArea, QStyle::SH_ItemView_ScrollMode, QStyle::SH_ItemView_ShowDecorationSelected, QStyle::SH_LineEdit_PasswordCharacter, QStyle::SH_LineEdit_PasswordMaskDelay, QStyle::SH_ListViewExpand_SelectMouseType, QStyle::SH_MainWindow_SpaceBelowMenuBar, QStyle::SH_Menu_AllowActiveAndDisabled, QStyle::SH_Menu_FadeOutOnHide, QStyle::SH_Menu_FillScreenWithScroll, QStyle::SH_Menu_FlashTriggeredItem, QStyle::SH_Menu_KeyboardSearch, QStyle::SH_Menu_Mask, QStyle::SH_Menu_MouseTracking, QStyle::SH_Menu_Scrollable, QStyle::SH_Menu_SelectionWrap, QStyle::SH_Menu_SloppySubMenus, QStyle::SH_Menu_SpaceActivatesItem, QStyle::SH_Menu_SubMenuDontStartSloppyOnLeave, QStyle::SH_Menu_SubMenuPopupDelay, QStyle::SH_Menu_SubMenuResetWhenReenteringParent, QStyle::SH_Menu_SubMenuSloppyCloseTimeout, QStyle::SH_Menu_SubMenuSloppySelectOtherActions, QStyle::SH_Menu_SubMenuUniDirection, QStyle::SH_Menu_SubMenuUniDirectionFailCount, QStyle::SH_Menu_SupportsSections, QStyle::SH_MenuBar_AltKeyNavigation, QStyle::SH_MenuBar_MouseTracking, QStyle::SH_MessageBox_CenterButtons, QStyle::SH_MessageBox_TextInteractionFlags, QStyle::SH_MessageBox_UseBorderForButtonSpacing, QStyle::SH_PrintDialog_RightAlignButtons, QStyle::SH_ProgressDialog_CenterCancelButton, QStyle::SH_ProgressDialog_TextLabelAlignment, QStyle::SH_RequestSoftwareInputPanel, QStyle::SH_RichText_FullWidthSelection, QStyle::SH_RubberBand_Mask, QStyle::SH_ScrollBar_ContextMenu, QStyle::SH_ScrollBar_LeftClickAbsolutePosition, QStyle::SH_ScrollBar_MiddleClickAbsolutePosition, QStyle::SH_ScrollBar_RollBetweenButtons, QStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl, QStyle::SH_ScrollBar_Transient, QStyle::SH_ScrollView_FrameOnlyAroundContents, QStyle::SH_Slider_AbsoluteSetButtons, QStyle::SH_Slider_PageSetButtons, QStyle::SH_Slider_SloppyKeyEvents, QStyle::SH_Slider_SnapToValue, QStyle::SH_Slider_StopMouseOverSlider, QStyle::SH_SpinBox_AnimateButton, QStyle::SH_SpinBox_ButtonsInsideFrame, QStyle::SH_SpinBox_ClickAutoRepeatRate, QStyle::SH_SpinBox_ClickAutoRepeatThreshold, QStyle::SH_SpinBox_KeyPressAutoRepeatRate, QStyle::SH_SpinBox_SelectOnStep, QStyle::SH_SpinBox_StepModifier, QStyle::SH_SpinControls_DisableOnBounds, QStyle::SH_Splitter_OpaqueResize, QStyle::SH_TabBar_Alignment, QStyle::SH_TabBar_AllowWheelScrolling, QStyle::SH_TabBar_ChangeCurrentDelay, QStyle::SH_TabBar_CloseButtonPosition, QStyle::SH_TabBar_ElideMode, QStyle::SH_TabBar_PreferNoArrows, QStyle::SH_TabBar_SelectMouseType, QStyle::SH_Table_AlwaysDrawLeftTopGridLines, QStyle::SH_Table_GridLineColor, QStyle::SH_TabWidget_DefaultTabPosition, QStyle::SH_TextControl_FocusIndicatorTextCharFormat, QStyle::SH_TitleBar_AutoRaise, QStyle::SH_TitleBar_ModifyNotification, QStyle::SH_TitleBar_NoBorder, QStyle::SH_TitleBar_ShowToolTipsOnButtons, QStyle::SH_ToolBar_Movable, QStyle::SH_ToolBox_SelectedPageTitleBold, QStyle::SH_ToolButton_PopupDelay, QStyle::SH_ToolButtonStyle, QStyle::SH_ToolTip_FallAsleepDelay, QStyle::SH_ToolTip_Mask, QStyle::SH_ToolTip_WakeUpDelay, QStyle::SH_ToolTipLabel_Opacity, QStyle::SH_UnderlineShortcut, QStyle::SH_Widget_Animate, QStyle::SH_Widget_Animation_Duration, QStyle::SH_Widget_ShareActivation, QStyle::SH_WindowFrame_Mask, QStyle::SH_WizardStyle, QStyle::SH_Workspace_FillSpaceOnMaximize, Qt::StrongFocus, QFrame::StyledPanel, styleHint(), QPalette::Text, QPlatformTheme::themeHint(), QPlatformTheme::ToolButtonStyle, QPlatformTheme::UnderlineShortcut, widget, QPalette::Window, and QDialogButtonBox::WinLayout.

Referenced by drawComplexControl(), drawControl(), QPixmapStyle::styleHint(), QMacStyle::styleHint(), QQC2_NAMESPACE::QMacStyle::styleHint(), styleHint(), subControlRect(), and subElementRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ subControlRect()

QRect QCommonStyle::subControlRect ( ComplexControl cc,
const QStyleOptionComplex * opt,
SubControl sc,
const QWidget * w = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QMacStyle, QProxyStyle, and QPixmapStyle.

Definition at line 4075 of file qcommonstyle.cpp.

References QRect::adjusted(), QStyle::alignedRect(), Qt::AlignTop, Qt::AlignVCenter, cb, QStyle::CC_ComboBox, QStyle::CC_GroupBox, QStyle::CC_MdiControls, QStyle::CC_ScrollBar, QStyle::CC_Slider, QStyle::CC_SpinBox, QStyle::CC_TitleBar, QStyle::CC_ToolButton, QStyleHelper::dpi(), QStyleHelper::dpiScaled(), QStyleOptionFrame::Flat, fontMetrics, QWidget::fontMetrics(), groupBox, QFontMetrics::height(), QRect::height(), Qt::Horizontal, Qt::LeftToRight, QStyleOptionToolButton::MenuButtonPopup, QAbstractSpinBox::NoButtons, opt, QStyle::pixelMetric(), QStyle::PM_CheckBoxLabelSpacing, QStyle::PM_DefaultFrameWidth, QStyle::PM_FocusFrameVMargin, QStyle::PM_IndicatorHeight, QStyle::PM_IndicatorWidth, QStyle::PM_MenuButtonIndicator, QStyle::PM_ScrollBarExtent, QStyle::PM_ScrollBarSliderMin, QStyle::PM_SliderControlThickness, QStyle::PM_SliderLength, QStyle::PM_SliderTickmarkOffset, QStyle::PM_SpinBoxFrameWidth, QStyleOptionToolButton::PopupDelay, QStyle::proxy(), Q_FALLTHROUGH, Q_UNUSED, qCWarning, qMax(), qMin(), qRound(), QWidget::rect, QStyleOption::rect, ret, rx(), QStyle::SC_ComboBoxArrow, QStyle::SC_ComboBoxEditField, QStyle::SC_ComboBoxFrame, QStyle::SC_ComboBoxListBoxPopup, QStyle::SC_GroupBoxCheckBox, QStyle::SC_GroupBoxContents, QStyle::SC_GroupBoxFrame, QStyle::SC_GroupBoxLabel, QStyle::SC_MdiCloseButton, QStyle::SC_MdiMinButton, QStyle::SC_MdiNormalButton, QStyle::SC_ScrollBarAddLine, QStyle::SC_ScrollBarAddPage, QStyle::SC_ScrollBarGroove, QStyle::SC_ScrollBarSlider, QStyle::SC_ScrollBarSubLine, QStyle::SC_ScrollBarSubPage, QStyle::SC_SliderGroove, QStyle::SC_SliderHandle, QStyle::SC_SpinBoxDown, QStyle::SC_SpinBoxEditField, QStyle::SC_SpinBoxFrame, QStyle::SC_SpinBoxUp, QStyle::SC_TitleBarCloseButton, QStyle::SC_TitleBarContextHelpButton, QStyle::SC_TitleBarLabel, QStyle::SC_TitleBarMaxButton, QStyle::SC_TitleBarMinButton, QStyle::SC_TitleBarNormalButton, QStyle::SC_TitleBarShadeButton, QStyle::SC_TitleBarSysMenu, QStyle::SC_TitleBarUnshadeButton, QStyle::SC_ToolButton, QStyle::SC_ToolButtonMenu, QRect::setTop(), QStyle::SH_GroupBox_TextLabelVerticalAlignment, QStyle::SH_ScrollBar_Transient, QWidget::size, QStyle::sliderPositionFromValue(), styleHint(), QStyle::styleHint(), Qt::TextShowMnemonic, QStyle::visualRect(), widget, QRect::width(), Qt::WindowContextHelpButtonHint, Qt::WindowMaximizeButtonHint, Qt::WindowMaximized, Qt::WindowMinimizeButtonHint, Qt::WindowMinimized, Qt::WindowShadeButtonHint, Qt::WindowSystemMenuHint, and Qt::WindowTitleHint.

Referenced by QQC2_NAMESPACE::QMacStyle::subControlRect(), QMacStyle::subControlRect(), QPixmapStyle::subControlRect(), and QWindows11Style::subControlRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ subElementRect()

QRect QCommonStyle::subElementRect ( SubElement r,
const QStyleOption * opt,
const QWidget * widget = nullptr ) const
overridevirtual

\reimp

Implements QStyle.

Reimplemented in QProxyStyle, QPixmapStyle, and QMacStyle.

Definition at line 2461 of file qcommonstyle.cpp.

References QIcon::actualSize(), QRect::adjust(), QRect::adjusted(), Qt::AlignAbsolute, Qt::AlignCenter, Qt::AlignHCenter, Qt::AlignLeft, Qt::AlignRight, Qt::AlignVCenter, QStyleOptionButton::AutoDefaultButton, QMargins::bottom(), QFrame::Box, btn, QIcon::cacheKey(), cb, d, QStyleOption::direction, false, QStyleOptionButton::features, QStyleOption::fontMetrics, header(), QRect::height(), QSize::height(), QFrame::HLine, Qt::Horizontal, icon, QStyleOptionButton::icon, iconSize, QStyleOptionButton::iconSize, QString::isEmpty(), QRect::isEmpty(), QIcon::isNull(), QStyle::itemPixmapRect(), QStyle::itemTextRect(), QWidget::layoutDirection, QMargins::left(), QRect::left(), QFrame::NoFrame, QStyleOptionHeader::None, QIcon::Normal, opt, QFrame::Panel, pixelMetric(), QStyle::pixelMetric(), QIcon::pixmap(), QFrame::Plain, QStyle::PM_ButtonDefaultIndicator, QStyle::PM_CheckBoxLabelSpacing, QStyle::PM_DefaultFrameWidth, QStyle::PM_DockWidgetTitleBarButtonMargin, QStyle::PM_DockWidgetTitleMargin, QStyle::PM_ExclusiveIndicatorHeight, QStyle::PM_ExclusiveIndicatorWidth, QStyle::PM_HeaderMargin, QStyle::PM_IndicatorHeight, QStyle::PM_IndicatorWidth, QStyle::PM_RadioButtonLabelSpacing, QStyle::PM_SliderControlThickness, QStyle::PM_SliderTickmarkOffset, QStyle::PM_SmallIconSize, QStyle::PM_TabBar_ScrollButtonOverlap, QStyle::PM_TabBarBaseOverlap, QStyle::PM_TabBarScrollButtonWidth, QStyle::PM_TabBarTabHSpace, QStyle::PM_TabBarTabShiftHorizontal, QStyle::PM_TabBarTabShiftVertical, QStyle::PM_ToolBarHandleExtent, QStyle::proxy(), Q_FALLTHROUGH, Q_UNUSED, qCeil(), qMax(), qMin(), qRound(), qSwap(), qt_getDevicePixelRatio(), QFrame::Raised, rect, QStyleOption::rect, QMargins::right(), QTabBar::RoundedEast, QTabBar::RoundedNorth, QTabBar::RoundedSouth, QTabBar::RoundedWest, QStyle::SE_CheckBoxClickRect, QStyle::SE_CheckBoxContents, QStyle::SE_CheckBoxFocusRect, QStyle::SE_CheckBoxIndicator, QStyle::SE_ComboBoxFocusRect, QStyle::SE_DockWidgetCloseButton, QStyle::SE_DockWidgetFloatButton, QStyle::SE_DockWidgetIcon, QStyle::SE_DockWidgetTitleBarText, QStyle::SE_FrameContents, QStyle::SE_HeaderArrow, QStyle::SE_HeaderLabel, QStyle::SE_ItemViewItemCheckIndicator, QStyle::SE_ItemViewItemDecoration, QStyle::SE_ItemViewItemFocusRect, QStyle::SE_ItemViewItemText, QStyle::SE_LineEditContents, QStyle::SE_ProgressBarContents, QStyle::SE_ProgressBarGroove, QStyle::SE_ProgressBarLabel, QStyle::SE_PushButtonBevel, QStyle::SE_PushButtonContents, QStyle::SE_PushButtonFocusRect, QStyle::SE_RadioButtonClickRect, QStyle::SE_RadioButtonContents, QStyle::SE_RadioButtonFocusRect, QStyle::SE_RadioButtonIndicator, QStyle::SE_ShapedFrameContents, QStyle::SE_SliderFocusRect, QStyle::SE_TabBarScrollLeftButton, QStyle::SE_TabBarScrollRightButton, QStyle::SE_TabBarTabLeftButton, QStyle::SE_TabBarTabRightButton, QStyle::SE_TabBarTabText, QStyle::SE_TabBarTearIndicator, QStyle::SE_TabWidgetLeftCorner, QStyle::SE_TabWidgetRightCorner, QStyle::SE_TabWidgetTabBar, QStyle::SE_TabWidgetTabContents, QStyle::SE_TabWidgetTabPane, QStyle::SE_ToolBarHandle, QStyle::SE_ToolBoxTabContents, QStyle::SE_TreeViewDisclosureItem, QStyle::SH_TabBar_Alignment, QStyle::SP_TitleBarCloseButton, QStyle::SP_TitleBarNormalButton, spacing, QStyle::standardIcon(), QStyleOption::state, QStyle::State_Enabled, QStyle::State_Horizontal, QStyle::State_Raised, QStyle::State_Selected, QStyle::State_Sunken, QWidget::style(), QFrame::StyledPanel, styleHint(), subElementRect(), QStyle::subElementRect(), QFrame::Sunken, QStyleOptionButton::text, textRect, Qt::TextShowMnemonic, QMargins::top(), QRect::top(), tr, QRect::translate(), QSize::transposed(), QTabBar::TriangularEast, QTabBar::TriangularNorth, QTabBar::TriangularSouth, QTabBar::TriangularWest, verticalTabs(), QStyle::visualRect(), QFrame::VLine, widget, QRect::width(), QSize::width(), QGuiApplication::windowIcon, QFrame::WinPanel, QRect::x(), and QRect::y().

Referenced by drawControl(), drawPrimitive(), QWindowsVistaStyle::subElementRect(), QPixmapStyle::subElementRect(), QQC2_NAMESPACE::QMacStyle::subElementRect(), QMacStyle::subElementRect(), and subElementRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unpolish() [1/2]

void QCommonStyle::unpolish ( QApplication * application)
overridevirtual

\reimp

Reimplemented from QStyle.

Reimplemented in QMacStyle, QProxyStyle, and QPixmapStyle.

Definition at line 6270 of file qcommonstyle.cpp.

References d, and QStyle::unpolish().

+ Here is the call graph for this function:

◆ unpolish() [2/2]

void QCommonStyle::unpolish ( QWidget * widget)
overridevirtual

\reimp

Reimplemented from QStyle.

Reimplemented in QMacStyle, QPixmapStyle, and QProxyStyle.

Definition at line 6254 of file qcommonstyle.cpp.

References QStyle::unpolish(), and widget.

Referenced by QPixmapStyle::unpolish(), QMacStyle::unpolish(), and QPixmapStyle::unpolish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: