Compatibility Members for QCheckBox

The following members of class QCheckBoxare part of the Qt compatibility layer. 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().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.