Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QStyleOptionGroupBox Class Reference

\variable QStyleOptionFrame::features More...

#include <qstyleoption.h>

+ Inheritance diagram for QStyleOptionGroupBox:
+ Collaboration diagram for QStyleOptionGroupBox:

Public Types

enum  StyleOptionType { Type = SO_GroupBox }
 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 Types inherited from QStyleOptionComplex
enum  StyleOptionType { Type = SO_Complex }
 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 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

 QStyleOptionGroupBox ()
 \variable QStyleOptionGroupBox::lineWidth
 
 QStyleOptionGroupBox (const QStyleOptionGroupBox &other)
 Constructs a copy of the other style option.
 
QStyleOptionGroupBoxoperator= (const QStyleOptionGroupBox &)=default
 
- Public Member Functions inherited from QStyleOptionComplex
 QStyleOptionComplex (int version=QStyleOptionComplex::Version, int type=SO_Complex)
 Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables to their default values.
 
 QStyleOptionComplex (const QStyleOptionComplex &other)
 Constructs a copy of the other style option.
 
QStyleOptionComplexoperator= (const QStyleOptionComplex &)=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

QStyleOptionFrame::FrameFeatures features
 
QString text
 
Qt::Alignment textAlignment
 
QColor textColor
 
int lineWidth
 
int midLineWidth
 
- Public Attributes inherited from QStyleOptionComplex
QStyle::SubControls subControls
 
QStyle::SubControls activeSubControls
 
- 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

 QStyleOptionGroupBox (int version)
 

Additional Inherited Members

Detailed Description

\variable QStyleOptionFrame::features

a bitwise OR of the features that describe this frame.

See also
FrameFeature

\variable QStyleOptionFrame::frameShape

This property holds the frame shape value of the frame.

See also
QFrame::frameShape

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

Since
4.1 \inmodule QtWidgets

QStyleOptionButton contains all the information that QStyle functions need the various graphical elements of a group box.

It holds the lineWidth and the midLineWidth for drawing the panel, the group box's \l {text}{title} and the title's \l {textAlignment}{alignment} and \l {textColor}{color}.

For performance reasons, there are few member functions and the access to the member variables is direct (i.e., using the . or -> operator). This makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

See also
QStyleOption, QStyleOptionComplex, QGroupBox

Definition at line 613 of file qstyleoption.h.

Member Enumeration Documentation

◆ 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_GroupBox} 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.

See also
StyleOptionVersion
Enumerator
Type 

Definition at line 616 of file qstyleoption.h.

◆ 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 do not need to check it.

See also
StyleOptionType
Enumerator
Version 

Definition at line 617 of file qstyleoption.h.

Constructor & Destructor Documentation

◆ QStyleOptionGroupBox() [1/3]

QStyleOptionGroupBox::QStyleOptionGroupBox ( )

\variable QStyleOptionGroupBox::lineWidth

the line width for drawing the panel

The value of this variable is, currently, always 1.

See also
QFrame::lineWidth

\variable QStyleOptionGroupBox::midLineWidth

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.

See also
QFrame::midLineWidth

\variable QStyleOptionGroupBox::text

the text of the group box

The default value is an empty string.

See also
QGroupBox::title

\variable QStyleOptionGroupBox::textAlignment

the alignment of the group box title

The default value is Qt::AlignLeft.

See also
QGroupBox::alignment

\variable QStyleOptionGroupBox::features

the features of the group box frame

The frame is flat by default.

See also
QStyleOptionFrame::FrameFeature

\variable QStyleOptionGroupBox::textColor

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.

Definition at line 642 of file qstyleoption.cpp.

◆ QStyleOptionGroupBox() [2/3]

QStyleOptionGroupBox::QStyleOptionGroupBox ( const QStyleOptionGroupBox & other)
inline

Constructs a copy of the other style option.

Definition at line 627 of file qstyleoption.h.

References other().

+ Here is the call graph for this function:

◆ QStyleOptionGroupBox() [3/3]

QStyleOptionGroupBox::QStyleOptionGroupBox ( int version)
protected

Definition at line 656 of file qstyleoption.cpp.

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ features

QStyleOptionFrame::FrameFeatures QStyleOptionGroupBox::features

Definition at line 619 of file qstyleoption.h.

◆ lineWidth

int QStyleOptionGroupBox::lineWidth

Definition at line 623 of file qstyleoption.h.

◆ midLineWidth

int QStyleOptionGroupBox::midLineWidth

Definition at line 624 of file qstyleoption.h.

◆ text

QString QStyleOptionGroupBox::text

Definition at line 620 of file qstyleoption.h.

◆ textAlignment

Qt::Alignment QStyleOptionGroupBox::textAlignment

Definition at line 621 of file qstyleoption.h.

◆ textColor

QColor QStyleOptionGroupBox::textColor

Definition at line 622 of file qstyleoption.h.


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