📄 qstyle.html
字号:
<li><tt>QStyle::PE_ProgressBarChunk</tt> - section of a progress bar indicator; seealso <a href="qprogressbar.html">QProgressBar</a>.<li><tt>QStyle::PE_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="#drawPrimitive">drawPrimitive</a>().<h3 class=fn><a name="StyleFlags-enum"></a>QStyle::StyleFlags</h3><p> This enum represents flags for drawing PrimitiveElements. Not allprimitives use all of these flags. Note that these flags may meandifferent things to different primitives. For an explanation ofthe relationship between primitives and their flags, as well asthe different meanings of the flags, see the <a href="customstyles.html">Style overview</a>.<ul><li><tt>QStyle::Style_Default</tt><li><tt>QStyle::Style_Enabled</tt><li><tt>QStyle::Style_Raised</tt><li><tt>QStyle::Style_Sunken</tt><li><tt>QStyle::Style_Off</tt><li><tt>QStyle::Style_NoChange</tt><li><tt>QStyle::Style_On</tt><li><tt>QStyle::Style_Down</tt><li><tt>QStyle::Style_Horizontal</tt><li><tt>QStyle::Style_HasFocus</tt><li><tt>QStyle::Style_Top</tt><li><tt>QStyle::Style_Bottom</tt><li><tt>QStyle::Style_FocusAtBorder</tt><li><tt>QStyle::Style_AutoRaise</tt><li><tt>QStyle::Style_MouseOver</tt><li><tt>QStyle::Style_Up</tt><li><tt>QStyle::Style_Selected</tt><li><tt>QStyle::Style_HasFocus</tt><li><tt>QStyle::Style_Active</tt><li><tt>QStyle::Style_ButtonDefault</tt></ul><p> <p>See also <a href="#drawPrimitive">drawPrimitive</a>().<h3 class=fn><a name="StyleHint-enum"></a>QStyle::StyleHint</h3><p> This enum represents a StyleHint. A StyleHint is a general lookand/or feel hint.<ul><li><tt>QStyle::SH_EtchDisabledText</tt> - disabled text is "etched" like Windows.<li><tt>QStyle::SH_GUIStyle</tt> - the GUI style to use.<li><tt>QStyle::SH_ScrollBar_BackgroundMode</tt> - the background mode for a<a href="qscrollbar.html">QScrollBar</a>. Possible values are any of those in the <a href="qt.html#BackgroundMode-enum">BackgroundMode</a> enum.<li><tt>QStyle::SH_ScrollBar_MiddleClickAbsolutePosition</tt> - a boolean value.If TRUE, middle clicking on a scrollbar causes the slider tojump to that position. If FALSE, the middle clicking isignored.<li><tt>QStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl</tt> - a booleanvalue. If TRUE, when clicking a scrollbar SubControl, holdingthe mouse button down and moving the pointer outside theSubControl, the scrollbar continues to scroll. If FALSE, thescollbar stops scrolling when the pointer leaves theSubControl.</ul><p> <ul><li><tt>QStyle::SH_TabBar_Alignment</tt> - the alignment for tabs in a<a href="qtabwidget.html">QTabWidget</a>. Possible values are <a href="qt.html#AlignmentFlags-enum">Qt::AlignLeft</a>, <a href="qt.html#AlignmentFlags-enum">Qt::AlignCenter</a> and <a href="qt.html#AlignmentFlags-enum">Qt::AlignRight</a>.<li><tt>QStyle::SH_Header_ArrowAlignment</tt> - the placement of the sortingindicator may appear in list or table headers. Possible valuesare <a href="qt.html#Dock-enum">Qt::Left</a> or <a href="qt.html#Dock-enum">Qt::Right</a>.<li><tt>QStyle::SH_Slider_SnapToValue</tt> - sliders snap to values while moving,like Windows<li><tt>QStyle::SH_Slider_SloppyKeyEvents</tt> - key presses handled in a sloppymanner, i.e. left on a vertical slider subtracts a line.<li><tt>QStyle::SH_ProgressDialog_CenterCancelButton</tt> - center button onprogress dialogs, like Motif, otherwise right aligned.<li><tt>QStyle::SH_ProgressDialog_TextLabelAlignment</tt> - Qt::AlignmentFlags --text label alignment in progress dialogs; Center on windows,Auto|VCenter otherwise.<li><tt>QStyle::SH_PrintDialog_RightAlignButtons</tt> - right align buttons inthe print dialog, like Windows.<li><tt>QStyle::SH_MainWindow_SpaceBelowMenuBar</tt> - 1 or 2 pixel space betweenthe menubar and the dockarea, like Windows.<li><tt>QStyle::SH_FontDialog_SelectAssociatedText</tt> - select the text in theline edit, or when selecting an item from the listbox, or whenthe line edit receives focus, like Windows.<li><tt>QStyle::SH_PopupMenu_AllowActiveAndDisabled</tt> - allows disabled menuitems to be active.<li><tt>QStyle::SH_PopupMenu_SpaceActivatesItem</tt> - pressing Space activatesthe item, like Motif.<li><tt>QStyle::SH_PopupMenu_SubMenuPopupDelay</tt> - the number of millisecondsto wait before opening a submenu; 256 on windows, 96 on Motif.<li><tt>QStyle::SH_ScrollView_FrameOnlyAroundContents</tt> - whether scrollviewsdraw their frame only around contents (like Motif), or aroundcontents, scrollbars and corner widgets (like Windows).<li><tt>QStyle::SH_MenuBar_AltKeyNavigation</tt> - menubars items are navigableby pressing Alt, followed by using the arrow keys to selectthe desired item.<li><tt>QStyle::SH_ComboBox_ListMouseTracking</tt> - mouse tracking in comboboxdropdown lists.<li><tt>QStyle::SH_PopupMenu_MouseTracking</tt> - mouse tracking in popup menus.<li><tt>QStyle::SH_MenuBar_MouseTracking</tt> - mouse tracking in menubars.<li><tt>QStyle::SH_ItemView_ChangeHighlightOnFocus</tt> - gray out selected itemswhen losing focus.<li><tt>QStyle::SH_Widget_ShareActivation</tt> - turn on sharing activation withfloating modeless dialogs.<li><tt>QStyle::SH_TabBar_SelectMouseType</tt> - which type of mouse event shouldcause a tab to be selected.<li><tt>QStyle::SH_ComboBox_Popup</tt> - allows popups as a combobox dropdownmenu.<li><tt>QStyle::SH_Workspace_FillSpaceOnMaximize</tt> - the workspace shouldmaximize the client area.<li><tt>QStyle::SH_TitleBar_NoBorder</tt> - the titlebar has no border<li><tt>QStyle::SH_ScrollBar_StopMouseOverSlider</tt> - stops autorepeat whenslider reaches mouse<li><tt>QStyle::SH_BlinkCursorWhenTextSelected</tt> - whether cursor should blinkwhen text is selected<li><tt>QStyle::SH_RichText_FullWidthSelection</tt> - whether richtext selectionsshould extend the full width of the document.<li><tt>QStyle::SH_PopupMenu_Scrollable</tt> - whether popupmenu's must supportscrolling.<li><tt>QStyle::SH_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="#styleHint">styleHint</a>().<h3 class=fn><a name="StylePixmap-enum"></a>QStyle::StylePixmap</h3><p> This enum represents a StylePixmap. A StylePixmap is a pixmap thatcan follow some existing GUI style or guideline.<p> <ul><li><tt>QStyle::SP_TitleBarMinButton</tt> - minimize button on titlebars. Forexample, in a <a href="qworkspace.html">QWorkspace</a>.<li><tt>QStyle::SP_TitleBarMaxButton</tt> - maximize button on titlebars.<li><tt>QStyle::SP_TitleBarCloseButton</tt> - close button on titlebars.<li><tt>QStyle::SP_TitleBarNormalButton</tt> - normal (restore) button on titlebars.<li><tt>QStyle::SP_TitleBarShadeButton</tt> - shade button on titlebars.<li><tt>QStyle::SP_TitleBarUnshadeButton</tt> - unshade button on titlebars.<li><tt>QStyle::SP_MessageBoxInformation</tt> - the 'information' icon.<li><tt>QStyle::SP_MessageBoxWarning</tt> - the 'warning' icon.<li><tt>QStyle::SP_MessageBoxCritical</tt> - the 'critical' icon.</ul><p> <ul><li><tt>QStyle::SP_DockWindowCloseButton</tt> - close button on dock windows;see also <a href="qdockwindow.html">QDockWindow</a>.</ul><p> <ul><li><tt>QStyle::SP_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="#stylePixmap">stylePixmap</a>().<h3 class=fn><a name="SubControl-enum"></a>QStyle::SubControl</h3><p> This enum represents a SubControl within a ComplexControl.<ul><li><tt>QStyle::SC_None</tt> - special value that matches no other SubControl.</ul><p> <ul><li><tt>QStyle::SC_ScrollBarAddLine</tt> - scrollbar add line (i.e. down/rightarrow); see also QScrollbar.<li><tt>QStyle::SC_ScrollBarSubLine</tt> - scrollbar sub line (i.e. up/left arrow).<li><tt>QStyle::SC_ScrollBarAddPage</tt> - scrollbar add page (i.e. page down).<li><tt>QStyle::SC_ScrollBarSubPage</tt> - scrollbar sub page (i.e. page up).<li><tt>QStyle::SC_ScrollBarFirst</tt> - scrollbar first line (i.e. home).<li><tt>QStyle::SC_ScrollBarLast</tt> - scrollbar last line (i.e. end).<li><tt>QStyle::SC_ScrollBarSlider</tt> - scrollbar slider handle.<li><tt>QStyle::SC_ScrollBarGroove</tt> - special subcontrol which contains thearea in which the slider handle may move.</ul><p> <ul><li><tt>QStyle::SC_SpinWidgetUp</tt> - spinwidget up/increase; see also <a href="qspinbox.html">QSpinBox</a>.<li><tt>QStyle::SC_SpinWidgetDown</tt> - spinwidget down/decrease.<li><tt>QStyle::SC_SpinWidgetFrame</tt> - spinwidget frame.<li><tt>QStyle::SC_SpinWidgetEditField</tt> - spinwidget edit field.<li><tt>QStyle::SC_SpinWidgetButtonField</tt> - spinwidget button field.</ul><p> <ul><li><tt>QStyle::SC_ComboBoxEditField</tt> - combobox edit field; see also <a href="qcombobox.html">QComboBox</a>.<li><tt>QStyle::SC_ComboBoxArrow</tt> - combobox arrow<li><tt>QStyle::SC_ComboBoxFrame</tt> - combobox frame</ul><p> <ul><li><tt>QStyle::SC_SliderGroove</tt> - special subcontrol which contains the areain which the slider handle may move.<li><tt>QStyle::SC_SliderHandle</tt> - slider handle.<li><tt>QStyle::SC_SliderTickmarks</tt> - slider tickmarks.</ul><p> <ul><li><tt>QStyle::SC_ToolButton</tt> - tool button; see also QToolbutton.<li><tt>QStyle::SC_ToolButtonMenu</tt> - subcontrol for opening a popup menu in a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -