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

📄 qstyle.cpp

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    \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_All  Special value that matches all SubControls    \omitvalue SC_Q3ListViewBranch    \sa ComplexControl*//*!    \fn void QStyle::drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const    Draws the ComplexControl \a control using \a painter with the    style options specified by \a option.    The \a widget argument is optional and may contain a widget to    aid in drawing \a control.    The \a option parameter is a pointer to a QStyleOptionComplex    structure that can be cast to the correct structure. Note that    the \c rect member of \a option must be in logical coordinates.    Reimplementations of this function should use visualRect() to    change the logical coordinates into screen coordinates before    calling drawPrimitive() or drawControl().    Here is a table listing the elements and what they can be cast to,    along with an explaination of the flags.    \table    \header \o ComplexControl \o Option Cast \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 ComplexControl SubControl QStyleOptionComplex*//*!    \fn QRect QStyle::subControlRect(ComplexControl control,        const QStyleOptionComplex *option, SubControl subControl,        const QWidget *widget) const = 0    Returns the rectangle for the SubControl \a subControl in the    ComplexControl \a control, with the style options specified by \a    option in visual coordinates.    The \a option argument is a pointer to a QStyleOptionComplex or one of its    subclasses. The structure can be cast to the appropriate type based on the    value of \a control. See drawComplexControl() for details.    The \a widget is optional and can contain additional information    for the function.    \sa drawComplexControl() ComplexControl SubControl QStyleOptionComplex*//*!    \fn QStyle::SubControl QStyle::hitTestComplexControl(ComplexControl control,        const QStyleOptionComplex *option, const QPoint &pos,        const QWidget *widget) const = 0    Returns the SubControl in the ComplexControl \a control with the    style options specified by \a option at the point \a pos. The \a    option argument is a pointer to a QStyleOptionComplex structure    or one of its subclasses. The structure can be cast to the    appropriate type based on the value of \a control. See    drawComplexControl() for details.    The \a widget argument is optional and can contain additional    information for the functions.    Note that \a pos is expressed in screen coordinates.    \sa drawComplexControl() ComplexControl SubControl subControlRect() QStyleOptionComplex*//*!    \enum QStyle::PixelMetric    This enum represents a PixelMetric. A PixelMetric is a style    dependent size represented as a single pixel value.    \value PM_ButtonMargin  Amount of whitespace between push button        labels and the frame    \value PM_ButtonDefaultIndicator  Width of the default-button indicator frame    \value PM_MenuButtonIndicator  Width of the menu button indicator        proportional to the widget height    \value PM_ButtonShiftHorizontal  Horizontal contents shift of a        button when the button is down    \value PM_ButtonShiftVertical  Vertical contents shift of a button when the        button is down    \value PM_DefaultFrameWidth  Default frame width (usually 2)    \value PM_SpinBoxFrameWidth  Frame width of a spin box, defaults to PM_DefaultFrameWidth    \value PM_ComboBoxFrameWidth Frame width of a combo box, defaults to PM_DefaultFrameWidth.    \value PM_MDIFrameWidth  Frame width of an MDI window    \value PM_MDIMinimizedWidth  Width of a minimized MDI window    \value PM_MaximumDragDistance  Some feels require the scroll bar or        other sliders to jump back to the original position when the        mouse pointer is too far away while dragging; a value of -1        disables this behavior    \value PM_ScrollBarExtent  Width of a vertical scroll bar and the        height of a horizontal scroll bar    \value PM_ScrollBarSliderMin  The minimum height of a vertical        scroll bar's slider and the minimum width of a horizontal        scroll bar's slider    \value PM_SliderThickness  Total slider thickness    \value PM_SliderControlThickness  Thickness of the slider handle    \value PM_SliderLength  Length of the slider    \value PM_SliderTickmarkOffset  The offset between the tickmarks        and the slider    \value PM_SliderSpaceAvailable  The available space for the slider to move    \value PM_DockWidgetSeparatorExtent  Width of a separator in a        horizontal dock window and the height of a separator in a        vertical dock window    \value PM_DockWidgetHandleExtent  Width of the handle in a        horizontal dock window and the height of the handle in a        vertical dock window    \value PM_DockWidgetFrameWidth  Frame width of a dock window    \value PM_DockWidgetTitleMargin Margin of the dock window title    \value PM_MenuBarPanelWidth  Frame width of a menubar, defaults to PM_DefaultFrameWidth    \value PM_MenuBarItemSpacing  Spacing between menubar items    \value PM_MenuBarHMargin  Spacing between menubar items and left/right of bar    \value PM_MenuBarVMargin  Spacing between menubar items and top/bottom of bar    \value PM_ToolBarFrameWidth  Width of the frame around toolbars    \value PM_ToolBarHandleExtent Width of a toolbar handle in a        horizontal toolbar and the height of the handle in a vertical toolbar    \value PM_ToolBarItemMargin  Spacing between the toolbar frame and the items    \value PM_ToolBarItemSpacing  Spacing between toolbar items    \value PM_ToolBarSeparatorExtent Width of a toolbar separator in a        horizontal toolbar and the height of a separator in a vertical toolbar    \value PM_ToolBarExtensionExtent Width of a toolbar extension         button in a horizontal toolbar and the height of the button in a         vertical toolbar    \value PM_TabBarTabOverlap  Number of pixels the tabs should overlap    \value PM_TabBarTabHSpace  Extra space added to the tab width    \value PM_TabBarTabVSpace  Extra space added to the tab height    \value PM_TabBarBaseHeight  Height of the area between the tab bar        and the tab pages    \value PM_TabBarBaseOverlap  Number of pixels the tab bar overlaps        the tab bar base    \value PM_TabBarScrollButtonWidth    \value PM_TabBarTabShiftHorizontal  Horizontal pixel shift when a        tab is selected    \value PM_TabBarTabShiftVertical  Vertical pixel shift when a        tab is selected    \value PM_ProgressBarChunkWidth  Width of a chunk in a progress bar indicator    \value PM_SplitterWidth  Width of a splitter    \value PM_TitleBarHeight  Height of the title bar    \value PM_IndicatorWidth  Width of a check box indicator    \value PM_IndicatorHeight  Height of a checkbox indicator    \value PM_ExclusiveIndicatorWidth  Width of a radio button indicator    \value PM_ExclusiveIndicatorHeight  Height of a radio button indicator    \value PM_MenuPanelWidth  Border width (applied on all sides) for a QMenu    \value PM_MenuHMargin  Additional border (used on left and right) for a QMenu    \value PM_MenuVMargin  Additional border (used for bottom and top) for a QMenu    \value PM_MenuScrollerHeight  Height of the scroller area in a QMenu    \value PM_MenuScrollerHeight  Height of the scroller area in a QMenu    \value PM_MenuTearoffHeight  Height of a tear off area in a QMenu    \value PM_MenuDesktopFrameWidth    \value PM_CheckListButtonSize  Area (width/height) of the        checkbox/radio button in a Q3CheckListItem    \value PM_CheckListControllerSize  Area (width/height) of the        controller in a Q3CheckListItem    \value PM_DialogButtonsSeparator  Distance between buttons in a dialog buttons widget    \value PM_DialogButtonsButtonWidth  Minimum width of a button in a dialog buttons widget    \value PM_DialogButtonsButtonHeight  Minimum height of a button in a dialog buttons widget    \value PM_HeaderMarkSize    \value PM_HeaderGripMargin    \value PM_HeaderMargin    \value PM_SpinBoxSliderHeight The height of the optional spin box slider    \value PM_DefaultTopLevelMargin    \value PM_DefaultChildMargin    \value PM_DefaultLayoutSpacing    \value PM_ToolBarIconSize Default tool bar icon size    \value PM_SmallIconSize Default small icon size    \value PM_LargeIconSize Default large icon size    \value PM_FocusFrameHMargin Horizontal margin that the focus frame will outset the widget by.    \value PM_FocusFrameVMargin Vertical margin that the focus frame will outset the widget by.    \value PM_IconViewIconSize    \value PM_ListViewIconSize    \value PM_ToolTipLabelFrameWidth    \value PM_CheckBoxLabelSpacing The spacing between a check box and its label    \value PM_TabBarIconSize The default icon size for a tab bar.    \value PM_SizeGripSize The size of a size grip    \value PM_CustomBase  Base value for custom ControlElements    Custom values must be greater than this value    \sa pixelMetric()*//*!    \fn int QStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const;    Returns the pixel metric for the given \a metric. The \a option    and \a widget can be used for calculating the metric. The \a    option can be cast to the appropriate type based on the value of    \a metric. Note that \a option may be zero even for PixelMetrics    that can make use of \a option. See the table below for the    appropriate \a option casts:    \table    \header \o PixelMetric \o Option Cast    \row \o \l PM_SliderControlThickness \o \l QStyleOptionSlider    \row \o \l PM_SliderLength           \o \l QStyleOptionSlider    \row \o \l PM_SliderTickmarkOffset   \o \l QStyleOptionSlider    \row \o \l PM_SliderSpaceAvailable   \o \l QStyleOptionSlider    \row \o \l PM_ScrollBarExtent        \o \l QStyleOptionSlider    \row \o \l PM_TabBarTabOverlap       \o \l QStyleOptionTab    \row \o \l PM_TabBarTabHSpace        \o \l QStyleOptionTab    \row \o \l PM_TabBarTabVSpace        \o \l QStyleOptionTab    \row \o \l PM_TabBarBaseHeight       \o \l QStyleOptionTab    \row \o \l PM_TabBarBaseOverlap      \o \l QStyleOptionTab    \endtable    In general, the \a widget argument is not used.*//*!    \enum QStyle::ContentsType    This enum represents a ContentsType. It is used to calculate sizes    for the contents of various widgets.    \value CT_CheckBox A check box, like QCheckBox    \value CT_ComboBox A combo box, like QComboBox    \value CT_DialogButtons    \value CT_Q3DockWindow    \value CT_HeaderSection A header section, like QHeader    \value CT_LineEdit A line edit, like QLineEdit    \value CT_Menu A menu, like QMenu    \value CT_Q3Header A Qt 3 header section, like Q3Header    \value CT_MenuBar A menu bar, like QMenuBar    \value CT_MenuBarItem A menu bar item, like the buttons in a QMenuBar    \value CT_MenuItem A menu item, like QMenuItem    \value CT_ProgressBar A progress bar, like QProgressBar    \value CT_PushButton A push button, like QPushButton    \value CT_RadioButton A radio button, like QRadioButton    \value CT_SizeGrip A size grip, like QSizeGrip    \value CT_Slider A slider, like QSlider    \value CT_ScrollBar A scroll bar, like QScrollBar    \value CT_SpinBox A spin box, like QSpinBox    \value CT_Splitter A splitter, like QSplitter    \value CT_TabBarTab A tab on a tab bar, like QTabBar    \value CT_TabWidget A tab widget, like QTabWidget    \value CT_ToolButton A tool button, like QToolButton    \value CT_GroupBox A group box, like QGroupBox    \value CT_CustomBase  Base value for custom ControlElements.    Custom values must be greater than this value.    \sa sizeFromContents()*//*!    \fn QSize QStyle::sizeFromContents(ContentsType type, const QStyleOption *option, \                                       const QSize &contentsSize, const QWidget *widget) const

⌨️ 快捷键说明

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