Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QStyleOptionMenuItemV2 Class Reference

\variable QStyleOptionProgressBar::minimum More...

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionMenuItemV2:
Collaboration diagram for QStyleOptionMenuItemV2:

Public Types

enum  StyleOptionVersion { Version = 2 }
Public Types inherited from QStyleOptionMenuItem
enum  StyleOptionType { Type = SO_MenuItem }
 This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More...
enum  StyleOptionVersion { Version = 1 }
 This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More...
enum  MenuItemType {
  Normal , DefaultItem , Separator , SubMenu ,
  Scroller , TearOff , Margin , EmptyArea
}
 This enum indicates the type of menu item that the structure describes. More...
enum  CheckType { NotCheckable , Exclusive , NonExclusive }
 This enum is used to indicate whether or not a check mark should be drawn for the item, or even if it should be drawn at all. More...
Public Types inherited from QStyleOption
enum  OptionType {
  SO_Default , SO_FocusRect , SO_Button , SO_Tab ,
  SO_MenuItem , SO_Frame , SO_ProgressBar , SO_ToolBox ,
  SO_Header , SO_DockWidget , SO_ViewItem , SO_TabWidgetFrame ,
  SO_TabBarBase , SO_RubberBand , SO_ToolBar , SO_GraphicsItem ,
  SO_Complex = 0xf0000 , SO_Slider , SO_SpinBox , SO_ToolButton ,
  SO_ComboBox , SO_TitleBar , SO_GroupBox , SO_SizeGrip ,
  SO_CustomBase = 0xf00 , SO_ComplexCustomBase = 0xf000000
}
 This enum is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. More...
enum  StyleOptionType { Type = SO_Default }
 This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More...
enum  StyleOptionVersion { Version = 1 }
 This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More...

Public Member Functions

 QStyleOptionMenuItemV2 ()
 Constructs a QStyleOptionMenuItemV2, initializing the members variables to their default values.
 QStyleOptionMenuItemV2 (const QStyleOptionMenuItemV2 &other)
 Constructs a copy of the other style option.
QStyleOptionMenuItemV2operator= (const QStyleOptionMenuItemV2 &)=default
Public Member Functions inherited from QStyleOptionMenuItem
 QStyleOptionMenuItem ()
 Constructs a QStyleOptionMenuItem, initializing the members variables to their default values.
 QStyleOptionMenuItem (const QStyleOptionMenuItem &other)
 Constructs a copy of the other style option.
QStyleOptionMenuItemoperator= (const QStyleOptionMenuItem &)=default
Public Member Functions inherited from QStyleOption
 QStyleOption (int version=QStyleOption::Version, int type=SO_Default)
 Constructs a QStyleOption with the specified version and type.
 QStyleOption (const QStyleOption &other)
 Constructs a copy of other.
 ~QStyleOption ()
 Destroys this style option object.
void initFrom (const QWidget *w)
QStyleOptionoperator= (const QStyleOption &other)
 Assign other to this QStyleOption.

Public Attributes

bool mouseDown
Public Attributes inherited from QStyleOptionMenuItem
MenuItemType menuItemType
CheckType checkType
bool checked
bool menuHasCheckableItems
QRect menuRect
QString text
QIcon icon
int maxIconWidth
int reservedShortcutWidth
QFont font
Public Attributes inherited from QStyleOption
int version
int type
QStyle::State state
Qt::LayoutDirection direction
QRect rect
QFontMetrics fontMetrics
QPalette palette
QObjectstyleObject

Protected Member Functions

 QStyleOptionMenuItemV2 (int version)
Protected Member Functions inherited from QStyleOptionMenuItem
 QStyleOptionMenuItem (int version)

Additional Inherited Members

Detailed Description

\variable QStyleOptionProgressBar::minimum

the minimum value for the progress bar

This is the minimum value in the progress bar. The default value is 0.

See also
QProgressBar::minimum

\variable QStyleOptionProgressBar::maximum

the maximum value for the progress bar

This is the maximum value in the progress bar. The default value is 0.

See also
QProgressBar::maximum

\variable QStyleOptionProgressBar::text

the text for the progress bar

The progress bar text is usually just the progress expressed as a string. An empty string indicates that the progress bar has not started yet. The default value is an empty string.

See also
QProgressBar::text

\variable QStyleOptionProgressBar::textVisible

a flag indicating whether or not text is visible

If this flag is true then the text is visible. Otherwise, the text is not visible. The default value is false.

See also
QProgressBar::textVisible

\variable QStyleOptionProgressBar::textAlignment

the text alignment for the text in the QProgressBar.

This can be used as a guide on where the text should be in the progress bar. The default value is Qt::AlignLeft.

\variable QStyleOptionProgressBar::progress

the current progress for the progress bar

The current progress. A value of QStyleOptionProgressBar::minimum

  • 1 indicates that the progress hasn't started yet. The default value is 0.
See also
QProgressBar::value

\variable QStyleOptionProgressBar::invertedAppearance

whether the progress bar's appearance is inverted

The default value is false.

See also
QProgressBar::invertedAppearance

\variable QStyleOptionProgressBar::bottomToTop

whether the text reads from bottom to top when the progress bar is vertical

The default value is false.

See also
QProgressBar::textDirection

The QStyleOptionMenuItemV2 class enhances QStyleOptionMenuItem with new members.

\inmodule QtWidgets

Definition at line 364 of file qstyleoption.h.

Member Enumeration Documentation

◆ StyleOptionVersion

Enumerator
Version 

Definition at line 367 of file qstyleoption.h.

Constructor & Destructor Documentation

◆ QStyleOptionMenuItemV2() [1/3]

QStyleOptionMenuItemV2::QStyleOptionMenuItemV2 ( )

Constructs a QStyleOptionMenuItemV2, initializing the members variables to their default values.

Definition at line 1612 of file qstyleoption.cpp.

◆ QStyleOptionMenuItemV2() [2/3]

QStyleOptionMenuItemV2::QStyleOptionMenuItemV2 ( const QStyleOptionMenuItemV2 & other)
inline

Constructs a copy of the other style option.

Definition at line 370 of file qstyleoption.h.

◆ QStyleOptionMenuItemV2() [3/3]

QStyleOptionMenuItemV2::QStyleOptionMenuItemV2 ( int version)
protected

Definition at line 1625 of file qstyleoption.cpp.

Member Function Documentation

◆ operator=()

QStyleOptionMenuItemV2 & QStyleOptionMenuItemV2::operator= ( const QStyleOptionMenuItemV2 & )
default

Member Data Documentation

◆ mouseDown

bool QStyleOptionMenuItemV2::mouseDown

Definition at line 373 of file qstyleoption.h.


The documentation for this class was generated from the following files: