Qt Reference Documentation

Qt 3 Support Members for QCheckBox

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Types

enum ToggleState { Off, NoChange, On }

Public Functions

QCheckBox ( QWidget * parent, const char * name )
QCheckBox ( const QString & text, QWidget * parent, const char * name )
void setNoChange ()
void setState ( ToggleState state )
ToggleState state () const

Member Type Documentation

enum QCheckBox::ToggleState

ConstantValueDescription
QCheckBox::OffQt::UncheckedUse Qt::Unchecked instead.
QCheckBox::NoChangeQt::PartiallyCheckedUse Qt::PartiallyChecked instead.
QCheckBox::OnQt::CheckedUse Qt::Checked instead.

Member Function Documentation

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

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

QCheckBox::QCheckBox ( const QString & text, QWidget * parent, const char * name )

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

void QCheckBox::setNoChange ()

Use setCheckState() instead.

void QCheckBox::setState ( ToggleState state )

Use setCheckState() instead.

See also state().

ToggleState QCheckBox::state () const

Use checkState() instead.

See also setState().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.