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

📄 qstyle.cpp

📁 奇趣公司比较新的qt/emd版本
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    metric is a style dependent size represented by a single pixel    value.    \value PM_ButtonMargin  Amount of whitespace between push button        labels and the frame.    \value PM_DockWidgetTitleBarButtonMargin Amount of whitespace between dock widget's        title bar 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  Obsolete. Use PM_MdiSubWindowFrameWidth instead.    \value PM_MdiSubWindowFrameWidth  Frame width of an MDI window.    \value PM_MDIMinimizedWidth  Obsolete. Use PM_MdiSubWindowMinimizedWidth instead.    \value PM_MdiSubWindowMinimizedWidth  Width of a minimized MDI window.    \value PM_LayoutLeftMargin  Default \l{QLayout::setContentsMargins()}{left margin} for a                                QLayout.    \value PM_LayoutTopMargin  Default \l{QLayout::setContentsMargins()}{top margin} for a QLayout.    \value PM_LayoutRightMargin  Default \l{QLayout::setContentsMargins()}{right margin} for a                                 QLayout.    \value PM_LayoutBottomMargin  Default \l{QLayout::setContentsMargins()}{bottom margin} for a                                  QLayout.    \value PM_LayoutHorizontalSpacing  Default \l{QLayout::spacing}{horizontal spacing} for a                                       QLayout.    \value PM_LayoutVerticalSpacing  Default \l{QLayout::spacing}{vertical spacing} for a QLayout.    \value PM_MaximumDragDistance The maximum allowed distance between    the mouse and a slider when dragging. Exceeding the specified    distance will cause the slider to jump back to the original    position; 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 menu bar, defaults to PM_DefaultFrameWidth.    \value PM_MenuBarItemSpacing  Spacing between menu bar items.    \value PM_MenuBarHMargin  Spacing between menu bar items and left/right of bar.    \value PM_MenuBarVMargin  Spacing between menu bar 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.        (Currently only used in styles, not inside of QTabBar)    \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_MenuTearoffHeight  Height of a tear off area in a QMenu.    \value PM_MenuDesktopFrameWidth The frame width for the menu on the desktop.    \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 The size of the sort indicator in a header.    \value PM_HeaderGripMargin The size of the resize grip in a header.    \value PM_HeaderMargin The size of the margin between the sort indicator and the text.    \value PM_SpinBoxSliderHeight The height of the optional spin box slider.    \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 The default size for icons in an icon view.    \value PM_ListViewIconSize The default size for icons in a list view.    \value PM_ToolTipLabelFrameWidth The frame width for a tool tip label.    \value PM_CheckBoxLabelSpacing The spacing between a check box indicator and its label.    \value PM_RadioButtonLabelSpacing The spacing between a radio button indicator 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_MessageBoxIconSize The size of the standard icons in a message box    \value PM_ButtonIconSize The default size of button icons    \value PM_CustomBase Base value for custom pixel metrics.  Custom    values must be greater than this value.    The following values are obsolete:    \value PM_DefaultTopLevelMargin  Use PM_LayoutLeftMargin,                                     PM_LayoutTopMargin,                                     PM_LayoutRightMargin, and                                     PM_LayoutBottomMargin instead.    \value PM_DefaultChildMargin  Use PM_LayoutLeftMargin,                                  PM_LayoutTopMargin,                                  PM_LayoutRightMargin, and                                  PM_LayoutBottomMargin instead.    \value PM_DefaultLayoutSpacing  Use PM_LayoutHorizontalSpacing                                    and PM_LayoutVerticalSpacing                                    instead.    \sa pixelMetric()*//*!    \fn int QStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const;    Returns the value of the given pixel \a metric.    The specified \a option and \a widget can be used for calculating    the metric. In general, the \a widget argument is not used. The \a    option can be cast to the appropriate type using the    qstyleoption_cast() function. Note that the \a option may be zero    even for PixelMetrics that can make use of it. See the table below    for the appropriate \a option casts:    \table    \header \o Pixel Metric \o QStyleOption Subclass    \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    Some pixel metrics are called from widgets and some are only called    internally by the style. If the metric is not called by a widget, it is the    discretion of the style author to make use of it.  For some styles, this    may not be appropriate.*//*!    \enum QStyle::ContentsType    This enum describes the available contents types. These are 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.    \omitvalue CT_DialogButtons    \value CT_Q3DockWindow A 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 contents types.    Custom values must be greater than this value.    \value CT_MdiControls The minimize, normal, and close button                          in the menu bar for a maximized MDI                          subwindow.    \sa sizeFromContents()*//*!    \fn QSize QStyle::sizeFromContents(ContentsType type, const QStyleOption *option, \                                       const QSize &contentsSize, const QWidget *widget) const    Returns the size of the element described by the specified    \a option and \a type, based on the provided \a contentsSize.    The \a option argument is a pointer to a QStyleOption or one of    its subclasses. The \a option can be cast to the appropriate type    using the qstyleoption_cast() function. The \a widget is an    optional argument and can contain extra information used for    calculating the size.    See the table below for the appropriate \a option casts:    \table    \header \o Contents Type    \o QStyleOption Subclass    \row \o \l CT_PushButton   \o \l QStyleOptionButton    \row \o \l CT_CheckBox     \o \l QStyleOptionButton    \row \o \l CT_RadioButton  \o \l QStyleOptionButton    \row \o \l CT_ToolButton   \o \l QStyleOptionToolButton    \row \o \l CT_ComboBox     \o \l QStyleOptionComboBox    \row \o \l CT_Splitter     \o \l QStyleOption    \row \o \l CT_Q3DockWindow \o \l QStyleOptionQ3DockWindow    \row \o \l CT_ProgressBar  \o \l QStyleOptionProgressBar    \row \o \l CT_MenuItem     \o \l QStyleOptionMenuItem    \endtable    \sa ContentsType QStyleOption*//*!    \enum QStyle::StyleHint    This enum describes the available style hints. A style hint is a general look    and/or feel hint.    \value SH_EtchDisabledText Disabled text is "etched" as it is on Windows.    \value SH_DitherDisabledText Disabled text is dithered as it is on Motif.    \value SH_GUIStyle The GUI style to use.    \value SH_ScrollBar_ContextMenu Whether or not a scroll bar has a context menu.    \value SH_ScrollBar_MiddleClickAbsolutePosition  A boolean value.        If true, middle clicking on a scroll bar causes the slider to        jump to that position. If false, middle clicking is        ignored.    \value SH_ScrollBar_LeftClickAbsolutePosition  A boolean value.        If true, left clicking on a scroll bar causes the slider to        jump to that position. If false, left clicking will        behave as appropriate for each control.    \value SH_ScrollBar_ScrollWhenPointerLeavesControl  A boolean        value. If true, when clicking a scroll bar SubControl, holding        the mouse button down and moving the pointer outside the        SubControl, the scroll bar continues to scroll. If false, the        scollbar stops scrolling when the pointer leaves the        SubControl.    \value SH_ScrollBar_RollBetweenButtons A boolean value.        If true, when clicking a scroll bar button (SC_ScrollBarAddLine or        SC_ScrollBarSubLine) and dragging over to the opposite button (rolling)        will press the new button and release the old one. When it is false, the        original button is released and nothing happens (like a push button).    \value SH_TabBar_Alignment  The alignment for tabs in a        QTabWidget. Possible values are Qt::AlignLeft,        Qt::AlignCenter and Qt::AlignRight.    \value SH_Header_ArrowAlignment The placeme

⌨️ 快捷键说明

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