Compatibility Members for QCheckBox

以下成員源於類 QCheckBox are part of the Qt compatibility layer. We advise against using them in new code.

公共類型

enum ToggleState { Off, NoChange, On }

公共函數

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

成員類型文檔編製

enum QCheckBox:: ToggleState

常量 描述
QCheckBox::Off Qt::Unchecked 使用 Qt::Unchecked 代替。
QCheckBox::NoChange Qt::PartiallyChecked 使用 Qt::PartiallyChecked 代替。
QCheckBox::On Qt::Checked 使用 Qt::Checked 代替。

成員函數文檔編製

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

Use one of the constructors that doesn't take the name argument and then use setObjectName () 代替。

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 () 代替。

void QCheckBox:: setNoChange ()

使用 setCheckState () 代替。

void QCheckBox:: setState ( ToggleState state )

使用 setCheckState () 代替。

另請參閱 state ().

ToggleState QCheckBox:: state () const

使用 checkState () 代替。

另請參閱 setState ().