40 QHBoxLayout *boxLayout =
new QHBoxLayout;
41 boxLayout->addWidget(
cb_one);
42 boxLayout->addWidget(
cb_two);
43 boxLayout->setContentsMargins(0,0,0,0);
44 boxLayout->setSpacing(2);
45 QHBoxLayout *Final =
new QHBoxLayout;
46 Final->addWidget(
label);
47 Final->addLayout(boxLayout);
48 Final->setContentsMargins(0,0,0,0);
49 this->setLayout(Final);
61 case 1:
cb_one->setChecked(checked);
break;
62 case 2:
cb_two->setChecked(checked);
break;
70 case 1:
return cb_one->isChecked();
break;
71 case 2:
return cb_two->isChecked();
break;
72 default:
return false;
break;
82 case 1:
cb_one->setToolTip(text);
break;
83 case 2:
cb_two->setToolTip(text);
break;
void box2_toggled(bool checked)
Signal: box2 has had its state changed.
void box1_toggled(bool checked)
Signal: box1 has had its state changed.
bool checked(int box)
check if a box has been checked .
void setToolTip(QString text)
Set the tooltip for the widget.
void setChecked(int box, bool checked)
set if a box is checked
void setText(QString text)
set the text displayed
void cb_one_toggled(bool checked)
void setBoxToolTip(int box, QString text)
Set the tooltip for a checkbox.
DoubleCheckBox(qreal Scale=1, QWidget *parent=0)
create a new empty Double Checkbox
void cb_two_toggled(bool checked)