Skip to content

PythonQt.QtGui.QGroupBox · declarations 001

Back to PythonQt.QtGui.QGroupBox

alignment instance-attribute

alignment: Any

Qt 5 reference:

alignment : Qt::Alignment

This property holds the alignment of the group box title.

Most styles place the title at the top of the frame. The horizontal alignment of the title can be specified using single values from the following list:

  • Qt::AlignLeft aligns the title text with the left-hand side of the group box.
  • Qt::AlignRight aligns the title text with the right-hand side of the group box.
  • Qt::AlignHCenter aligns the title text with the horizontal center of the group box.

The default alignment is Qt::AlignLeft.

Access functions:

Qt::Alignment alignment() const
void setAlignment(int alignment)

See also Qt::Alignment.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#alignment

changeEvent

changeEvent(event: Any) -> None

X.changeEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::changeEvent(QEvent *ev)

Reimplements: QWidget::changeEvent(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

changeEvent(self, event: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#changeEvent

checkable instance-attribute

checkable: Any

Qt 5 reference:

checkable : bool

This property holds whether the group box has a checkbox in its title

If this property is true, the group box displays its title using a checkbox in place of an ordinary label. If the checkbox is checked, the group box's children are enabled; otherwise, they are disabled and inaccessible.

By default, group boxes are not checkable.

If this property is enabled for a group box, it will also be initially checked to ensure that its contents are enabled.

Access functions:

bool isCheckable() const
void setCheckable(bool checkable)

See also checked.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#checkable

checked instance-attribute

checked: Any

Qt 5 reference:

checked : bool

This property holds whether the group box is checked

If the group box is checkable, it is displayed with a check box. If the check box is checked, the group box's children are enabled; otherwise, the children are disabled and are inaccessible to the user.

By default, checkable group boxes are also checked.

Access functions:

bool isChecked() const
void setChecked(bool checked)

Notifier signal:

void toggled(bool on)

See also checkable.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#checked

childEvent

childEvent(event: Any) -> None

X.childEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::childEvent(QChildEvent *c)

Reimplements: QObject::childEvent(QChildEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

childEvent(self, event: PySide2.QtCore.QChildEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#childEvent

clicked

clicked(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.clicked; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGroupBox::clicked(bool checked \= false)

This signal is emitted when the check box is activated (i.e., pressed down then released while the mouse cursor is inside the button), or when the shortcut key is typed. Notably, this signal is not emitted if you call setChecked().

If the check box is checked, checked is true; it is false if the check box is unchecked.

This function was introduced in Qt 4.2.

See also checkable, toggled(), and checked.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#clicked

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.destroyed; argument details are not documented.

event

event(event: Any) -> bool

X.event(event) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QGroupBox::event(QEvent *e)

Reimplements: QWidget::event(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, event: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#event

flat instance-attribute

flat: Any

Qt 5 reference:

flat : bool

This property holds whether the group box is painted flat or has a frame

A group box usually consists of a surrounding frame with a title at the top. If this property is enabled, only the top part of the frame is drawn in most styles; otherwise, the whole frame is drawn.

By default, this property is disabled, i.e., group boxes are not flat unless explicitly specified.

Note: In some styles, flat and non-flat group boxes have similar representations and may not be as distinguishable as they are in other styles.

Access functions:

bool isFlat() const
void setFlat(bool flat)

See also title.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#flat

focusInEvent

focusInEvent(event: Any) -> None

X.focusInEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::focusInEvent(QFocusEvent *fe)

Reimplements: QWidget::focusInEvent(QFocusEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

focusInEvent(self, event: PySide2.QtGui.QFocusEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#focusInEvent

initStyleOption

initStyleOption(option: Any) -> None

X.initStyleOption(option)

Supplemental documentation: Qt 5 reference:

[protected] void QGroupBox::initStyleOption(QStyleOptionGroupBox *option) const

Initialize option with the values from this QGroupBox. This method is useful for subclasses when they need a QStyleOptionGroupBox, but don't want to fill in all the information themselves.

See also QStyleOption::initFrom().

Upstream PySide2 reference signatures (binding differences may apply):

initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionGroupBox) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#initStyleOption

isCheckable

isCheckable() -> bool

X.isCheckable() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isCheckable(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#isCheckable

isChecked

isChecked() -> bool

X.isChecked() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isChecked(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#isChecked

isFlat

isFlat() -> bool

X.isFlat() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isFlat(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#isFlat

minimumSizeHint instance-attribute

minimumSizeHint: QSize

Qt 5 reference:

[override virtual] QSize QGroupBox::minimumSizeHint() const

Reimplements an access function for property: QWidget::minimumSizeHint.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#minimumSizeHint

mouseMoveEvent

mouseMoveEvent(event: Any) -> None

X.mouseMoveEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::mouseMoveEvent(QMouseEvent *event)

Reimplements: QWidget::mouseMoveEvent(QMouseEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

mouseMoveEvent(self, event: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#mouseMoveEvent

mousePressEvent

mousePressEvent(event: Any) -> None

X.mousePressEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::mousePressEvent(QMouseEvent *event)

Reimplements: QWidget::mousePressEvent(QMouseEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#mousePressEvent

mouseReleaseEvent

mouseReleaseEvent(event: Any) -> None

X.mouseReleaseEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::mouseReleaseEvent(QMouseEvent *event)

Reimplements: QWidget::mouseReleaseEvent(QMouseEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

mouseReleaseEvent(self, event: PySide2.QtGui.QMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#mouseReleaseEvent

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.objectNameChanged; argument details are not documented.

paintEvent

paintEvent(event: Any) -> None

X.paintEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::paintEvent(QPaintEvent *event)

Reimplements: QWidget::paintEvent(QPaintEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, event: PySide2.QtGui.QPaintEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#paintEvent

resizeEvent

resizeEvent(event: Any) -> None

X.resizeEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGroupBox::resizeEvent(QResizeEvent *e)

Reimplements: QWidget::resizeEvent(QResizeEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

resizeEvent(self, event: PySide2.QtGui.QResizeEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#resizeEvent

setAlignment

setAlignment(alignment: int) -> None

X.setAlignment(alignment)

Upstream PySide2 reference signatures (binding differences may apply):

setAlignment(self, alignment: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#setAlignment

setCheckable

setCheckable(checkable: bool) -> None

X.setCheckable(checkable)

Upstream PySide2 reference signatures (binding differences may apply):

setCheckable(self, checkable: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#setCheckable

setChecked

setChecked(checked: bool) -> None

X.setChecked(checked)

Upstream PySide2 reference signatures (binding differences may apply):

setChecked(self, checked: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#setChecked

setFlat

setFlat(arg0: flat) -> None

X.setFlat(flat)

Upstream PySide2 reference signatures (binding differences may apply):

setFlat(self, flat: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#setFlat

setTitle

setTitle(title: str) -> None

X.setTitle(title)

Upstream PySide2 reference signatures (binding differences may apply):

setTitle(self, title: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#setTitle

title instance-attribute

title: str

Qt 5 reference:

title : QString

This property holds the group box title text

The group box title text will have a keyboard shortcut if the title contains an ampersand ('\&') followed by a letter.

g->setTitle("&User information");

In the example above, Alt+U moves the keyboard focus to the group box. See the QShortcut documentation for details (to display an actual ampersand, use '\&\&').

There is no default title text.

Access functions:

QString title() const
void setTitle(const QString \&title)

See also alignment.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#title

toggled

toggled(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.toggled; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGroupBox::toggled(bool on)

If the group box is checkable, this signal is emitted when the check box is toggled. on is true if the check box is checked; otherwise, it is false.

Note: Notifier signal for property checked.

See also checkable.

Source: https://doc.qt.io/archives/qt-5.15/qgroupbox.html#toggled

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGroupBox.windowTitleChanged; argument details are not documented.