⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qstyle.cpp

📁 奇趣公司比较新的qt/emd版本
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    \value SE_Q3DockWindowHandleRect  Area for the tear-off handle.    \value SE_ProgressBarGroove  Area for the groove.    \value SE_ProgressBarContents  Area for the progress indicator.    \value SE_ProgressBarLabel  Area for the text label.    \value SE_ProgressBarLayoutItem Area that counts for the parent layout.    \omitvalue SE_DialogButtonAccept    \omitvalue SE_DialogButtonReject    \omitvalue SE_DialogButtonApply    \omitvalue SE_DialogButtonHelp    \omitvalue SE_DialogButtonAll    \omitvalue SE_DialogButtonRetry    \omitvalue SE_DialogButtonAbort    \omitvalue SE_DialogButtonIgnore    \omitvalue SE_DialogButtonCustom    \value SE_FrameContents  Area for a frame's contents.    \value SE_FrameLayoutItem  Area that counts for the parent layout.    \value SE_HeaderArrow Area for the sort indicator for a header.    \value SE_HeaderLabel Area for the label in a header.    \value SE_LabelLayoutItem  Area that counts for the parent layout.    \value SE_LineEditContents  Area for a line edit's contents.    \value SE_TabWidgetLeftCorner Area for the left corner widget in a tab widget.    \value SE_TabWidgetRightCorner Area for the right corner widget in a tab widget.    \value SE_TabWidgetTabBar Area for the tab bar widget in a tab widget.    \value SE_TabWidgetTabContents Area for the contents of the tab widget.    \value SE_TabWidgetTabPane Area for the pane of a tab widget.    \value SE_TabWidgetLayoutItem  Area that counts for the parent layout.    \value SE_ToolBoxTabContents  Area for a toolbox tab's icon and label.    \value SE_ToolButtonLayoutItem  Area that counts for the parent layout.    \value SE_ViewItemCheckIndicator Area for a view item's check mark.    \value SE_TabBarTearIndicator Area for the tear indicator on a tab bar with scroll arrows.    \value SE_TreeViewDisclosureItem Area for the actual disclosure item in a tree branch.    \value SE_DialogButtonBoxLayoutItem  Area that counts for the parent layout.    \value SE_GroupBoxLayoutItem  Area that counts for the parent layout.    \value SE_CustomBase  Base value for custom sub-elements.    Custom values must be greater than this value.    \value SE_DockWidgetFloatButton The float button of a dock                                    widget.    \value SE_DockWidgetTitleBarText The text bounds of the dock                                     widgets title.    \value SE_DockWidgetCloseButton The close button of a dock                                    widget.    \value SE_DockWidgetIcon The icon of a dock widget.    \value SE_ComboBoxLayoutItem Area that counts for the parent layout.    \sa subElementRect()*//*!    \fn QRect QStyle::subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const    Returns the sub-area for the given \a element as described in the    provided style \a option. The returned rectangle is defined in    screen coordinates.    The \a 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 \a option casts:    \table    \header \o Sub Element \o QStyleOption Subclass    \row \o \l SE_PushButtonContents   \o \l QStyleOptionButton    \row \o \l SE_PushButtonFocusRect  \o \l QStyleOptionButton    \row \o \l SE_CheckBoxIndicator    \o \l QStyleOptionButton    \row \o \l SE_CheckBoxContents     \o \l QStyleOptionButton    \row \o \l SE_CheckBoxFocusRect    \o \l QStyleOptionButton    \row \o \l SE_RadioButtonIndicator \o \l QStyleOptionButton    \row \o \l SE_RadioButtonContents  \o \l QStyleOptionButton    \row \o \l SE_RadioButtonFocusRect \o \l QStyleOptionButton    \row \o \l SE_ComboBoxFocusRect    \o \l QStyleOptionComboBox    \row \o \l SE_Q3DockWindowHandleRect \o \l QStyleOptionQ3DockWindow    \row \o \l SE_ProgressBarGroove    \o \l QStyleOptionProgressBar    \row \o \l SE_ProgressBarContents  \o \l QStyleOptionProgressBar    \row \o \l SE_ProgressBarLabel     \o \l QStyleOptionProgressBar    \endtable*//*!    \enum QStyle::ComplexControl    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.    \value CC_SpinBox           A spinbox, like QSpinBox.    \value CC_ComboBox          A combobox, like QComboBox.    \value CC_ScrollBar         A scroll bar, like QScrollBar.    \value CC_Slider            A slider, like QSlider.    \value CC_ToolButton        A tool button, like QToolButton.    \value CC_TitleBar          A Title bar, like those used in QWorkspace.    \value CC_Q3ListView        Used for drawing the Q3ListView class.    \value CC_GroupBox          A group box, like QGroupBox.    \value CC_Dial              A dial, like QDial.    \value CC_MdiControls       The minimize, close, and normal                                button in the menu bar for a                                maximized MDI subwindow.    \value CC_CustomBase Base value for custom complex controls. Custom    values must be greater than this value.    \sa SubControl drawComplexControl()*//*!    \enum QStyle::SubControl    This enum describes the available sub controls. A subcontrol is a    control element within a complex control (ComplexControl).    \value SC_None  Special value that matches no other sub control.    \value SC_ScrollBarAddLine  Scroll bar add line (i.e., down/right        arrow); see also QScrollBar.    \value SC_ScrollBarSubLine  Scroll bar sub line (i.e., up/left arrow).    \value SC_ScrollBarAddPage  Scroll bar add page (i.e., page down).    \value SC_ScrollBarSubPage  Scroll bar sub page (i.e., page up).    \value SC_ScrollBarFirst  Scroll bar first line (i.e., home).    \value SC_ScrollBarLast  Scroll bar last line (i.e., end).    \value SC_ScrollBarSlider  Scroll bar slider handle.    \value SC_ScrollBarGroove  Special sub-control which contains the        area in which the slider handle may move.    \value SC_SpinBoxUp  Spin widget up/increase; see also QSpinBox.    \value SC_SpinBoxDown  Spin widget down/decrease.    \value SC_SpinBoxFrame  Spin widget frame.    \value SC_SpinBoxEditField  Spin widget edit field.    \value SC_ComboBoxEditField  Combobox edit field; see also QComboBox.    \value SC_ComboBoxArrow  Combobox arrow button.    \value SC_ComboBoxFrame  Combobox frame.    \value SC_ComboBoxListBoxPopup  The reference rectangle for the combobox popup.        Used to calculate the position of the popup.    \value SC_SliderGroove  Special sub-control which contains the area        in which the slider handle may move.    \value SC_SliderHandle  Slider handle.    \value SC_SliderTickmarks  Slider tickmarks.    \value SC_ToolButton  Tool button (see also QToolButton).    \value SC_ToolButtonMenu  Sub-control for opening a popup menu in a        tool button; see also Q3PopupMenu.    \value SC_TitleBarSysMenu  System menu button (i.e., restore, close, etc.).    \value SC_TitleBarMinButton  Minimize button.    \value SC_TitleBarMaxButton  Maximize button.    \value SC_TitleBarCloseButton  Close button.    \value SC_TitleBarLabel  Window title label.    \value SC_TitleBarNormalButton  Normal (restore) button.    \value SC_TitleBarShadeButton  Shade button.    \value SC_TitleBarUnshadeButton  Unshade button.    \value SC_TitleBarContextHelpButton Context Help button.    \value SC_Q3ListView  The list view area.    \value SC_Q3ListViewExpand  Expand item (i.e., show/hide child items).    \value SC_DialHandle The handle of the dial (i.e. what you use to control the dial).    \value SC_DialGroove The groove for the dial.    \value SC_DialTickmarks The tickmarks for the dial.    \value SC_GroupBoxFrame The frame of a group box.    \value SC_GroupBoxLabel The title of a group box.    \value SC_GroupBoxCheckBox The optional check box of a group box.    \value SC_GroupBoxContents The group box contents.    \value SC_MdiNormalButton The normal button for a MDI                              subwindow in the menu bar.    \value SC_MdiMinButton The minimize button for a MDI                           subwindow in the menu bar.    \value SC_MdiCloseButton The close button for a MDI subwindow                             in the menu bar.    \value SC_All  Special value that matches all sub-controls.    \omitvalue SC_Q3ListViewBranch    \sa ComplexControl*//*!    \fn void QStyle::drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const    Draws the given \a control using the provided \a painter with the    style options specified by \a option.    The \a widget argument is optional and can be used as aid in    drawing the control.    The \a 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 \c rect member of the    specified \a 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 \l {QStyle::StateFlag}{style    flags} that are used when drawing. The table also describes which    flags that are set when casting the given \a option to the    appropriate subclass.    \table    \header \o Complex Control \o QStyleOptionComplex Subclass \o Style Flag \o Remark    \row \o{1,2} \l{CC_SpinBox} \o{1,2} \l QStyleOptionSpinBox         \o \l State_Enabled \o Set if the spin box is enabled.    \row \o \l State_HasFocus \o Set if the spin box has input focus.    \row \o{1,2} \l {CC_ComboBox} \o{1,2} \l QStyleOptionComboBox         \o \l State_Enabled \o Set if the combobox is enabled.    \row \o \l State_HasFocus \o Set if the combobox has input focus.    \row \o{1,2} \l {CC_ScrollBar} \o{1,2} \l QStyleOptionSlider         \o \l State_Enabled \o Set if the scroll bar is enabled.    \row \o \l State_HasFocus \o Set if the scroll bar has input focus.    \row \o{1,2} \l {CC_Slider} \o{1,2} \l QStyleOptionSlider         \o \l State_Enabled \o Set if the slider is enabled.    \row \o \l State_HasFocus \o Set if the slider has input focus.    \row \o{1,2} \l {CC_Dial} \o{1,2} \l QStyleOptionSlider         \o \l State_Enabled \o Set if the dial is enabled.    \row \o \l State_HasFocus \o Set if the dial has input focus.    \row \o{1,6} \l {CC_ToolButton} \o{1,6} \l QStyleOptionToolButton         \o \l State_Enabled \o Set if the tool button is enabled.    \row \o \l State_HasFocus \o Set if the tool button has input focus.    \row \o \l State_DownArrow \o Set if the tool button is down (i.e., a mouse        button or the space bar is pressed).    \row \o \l State_On \o Set if the tool button is a toggle button        and is toggled on.    \row \o \l State_AutoRaise \o Set if the tool button has auto-raise enabled.    \row \o \l State_Raised \o Set if the button is not down, not on, and doesn't        contain the mouse when auto-raise is enabled.    \row \o \l{CC_TitleBar} \o \l QStyleOptionTitleBar         \o \l State_Enabled \o Set if the title bar is enabled.    \row \o \l{CC_Q3ListView} \o \l QStyleOptionQ3ListView         \o \l State_Enabled \o Set if the list view is enabled.    \endtable    \sa drawPrimitive(), drawControl()*//*!    \fn QRect QStyle::subControlRect(ComplexControl control,        const QStyleOptionComplex *option, SubControl subControl,        const QWidget *widget) const = 0    Returns the rectangle containing the specified \a subControl of    the given complex \a control (with the style specified by \a    option). The rectangle is defined in screen coordinates.    The \a 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 \a widget is optional and can contain additional    information for the function.    \sa drawComplexControl()*//*!    \fn QStyle::SubControl QStyle::hitTestComplexControl(ComplexControl control,        const QStyleOptionComplex *option, const QPoint &position,        const QWidget *widget) const = 0    Returns the sub control at the given \a position in the given    complex \a control (with the style options specified by \a    option).    Note that the \a position is expressed in screen coordinates.    The \a 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 \a widget argument is    optional and can contain additional information for the function.    \sa drawComplexControl(), subControlRect()*//*!    \enum QStyle::PixelMetric    This enum describes the various available pixel metrics. A pixel

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -