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

📄 qstyle.cpp

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    Returns the size of styled object described in \a option based on the    contents size \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 based    on the value of \a type. The widget \a widget is optional argument and can    contain extra information used for calculating the size.    See the table below for the appropriate \a option usage:    \table    \header \o ContentsType    \o Option Cast    \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 represents a StyleHint. A StyleHint is a general look    and/or feel hint.    \value SH_EtchDisabledText Disabled text is "etched" as it is on Windows.    \value SH_DitherDisabledText    \value SH_GUIStyle The GUI style to use.    \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 scrollbar 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 pushbutton).    \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 placement of the sorting        indicator may appear in list or table headers. Possible values        are Qt::Left or Qt::Right.    \value SH_Slider_SnapToValue  Sliders snap to values while moving,        as they do on Windows.    \value SH_Slider_SloppyKeyEvents  Key presses handled in a sloppy        manner, i.e., left on a vertical slider subtracts a line.    \value SH_ProgressDialog_CenterCancelButton  Center button on        progress dialogs, like Motif, otherwise right aligned.    \value SH_ProgressDialog_TextLabelAlignment Type Qt::Alignment.        Text label alignment in progress dialogs; Qt::Center on        windows, Qt::VCenter otherwise.    \value SH_PrintDialog_RightAlignButtons  Right align buttons in        the print dialog, as done on Windows.    \value SH_MainWindow_SpaceBelowMenuBar One or two pixel space between        the menubar and the dockarea, as done on Windows.    \value SH_FontDialog_SelectAssociatedText Select the text in the        line edit, or when selecting an item from the listbox, or when        the line edit receives focus, as done on Windows.    \value SH_Menu_AllowActiveAndDisabled  Allows disabled menu        items to be active.    \value SH_Menu_SpaceActivatesItem  Pressing the space bar activates        the item, as done on Motif.    \value SH_Menu_SubMenuPopupDelay  The number of milliseconds        to wait before opening a submenu (256 on windows, 96 on Motif).    \value SH_Menu_Scrollable Whether popup menus must support scrolling.    \value SH_Menu_SloppySubMenus Whether popupmenu's must support        sloppy submenu; as implemented on Mac OS.    \value SH_ScrollView_FrameOnlyAroundContents  Whether scrollviews        draw their frame only around contents (like Motif), or around        contents, scroll bars and corner widgets (like Windows).    \value SH_MenuBar_AltKeyNavigation  Menu bars items are navigable        by pressing Alt, followed by using the arrow keys to select        the desired item.    \value SH_ComboBox_ListMouseTracking  Mouse tracking in combobox        drop-down lists.    \value SH_Menu_MouseTracking  Mouse tracking in popup menus.    \value SH_MenuBar_MouseTracking  Mouse tracking in menubars.    \value SH_Menu_FillScreenWithScroll Whether scrolling popups    should fill the screen as they are scrolled.    \value SH_ItemView_ChangeHighlightOnFocus  Gray out selected items        when losing focus.    \value SH_Widget_ShareActivation  Turn on sharing activation with        floating modeless dialogs.    \value SH_TabBar_SelectMouseType  Which type of mouse event should        cause a tab to be selected.    \value SH_Q3ListViewExpand_SelectMouseType  Which type of mouse event should        cause a list view expansion to be selected.    \value SH_TabBar_PreferNoArrows  Whether a tabbar should suggest a size        to prevent scoll arrows.    \value SH_ComboBox_Popup  Allows popups as a combobox drop-down        menu.    \value SH_Workspace_FillSpaceOnMaximize  The workspace should        maximize the client area.    \value SH_TitleBar_NoBorder  The title bar has no border.    \value SH_ScrollBar_StopMouseOverSlider  Stops auto-repeat when        the slider reaches the mouse position.    \value SH_BlinkCursorWhenTextSelected  Whether cursor should blink        when text is selected.    \value SH_RichText_FullWidthSelection  Whether richtext selections        should extend to the full width of the document.    \value SH_GroupBox_TextLabelVerticalAlignment  How to vertically align a        groupbox's text label.    \value SH_GroupBox_TextLabelColor  How to paint a groupbox's text label.    \value SH_DialogButtons_DefaultButton  Which button gets the        default status in a dialog's button widget.    \value SH_ToolBox_SelectedPageTitleBold  Boldness of the selected    page title in a QToolBox.    \value SH_LineEdit_PasswordCharacter  The Unicode character to be    used for passwords.    \value SH_Table_GridLineColor    \value SH_UnderlineShortcut  Whether shortcuts are underlined.    \value SH_SpinBox_AnimateButton  Animate a click when up or down is    pressed in a spin box.    \value SH_SpinBox_KeyPressAutoRepeatRate  Auto-repeat interval for    spinbox key presses.    \value SH_SpinBox_ClickAutoRepeatRate  Auto-repeat interval for    spinbox mouse clicks.    \value SH_ToolTipLabel_Opacity  An integer indicating the opacity for    the tip label, 0 is completely transparent, 255 is completely    opaque.    \value SH_DrawMenuBarSeparator  Indicates whether or not the menubar draws separators.    \value SH_TitleBar_ModifyNotification  Indicates if the titlebar should show    a '*' for windows that are modified.    \value SH_Button_FocusPolicy The default focus policy for buttons.    \value SH_CustomBase  Base value for custom ControlElements.    Custom values must be greater than this value.    \value SH_MenuBar_DismissOnSecondClick A boolean indicating if a menu in     the menubar should be dismissed when it is clicked on a second time. (Example:     Clicking and releasing on the File Menu in a menubar and then     immediately clicking on the File Menu again.)     \value SH_MessageBox_UseBorderForButtonSpacing A boolean indicating what the to     use the border of the buttons (computed as half the button height) for the spacing     of the button in a message box.     \value SH_TitleBar_AutoRaise A boolean indicating whether     controls on a title bar ought to update when the mouse is over them.     \value SH_ToolButton_PopupDelay An int indicating the popup delay in milliseconds     for menus attached to tool buttons.     \value SH_FocusFrame_Mask The mask of the focus frame.     \value SH_RubberBand_Mask The mask of the rubber band.     \value SH_WindowFrame_Mask The mask of the window frame.     \value SH_SpinControls_DisableOnBounds Determines if the spin controls will shown     as disabled when reaching the spin range boundary.     \value SH_Dial_BackgroundRole Defines the style's preferred     background role (as QPalette::ColorRole) for a dial widget.     \value SH_ScrollBar_BackgroundMode The backgroundMode() for a scroll bar.     \value SH_ComboBox_LayoutDirection The layout direction for the combo box.     By default it should be the same value as the QStyleOption's     \c{direction}.    \value SH_ItemView_EllipsisLocation The location where ellipses should be    added for item text that is too long to fit in an view item.    \value SH_ItemView_ShowDecorationSelected When an item in an item    view is selected, also highlight the branch or other decoration.    \value SH_ItemView_ActivateItemOnSingleClick Emit the activated signal    when the user single clicks on an item in an item in an item view.    Otherwise the signal is emitted when the user double clicks on an item.    \omitvalue SH_UnderlineAccelerator    \sa styleHint()*//*!    \fn int QStyle::styleHint(StyleHint hint, const QStyleOption *option, \                              const QWidget *widget, QStyleHintReturn *returnData) const    Returns the style hint \a hint for \a widget described in the QStyleOption    \a option. Currently \a returnData and \a widget are not used; they are    provided for future enhancement. The \a option parameter is used only in    SH_ComboBox_Popup, SH_ComboBox_LayoutDirection, and    SH_GroupBox_TextLabelColor.    For an explanation of the return value, see \l StyleHint.*//*!    \enum QStyle::StandardPixmap    This enum represents a StandardPixmap. A StandardPixmap is a pixmap that    can follow some existing GUI style or guideline.    \value SP_TitleBarMinButton  Minimize button on title bars (e.g.,        in QWorkspace)    \value SP_TitleBarMenuButton Menu button on a title bar    \value SP_TitleBarMaxButton  Maximize button on title bars    \value SP_TitleBarCloseButton  Close button on title bars    \value SP_TitleBarNormalButton  Normal (restore) button on title bars    \value SP_TitleBarShadeButton  Shade button on title bars    \value SP_TitleBarUnshadeButton  Unshade button on title bars    \value SP_TitleBarContextHelpButton The Context help button on title bars    \value SP_MessageBoxInformation  The "information" icon    \value SP_MessageBoxWarning  The "warning" icon    \value SP_MessageBoxCritical  The "critical" icon    \value SP_MessageBoxQuestion  The "question" icon    \value SP_DesktopIcon    \value SP_TrashIcon    \value SP_ComputerIcon    \value SP_DriveFDIcon    \value SP_DriveHDIcon    \value SP_DriveCDIcon    \value SP_DriveDVDIcon    \value SP_DriveNetIcon    \value SP_DirOpenIcon    \value SP_DirClosedIcon    \value SP_DirLinkIcon    \value SP_FileIcon    \value SP_FileLinkIcon    \value SP_FileDialogStart    \value SP_FileDialogEnd    \value SP_FileDialogToParent    \value SP_FileDialogNewFolder    \value SP_FileDialogDetailedView    \value SP_FileDialogInfoView    \value SP_FileDialogContentsView    \value SP_FileDialogListView    \value SP_FileDialogBack    \value SP_DockWidgetCloseButton  Close button on dock windows (see also QDockWidget)    \value SP_ToolBarHorizontalExtensionButton Extension button for horizontal toolbars    \value SP_ToolBarVerticalExtensionButton Extension button for vertical toolbars    \value SP_CustomBase  Base value for custom ControlElements;    custom values must be greater than this value    \sa standardPixmap()*//*###  \enum QStyle::IconMode  This enum represents the effects performed on a pixmap to achieve a  GUI style's perferred way of representing the image in different  states.  \value IM_Disabled  A disabled pixmap (drawn on disabled widgets)  \value IM_Active  An active pixmap (drawn on active tool buttons and menu items)  \value IM_CustomBase  Base value for custom PixmapTypes; custom  values must be greater than this value  \sa generatedIconPixmap()*//*!    \fn QPixmap QStyle::generatedIconPixmap(QIcon::Mode iconMode,        

⌨️ 快捷键说明

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