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

📄 qstyle.html

📁 QT 下载资料仅供参考
💻 HTML
📖 第 1 页 / 共 5 页
字号:
user.<p> <ul><li><tt>QStyle::CE_PushButton</tt> - the bevel and default indicator of a <a href="qpushbutton.html">QPushButton</a>.<li><tt>QStyle::CE_PushButtonLabel</tt> - the label (iconset with text or pixmap)of a QPushButton.</ul><p> <ul><li><tt>QStyle::CE_CheckBox</tt> - the indicator of a <a href="qcheckbox.html">QCheckBox</a>.<li><tt>QStyle::CE_CheckBoxLabel</tt> - the label (text or pixmap) of a QCheckBox.</ul><p> <ul><li><tt>QStyle::CE_RadioButton</tt> - the indicator of a <a href="qradiobutton.html">QRadioButton</a>.<li><tt>QStyle::CE_RadioButtonLabel</tt> - the label (text or pixmap) of a QRadioButton.</ul><p> <ul><li><tt>QStyle::CE_TabBarTab</tt> - the tab within a <a href="qtabbar.html">QTabBar</a> (a <a href="qtab.html">QTab</a>).<li><tt>QStyle::CE_TabBarLabel</tt> - the label within a QTab.</ul><p> <ul><li><tt>QStyle::CE_ProgressBarGroove</tt> - the groove where the progressindicator is drawn in a <a href="qprogressbar.html">QProgressBar</a>.<li><tt>QStyle::CE_ProgressBarContents</tt> - the progress indicator of a QProgressBar.<li><tt>QStyle::CE_ProgressBarLabel</tt> - the text label of a QProgressBar.</ul><p> <ul><li><tt>QStyle::CE_PopupMenuItem</tt> - a menu item in a <a href="qpopupmenu.html">QPopupMenu</a>.<li><tt>QStyle::CE_PopupMenuScroller</tt> - scrolling areas in a popumenu when thestyle supports scrolling.<li><tt>QStyle::CE_MenuBarItem</tt> - a menu item in a <a href="qmenubar.html">QMenuBar</a>.<li><tt>QStyle::CE_ToolButtonLabel</tt> - a tool button's label.</ul><p> <ul><li><tt>QStyle::CE_CustomBase</tt> - base value for custom ControlElements. All values abovethis are reserved for custom use. Therefore, custom values must begreater than this value.</ul><p> <p>See also <a href="#drawControl">drawControl</a>().<h3 class=fn><a name="PixelMetric-enum"></a>QStyle::PixelMetric</h3><p> This enum represents a PixelMetric. A PixelMetric is a styledependent size represented as a single pixel value.<ul><li><tt>QStyle::PM_ButtonMargin</tt> - amount of whitespace between pushbuttonlabels and the frame.<li><tt>QStyle::PM_ButtonDefaultIndicator</tt> - width of the default-button indicator frame.<li><tt>QStyle::PM_MenuButtonIndicator</tt> - width of the menu button indicatorproportional to the widget height.<li><tt>QStyle::PM_ButtonShiftHorizontal</tt> - horizontal contents shift of abutton when the button is down.<li><tt>QStyle::PM_ButtonShiftVertical</tt> - vertical contents shift of a button when thebutton is down.</ul><p> <ul><li><tt>QStyle::PM_DefaultFrameWidth</tt> - default frame width, usually 2.<li><tt>QStyle::PM_SpinBoxFrameWidth</tt> - frame width of a spin box.</ul><p> <ul><li><tt>QStyle::PM_MaximumDragDistance</tt> - Some feels require the scrollbar orother sliders to jump back to the original position when themouse pointer is too far away while dragging. A value of -1disables this behavior.</ul><p> <ul><li><tt>QStyle::PM_ScrollBarExtent</tt> - width of a vertical scrollbar and theheight of a horizontal scrollbar.<li><tt>QStyle::PM_ScrollBarSliderMin</tt> - the minimum height of a verticalscrollbar's slider and the minimum width of a horiztonalscrollbar slider.</ul><p> <ul><li><tt>QStyle::PM_SliderThickness</tt> - total slider thickness.<li><tt>QStyle::PM_SliderControlThickness</tt> - thickness of the slider handle.<li><tt>QStyle::PM_SliderLength</tt> - length of the slider.<li><tt>QStyle::PM_SliderTickmarkOffset</tt> - the offset between the tickmarksand the slider.<li><tt>QStyle::PM_SliderSpaceAvailable</tt> - the available space for the slider to move.</ul><p> <ul><li><tt>QStyle::PM_DockWindowSeparatorExtent</tt> - width of a separator in ahoriztonal dock window and the height of a separator in avertical dock window.<li><tt>QStyle::PM_DockWindowHandleExtent</tt> - width of the handle in ahorizontal dock window and the height of the handle in avertical dock window.<li><tt>QStyle::PM_DockWindowFrameWidth</tt> - frame width of a dock window.</ul><p> <ul><li><tt>QStyle::PM_MenuBarFrameWidth</tt> - frame width of a menubar.</ul><p> <ul><li><tt>QStyle::PM_TabBarTabOverlap</tt> - number of pixels the tabs should overlap.<li><tt>QStyle::PM_TabBarTabHSpace</tt> - extra space added to the tab width.<li><tt>QStyle::PM_TabBarTabVSpace</tt> - extra space added to the tab height.<li><tt>QStyle::PM_TabBarBaseHeight</tt> - height of the area between the tab barand the tab pages.<li><tt>QStyle::PM_TabBarBaseOverlap</tt> - number of pixels the tab bar overlapsthe tab bar base.</ul><p> <ul><li><tt>QStyle::PM_ProgressBarChunkWidth</tt> - width of a chunk in a progress bar indicator.</ul><p> <ul><li><tt>QStyle::PM_SplitterWidth</tt> - width of a splitter.<li><tt>QStyle::PM_TitleBarHeight</tt> - height of the title bar.<li><tt>QStyle::PM_IndicatorWidth</tt> - width of a check box indicator.<li><tt>QStyle::PM_IndicatorHeight</tt> - height of a checkbox indicator.<li><tt>QStyle::PM_ExclusiveIndicatorWidth</tt> - width of a radio button indicator.<li><tt>QStyle::PM_ExclusiveIndicatorHeight</tt> - height of a radio button indicator.<li><tt>QStyle::PM_PopupMenuScrollerHeight</tt> - height of the scroller area in a popupmenu.<li><tt>QStyle::PM_CustomBase</tt> - base value for custom ControlElements. Allvalues above this are reserved for custom use. Therefore,custom values must be greater than this value.</ul><p> <p>See also <a href="#pixelMetric">pixelMetric</a>().<h3 class=fn><a name="PrimitiveElement-enum"></a>QStyle::PrimitiveElement</h3><p> This enum represents the PrimitiveElements of a style. APrimitiveElement is a common GUI element, such as a checkboxindicator or pushbutton bevel.<ul><li><tt>QStyle::PE_ButtonCommand</tt> - button used to initiate an action, forexample, a <a href="qpushbutton.html">QPushButton</a>.<li><tt>QStyle::PE_ButtonDefault</tt> - this button is the default button, e.g.in a dialog.<li><tt>QStyle::PE_ButtonBevel</tt> - generic button bevel.<li><tt>QStyle::PE_ButtonTool</tt> - tool button, for example, a <a href="qtoolbutton.html">QToolButton</a>.<li><tt>QStyle::PE_ButtonDropDown</tt> - drop down button, for example, a toolbutton that displays a popup menu, for example, <a href="qpopupmenu.html">QPopupMenu</a>.</ul><p> <ul><li><tt>QStyle::PE_FocusRect</tt> - generic focus indicator.</ul><p> <ul><li><tt>QStyle::PE_ArrowUp</tt> - up arrow.<li><tt>QStyle::PE_ArrowDown</tt> - down arrow.<li><tt>QStyle::PE_ArrowRight</tt> - right arrow.<li><tt>QStyle::PE_ArrowLeft</tt> - left arrow.</ul><p> <ul><li><tt>QStyle::PE_SpinWidgetUp</tt> - up symbol for a spin widget, for example a<a href="qspinbox.html">QSpinBox</a>.<li><tt>QStyle::PE_SpinWidgetDown</tt> - down symbol for a spin widget.<li><tt>QStyle::PE_SpinWidgetPlus</tt> - increase symbol for a spin widget.<li><tt>QStyle::PE_SpinWidgetMinus</tt> - decrease symbol for a spin widget.</ul><p> <ul><li><tt>QStyle::PE_Indicator</tt> - on/off indicator, for example, a <a href="qcheckbox.html">QCheckBox</a>.<li><tt>QStyle::PE_IndicatorMask</tt> - bitmap mask for an indicator.<li><tt>QStyle::PE_ExclusiveIndicator</tt> - exclusive on/off indicator, forexample, a <a href="qradiobutton.html">QRadioButton</a>.<li><tt>QStyle::PE_ExclusiveIndicatorMask</tt> - bitmap mask for an exclusive indicator.</ul><p> <ul><li><tt>QStyle::PE_DockWindowHandle</tt> - tear off handle for dock windows andtoolbars, for example <a href="qdockwindow.html">QDockWindow</a>s and <a href="qtoolbar.html">QToolBar</a>s.<li><tt>QStyle::PE_DockWindowSeparator</tt> - item separator for dock window andtoolbar contents.<li><tt>QStyle::PE_DockWindowResizeHandle</tt> - resize handle for dock windows.<li><tt>QStyle::PE_Splitter</tt> - splitter handle; see also <a href="qsplitter.html">QSplitter</a>.</ul><p> <ul><li><tt>QStyle::PE_Panel</tt> - generic panel frame; see also <a href="qframe.html">QFrame</a>.<li><tt>QStyle::PE_PanelPopup</tt> - panel frame for popup windows/menus; see also<a href="qpopupmenu.html">QPopupMenu</a>.<li><tt>QStyle::PE_PanelMenuBar</tt> - panel frame for menu bars.<li><tt>QStyle::PE_PanelDockWindow</tt> - panel frame for dock windows and toolbars.<li><tt>QStyle::PE_PanelTabWidget</tt> - panel frame for tab widgets.<li><tt>QStyle::PE_PanelLineEdit</tt> - panel frame for line edits.<li><tt>QStyle::PE_TabBarBase</tt> - area below tabs in a tab widget, for example,<a href="qtab.html">QTab</a>.</ul><p> <ul><li><tt>QStyle::PE_HeaderSection</tt> - section of a list or table header; see also<a href="qheader.html">QHeader</a>.<li><tt>QStyle::PE_HeaderArrow</tt> - arrow used to indicate sorting on a list or tableheader<li><tt>QStyle::PE_StatusBarSection</tt> - section of a status bar; see also<a href="qstatusbar.html">QStatusBar</a>.</ul><p> <ul><li><tt>QStyle::PE_GroupBoxFrame</tt> - frame around a group box; see also<a href="qgroupbox.html">QGroupBox</a>.<li><tt>QStyle::PE_WindowFrame</tt> - frame around a MDI or docking window</ul><p> <ul><li><tt>QStyle::PE_Separator</tt> - generic separator.</ul><p> <ul><li><tt>QStyle::PE_SizeGrip</tt> - window resize handle; see also <a href="qsizegrip.html">QSizeGrip</a>.</ul><p> <ul><li><tt>QStyle::PE_CheckMark</tt> - generic check mark; see also <a href="qcheckbox.html">QCheckBox</a>.</ul><p> <ul><li><tt>QStyle::PE_ScrollBarAddLine</tt> - scrollbar line increase indicator(i.e. scroll down); see also <a href="qscrollbar.html">QScrollBar</a>.<li><tt>QStyle::PE_ScrollBarSubLine</tt> - scrollbar line decrease indicator (i.e. scroll up).<li><tt>QStyle::PE_ScrollBarAddPage</tt> - scolllbar page increase indicator (i.e. page down).<li><tt>QStyle::PE_ScrollBarSubPage</tt> - scrollbar page decrease indicator (i.e. page up).<li><tt>QStyle::PE_ScrollBarSlider</tt> - scrollbar slider<li><tt>QStyle::PE_ScrollBarFirst</tt> - scrollbar first line indicator (i.e. home).<li><tt>QStyle::PE_ScrollBarLast</tt> - scrollbar last line indicator (i.e. end).</ul><p> <ul>

⌨️ 快捷键说明

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