QCheckBox Class Reference


The QCheckBox widget provides a check box with a text label. (details) (complete member list)

#include <qchkbox.h>

Inherits QButton.

Public Members

Protected Members


Detailed Description

The QCheckBox widget provides a check box with a text label.

QCheckBox and QRadioButton are both toggle buttons, but a check box represents an independent switch that can be on (checked) or off (unchecked).


Member Function Documentation

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

Constructs a check box with no text.

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

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

Constructs a check box with a text.

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

void QCheckBox::adjustSize ()

Adjusts the size of the check box to fit the contents.

This function is called automatically whenever the contents change and auto-resizing is enabled.

See also: setAutoResizing()

bool QCheckBox::isChecked () const

Returns TRUE if the check box is checked, or FALSE if it is not checked.

See also: setChecked().

void QCheckBox::setChecked (bool checked)

Checks the check box if checked is TRUE, or unchecks it if checked is FALSE.

See also: isChecked().


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

It was generated from the following files:


Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech