QGroupBox Class Reference


The QGroupBox widget provides a group box frame with a title. (details) (complete member list)

#include <qgrpbox.h>

Inherits QFrame.

Inherited by QButtonGroup.

Public Members

Protected Members


Detailed Description

The QGroupBox widget provides a group box frame with a title.

A group box is a widget with a frame and a title. The intended use of a group box is to show that a number of widgets (i.e. child widgets) are logically related.

The button group widget, QButtonGroup, is an "intelligent" group box that is very useful for organizing button widgets in a group.


Member Function Documentation

QGroupBox::QGroupBox (QWidget *parent=0, const char *name=0)

Constructs a group box widget with no title.

The parent and name arguments are passed to the QWidget constructor.

QGroupBox::QGroupBox (const char *title, QWidget *parent=0, const char *name=0)

Constructs a group box with a title.

The parent and name arguments are passed to the QWidget constructor.

int QGroupBox::alignment () const

Returns the alignment of the group box title.

The default alignment is AlignHCenter.

See also: setAlignment().

void QGroupBox::paintEvent (QPaintEvent *)

Internal; paints the group box.

void QGroupBox::setAlignment (int alignment)

Sets the alignment of the group box title.

The title is always placed on the upper frame line, however, the horizontal alignment can be specified by the alignment parameter.

The alignment is the bitwise OR of the following flags:

See also: alignment().

void QGroupBox::setTitle (const char *title)

Sets the group box title text to title.


This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech