📄 qstyle.3qt
字号:
See also sizeFromContents()..SH "QStyle::ControlElement"This enum represents a ControlElement. A ControlElement is part of a widget that performs some action or displays information to the user..TP\fCQStyle::CE_PushButton\fR - the bevel and default indicator of a QPushButton..TP\fCQStyle::CE_PushButtonLabel\fR - the label (iconset with text or pixmap) of a QPushButton..TP\fCQStyle::CE_CheckBox\fR - the indicator of a QCheckBox..TP\fCQStyle::CE_CheckBoxLabel\fR - the label (text or pixmap) of a QCheckBox..TP\fCQStyle::CE_RadioButton\fR - the indicator of a QRadioButton..TP\fCQStyle::CE_RadioButtonLabel\fR - the label (text or pixmap) of a QRadioButton..TP\fCQStyle::CE_TabBarTab\fR - the tab within a QTabBar (a QTab)..TP\fCQStyle::CE_TabBarLabel\fR - the label within a QTab..TP\fCQStyle::CE_ProgressBarGroove\fR - the groove where the progress indicator is drawn in a QProgressBar..TP\fCQStyle::CE_ProgressBarContents\fR - the progress indicator of a QProgressBar..TP\fCQStyle::CE_ProgressBarLabel\fR - the text label of a QProgressBar..TP\fCQStyle::CE_PopupMenuItem\fR - a menu item in a QPopupMenu..TP\fCQStyle::CE_PopupMenuScroller\fR - scrolling areas in a popumenu when the style supports scrolling..TP\fCQStyle::CE_PopupMenuHorizontalExtra\fR - extra frame area set aside with PM_PopupMenuFrameHorizontalExtra.TP\fCQStyle::CE_PopupMenuVerticalExtra\fR - extra frame area set aside with PM_PopupMenuFrameVerticalExtra.TP\fCQStyle::CE_MenuBarItem\fR - a menu item in a QMenuBar..TP\fCQStyle::CE_ToolButtonLabel\fR - a tool button's label..TP\fCQStyle::CE_MenuBarEmptyArea\fR - the empty area of a QMenuBar..TP\fCQStyle::CE_DockWindowEmptyArea\fR - the empty area of a QDockWindow..TP\fCQStyle::CE_ToolBoxTab\fR - the toolbox's tab area.TP\fCQStyle::CE_HeaderLabel\fR - the header's label.TP\fCQStyle::CE_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value..PPSee also drawControl()..SH "QStyle::PixelMetric"This enum represents a PixelMetric. A PixelMetric is a style dependent size represented as a single pixel value..TP\fCQStyle::PM_ButtonMargin\fR - amount of whitespace between pushbutton labels and the frame..TP\fCQStyle::PM_ButtonDefaultIndicator\fR - width of the default-button indicator frame..TP\fCQStyle::PM_MenuButtonIndicator\fR - width of the menu button indicator proportional to the widget height..TP\fCQStyle::PM_ButtonShiftHorizontal\fR - horizontal contents shift of a button when the button is down..TP\fCQStyle::PM_ButtonShiftVertical\fR - vertical contents shift of a button when the button is down..TP\fCQStyle::PM_DefaultFrameWidth\fR - default frame width, usually 2..TP\fCQStyle::PM_SpinBoxFrameWidth\fR - frame width of a spin box..TP\fCQStyle::PM_MDIFrameWidth\fR - frame width of an MDI window..TP\fCQStyle::PM_MDIMinimizedWidth\fR - width of a minimized MSI window..TP\fCQStyle::PM_MaximumDragDistance\fR - Some feels require the scrollbar 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..TP\fCQStyle::PM_ScrollBarExtent\fR - width of a vertical scrollbar and the height of a horizontal scrollbar..TP\fCQStyle::PM_ScrollBarSliderMin\fR - the minimum height of a vertical scrollbar's slider and the minimum width of a horiztonal scrollbar slider..TP\fCQStyle::PM_SliderThickness\fR - total slider thickness..TP\fCQStyle::PM_SliderControlThickness\fR - thickness of the slider handle..TP\fCQStyle::PM_SliderLength\fR - length of the slider..TP\fCQStyle::PM_SliderTickmarkOffset\fR - the offset between the tickmarks and the slider..TP\fCQStyle::PM_SliderSpaceAvailable\fR - the available space for the slider to move..TP\fCQStyle::PM_DockWindowSeparatorExtent\fR - width of a separator in a horiztonal dock window and the height of a separator in a vertical dock window..TP\fCQStyle::PM_DockWindowHandleExtent\fR - width of the handle in a horizontal dock window and the height of the handle in a vertical dock window..TP\fCQStyle::PM_DockWindowFrameWidth\fR - frame width of a dock window..TP\fCQStyle::PM_MenuBarFrameWidth\fR - frame width of a menubar..TP\fCQStyle::PM_MenuBarItemSpacing\fR - spacing between menubar items..TP\fCQStyle::PM_ToolBarItemSpacing\fR - spacing between toolbar items..TP\fCQStyle::PM_TabBarTabOverlap\fR - number of pixels the tabs should overlap..TP\fCQStyle::PM_TabBarTabHSpace\fR - extra space added to the tab width..TP\fCQStyle::PM_TabBarTabVSpace\fR - extra space added to the tab height..TP\fCQStyle::PM_TabBarBaseHeight\fR - height of the area between the tab bar and the tab pages..TP\fCQStyle::PM_TabBarBaseOverlap\fR - number of pixels the tab bar overlaps the tab bar base..TP\fCQStyle::PM_TabBarScrollButtonWidth\fR.TP\fCQStyle::PM_TabBarTabShiftHorizontal\fR - horizontal pixel shift when a tab is selected..TP\fCQStyle::PM_TabBarTabShiftVertical\fR - vertical pixel shift when a tab is selected..TP\fCQStyle::PM_ProgressBarChunkWidth\fR - width of a chunk in a progress bar indicator..TP\fCQStyle::PM_SplitterWidth\fR - width of a splitter..TP\fCQStyle::PM_TitleBarHeight\fR - height of the title bar..TP\fCQStyle::PM_PopupMenuFrameHorizontalExtra\fR - additional border, e.g. for panels.TP\fCQStyle::PM_PopupMenuFrameVerticalExtra\fR - additional border, e.g. for panels.TP\fCQStyle::PM_IndicatorWidth\fR - width of a check box indicator..TP\fCQStyle::PM_IndicatorHeight\fR - height of a checkbox indicator..TP\fCQStyle::PM_ExclusiveIndicatorWidth\fR - width of a radio button indicator..TP\fCQStyle::PM_ExclusiveIndicatorHeight\fR - height of a radio button indicator..TP\fCQStyle::PM_PopupMenuScrollerHeight\fR - height of the scroller area in a popupmenu..TP\fCQStyle::PM_PopupMenuScrollerHeight\fR - height of the scroller area in a popupmenu..TP\fCQStyle::PM_CheckListButtonSize\fR - area (width/height) of the checkbox/radiobutton in a QCheckListItem.TP\fCQStyle::PM_CheckListControllerSize\fR - area (width/height) of the controller in a QCheckListItem.TP\fCQStyle::PM_DialogButtonsSeparator\fR - distance between buttons in a dialog buttons widget..TP\fCQStyle::PM_DialogButtonsButtonWidth\fR - minimum width of a button in a dialog buttons widget..TP\fCQStyle::PM_DialogButtonsButtonHeight\fR - minimum height of a button in a dialog buttons widget..TP\fCQStyle::PM_HeaderMarkSize\fR.TP\fCQStyle::PM_HeaderGripMargin\fR.TP\fCQStyle::PM_HeaderMargin\fR.TP\fCQStyle::PM_CustomBase\fR - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value..PPSee also pixelMetric()..SH "QStyle::PrimitiveElement"This enum represents the PrimitiveElements of a style. A PrimitiveElement is a common GUI element, such as a checkbox indicator or pushbutton bevel..TP\fCQStyle::PE_ButtonCommand\fR - button used to initiate an action, for example, a QPushButton..TP\fCQStyle::PE_ButtonDefault\fR - this button is the default button, e.g. in a dialog..TP\fCQStyle::PE_ButtonBevel\fR - generic button bevel..TP\fCQStyle::PE_ButtonTool\fR - tool button, for example, a QToolButton..TP\fCQStyle::PE_ButtonDropDown\fR - drop down button, for example, a tool button that displays a popup menu, for example, QPopupMenu..TP\fCQStyle::PE_FocusRect\fR - generic focus indicator..TP\fCQStyle::PE_ArrowUp\fR - up arrow..TP\fCQStyle::PE_ArrowDown\fR - down arrow..TP\fCQStyle::PE_ArrowRight\fR - right arrow..TP\fCQStyle::PE_ArrowLeft\fR - left arrow..TP\fCQStyle::PE_SpinWidgetUp\fR - up symbol for a spin widget, for example a QSpinBox..TP\fCQStyle::PE_SpinWidgetDown\fR - down symbol for a spin widget..TP\fCQStyle::PE_SpinWidgetPlus\fR - increase symbol for a spin widget..TP\fCQStyle::PE_SpinWidgetMinus\fR - decrease symbol for a spin widget..TP\fCQStyle::PE_Indicator\fR - on/off indicator, for example, a QCheckBox..TP\fCQStyle::PE_IndicatorMask\fR - bitmap mask for an indicator..TP\fCQStyle::PE_ExclusiveIndicator\fR - exclusive on/off indicator, for example, a QRadioButton..TP\fCQStyle::PE_ExclusiveIndicatorMask\fR - bitmap mask for an exclusive indicator..TP\fCQStyle::PE_DockWindowHandle\fR - tear off handle for dock windows and toolbars, for example QDockWindows and QToolBars..TP\fCQStyle::PE_DockWindowSeparator\fR - item separator for dock window and toolbar contents..TP\fCQStyle::PE_DockWindowResizeHandle\fR - resize handle for dock windows..TP\fCQStyle::PE_Splitter\fR - splitter handle; see also QSplitter..TP\fCQStyle::PE_Panel\fR - generic panel frame; see also QFrame..TP\fCQStyle::PE_PanelPopup\fR - panel frame for popup windows/menus; see also QPopupMenu..TP\fCQStyle::PE_PanelMenuBar\fR - panel frame for menu bars..TP\fCQStyle::PE_PanelDockWindow\fR - panel frame for dock windows and toolbars..TP\fCQStyle::PE_PanelTabWidget\fR - panel frame for tab widgets..TP\fCQStyle::PE_PanelLineEdit\fR - panel frame for line edits..TP\fCQStyle::PE_PanelGroupBox\fR - panel frame for group boxes..TP\fCQStyle::PE_TabBarBase\fR - area below tabs in a tab widget, for example, QTab..TP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -