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

📄 qstyleoption.cpp

📁 奇趣公司比较新的qt/emd版本
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    \sa StyleOptionVersion*//*!    \enum QStyleOptionGroupBox::StyleOptionVersion    This enum is used to hold information about the version of the style option, and    is defined for each QStyleOption subclass.    \value Version 1    The version is used by QStyleOption subclasses to implement    extensions without breaking compatibility. If you use    qstyleoption_cast(), you normally don't need to check it.    \sa StyleOptionType*//*!    \variable QStyleOptionGroupBox::lineWidth    \brief the line width for drawing the panel    The value of this variable is, currently, always 1.    \sa QFrame::lineWidth*//*!    \variable QStyleOptionGroupBox::midLineWidth    \brief the mid-line width for drawing the panel    The mid-line width is usually used when drawing sunken or raised    group box frames. The value of this variable is, currently, always 0.    \sa QFrame::midLineWidth*//*!    \variable QStyleOptionGroupBox::text    \brief the text of the group box    The default value is an empty string.    \sa QGroupBox::title*//*!    \variable QStyleOptionGroupBox::textAlignment    \brief the alignment of the group box title    The default value is Qt::AlignLeft.    \sa QGroupBox::alignment*//*!    \variable QStyleOptionGroupBox::features    \brief the features of the group box frame    The frame is flat by default.        \sa QStyleOptionFrameV2::FrameFeature*//*!    \variable QStyleOptionGroupBox::textColor    \brief the color of the group box title    The default value is an invalid color with the RGB value (0, 0,    0). An invalid color is a color that is not properly set up for    the underlying window system.*//*!    Constructs a QStyleOptionGroupBox, initializing the members    variables to their default values.*/QStyleOptionGroupBox::QStyleOptionGroupBox()    : QStyleOptionComplex(Version, Type), features(QStyleOptionFrameV2::None),      textAlignment(Qt::AlignLeft), lineWidth(0), midLineWidth(0){}/*!    \fn QStyleOptionGroupBox::QStyleOptionGroupBox(const QStyleOptionGroupBox &other)    Constructs a copy of the \a other style option.*//*!    \internal*/QStyleOptionGroupBox::QStyleOptionGroupBox(int version)    : QStyleOptionComplex(version, Type), features(QStyleOptionFrameV2::None),      textAlignment(Qt::AlignLeft), lineWidth(0), midLineWidth(0){}/*!    \class QStyleOptionHeader    \brief The QStyleOptionHeader class is used to describe the    parameters for drawing a header.    QStyleOptionHeader contains all the information that QStyle    functions need to draw the item views' header pane, header sort    arrow, and header label.    For performance reasons, the access to the member variables is    direct (i.e., using the \c . or \c -> operator). This low-level feel    makes the structures straightforward to use and emphasizes that    these are simply parameters used by the style functions.    For an example demonstrating how style options can be used, see    the \l {widgets/styles}{Styles} example.    \sa QStyleOption*//*!    Constructs a QStyleOptionHeader, initializing the members    variables to their default values.*/QStyleOptionHeader::QStyleOptionHeader()    : QStyleOption(QStyleOptionHeader::Version, SO_Header),      section(0), textAlignment(Qt::AlignLeft), iconAlignment(Qt::AlignLeft),      position(QStyleOptionHeader::Beginning),      selectedPosition(QStyleOptionHeader::NotAdjacent), sortIndicator(None),      orientation(Qt::Horizontal){}/*!    \internal*/QStyleOptionHeader::QStyleOptionHeader(int version)    : QStyleOption(version, SO_Header),      section(0), textAlignment(Qt::AlignLeft), iconAlignment(Qt::AlignLeft),      position(QStyleOptionHeader::Beginning),      selectedPosition(QStyleOptionHeader::NotAdjacent), sortIndicator(None),      orientation(Qt::Horizontal){}/*!    \variable QStyleOptionHeader::orientation    \brief the header's orientation (horizontal or vertical)    The default orientation is Qt::Horizontal*//*!    \fn QStyleOptionHeader::QStyleOptionHeader(const QStyleOptionHeader &other)    Constructs a copy of the \a other style option.*//*!    \enum QStyleOptionHeader::StyleOptionType    This enum is used to hold information about the type of the style option, and    is defined for each QStyleOption subclass.    \value Type The type of style option provided (\l{SO_Header} for this class).    The type is used internally by QStyleOption, its subclasses, and    qstyleoption_cast() to determine the type of style option. In    general you do not need to worry about this unless you want to    create your own QStyleOption subclass and your own styles.    \sa StyleOptionVersion*//*!    \enum QStyleOptionHeader::StyleOptionVersion    This enum is used to hold information about the version of the style option, and    is defined for each QStyleOption subclass.    \value Version 1    The version is used by QStyleOption subclasses to implement    extensions without breaking compatibility. If you use    qstyleoption_cast(), you normally don't need to check it.    \sa StyleOptionType*//*!    \variable QStyleOptionHeader::section    \brief which section of the header is being painted    The default value is 0.*//*!    \variable QStyleOptionHeader::text    \brief the text of the header    The default value is an empty string.*//*!    \variable QStyleOptionHeader::textAlignment    \brief the alignment flags for the text of the header    The default value is Qt::AlignLeft.*//*!    \variable QStyleOptionHeader::icon    \brief the icon of the header    The default value is an empty icon, i.e. an icon with neither a    pixmap nor a filename.*//*!    \variable QStyleOptionHeader::iconAlignment    \brief the alignment flags for the icon of the header    The default value is Qt::AlignLeft.*//*!    \variable QStyleOptionHeader::position    \brief the section's position in relation to the other sections    The default value is QStyleOptionHeader::Beginning.*//*!    \variable QStyleOptionHeader::selectedPosition    \brief the section's position in relation to the selected section    The default value is QStyleOptionHeader::NotAdjacent*//*!    \variable QStyleOptionHeader::sortIndicator    \brief the direction the sort indicator should be drawn    The default value is QStyleOptionHeader::None.*//*!    \enum QStyleOptionHeader::SectionPosition    This enum lets you know where the section's position is in relation to the other sections.    \value Beginning At the beginining of the header    \value Middle In the middle of the header    \value End At the end of the header    \value OnlyOneSection Only one header section    \sa position*//*!    \enum QStyleOptionHeader::SelectedPosition    This enum lets you know where the section's position is in relation to the selected section.    \value NotAdjacent Not adjacent to the selected section    \value NextIsSelected The next section is selected    \value PreviousIsSelected The previous section is selected    \value NextAndPreviousAreSelected Both the next and previous section are selected    \sa selectedPosition*//*!    \enum QStyleOptionHeader::SortIndicator    Indicates which direction the sort indicator should be drawn    \value None No sort indicator is needed    \value SortUp Draw an up indicator    \value SortDown Draw a down indicator    \sa sortIndicator*//*!    \class QStyleOptionButton    \brief The QStyleOptionButton class is used to describe the    parameters for drawing buttons.    QStyleOptionButton contains all the information that QStyle    functions need to draw graphical elements like QPushButton,    QCheckBox, and QRadioButton.    For performance reasons, the access to the member variables is    direct (i.e., using the \c . or \c -> operator). This low-level feel    makes the structures straightforward to use and emphasizes that    these are simply parameters used by the style functions.    For an example demonstrating how style options can be used, see    the \l {widgets/styles}{Styles} example.    \sa QStyleOption, QStyleOptionToolButton*//*!    \enum QStyleOptionButton::ButtonFeature    This enum describes the different types of features a push button can have.    \value None Indicates a normal push button.    \value Flat Indicates a flat push button.    \value HasMenu Indicates that the button has a drop down menu.    \value DefaultButton Indicates that the button is a default button.    \value AutoDefaultButton Indicates that the button is an auto default button.    \value CommandLinkButton Indicates that the button is a Windows Vista type command link.    \sa features*//*!    Constructs a QStyleOptionButton, initializing the members    variables to their default values.*/QStyleOptionButton::QStyleOptionButton()    : QStyleOption(QStyleOptionButton::Version, SO_Button), features(None){}/*!    \internal*/QStyleOptionButton::QStyleOptionButton(int version)    : QStyleOption(version, SO_Button), features(None){}/*!    \fn QStyleOptionButton::QStyleOptionButton(const QStyleOptionButton &other)    Constructs a copy of the \a other style option.*//*!    \enum QStyleOptionButton::StyleOptionType    This enum is used to hold information about the type of the style option, and    is defined for each QStyleOption subclass.    \value Type The type of style option provided (\l{SO_Button} for this class).    The type is used internally by QStyleOption, its subclasses, and    qstyleoption_cast() to determine the type of style option. In    general you do not need to worry about this unless you want to    create your own QStyleOption subclass and your own styles.    \sa StyleOptionVersion*//*!    \enum QStyleOptionButton::StyleOptionVersion    This enum is used to hold information about the version of the style option, and    is defined for each QStyleOption subclass.    \value Version 1    The version is used by QStyleOption subclasses to implement    extensions without breaking compatibility. If you use    qstyleoption_cast(), you normally don't need to check it.    \sa StyleOptionType*//*!    \variable QStyleOptionButton::features    \brief a bitwise OR of the features that describe this button    \sa ButtonFeature*//*!    \variable QStyleOptionButton::text    \brief the text of the button    The default value is an empty string.*//*!    \variable QStyleOptionButton::icon    \brief the icon of the button    The default value is an empty icon, i.e. an icon with neither a    pixmap nor a filename.    \sa iconSize*//*!    \variable QStyleOptionButton::iconSize    \brief the size of the icon for the button    The default value is QSize(-1, -1), i.e. an invalid size.*/#ifndef QT_NO_TOOLBAR/*!    \class QStyleOptionToolBar    \brief The QStyleOptionToolBar class is used to describe the    parameters for drawing a toolbar.    \since 4.1    QStyleOptionToolBar contains all the information that QStyle    functions need to draw QToolBar.    For performance reasons, the access to the member variables is    direct (i.e., using the \c . or \c -> operator). This low-level feel    makes the structures straightforward to use and emphasizes that    these are simply parameters used by the style functions.    The QStyleOptionToolBar class holds the lineWidth and the    midLineWidth for drawing the widget. It also stores information    about which \l {toolBarArea}{area} the toolbar should be located    in, whether it is movable or not, which position the toolbar line    should have (positionOfLine), and the toolbar's position within    the line (positionWithinLine).    In addition, the class provides a couple of enums: The    ToolBarFeature enum is used to describe whether a toolbar is

⌨️ 快捷键说明

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