15 #include <QPushButton> 16 #include <QRadioButton> 22 QBoxLayout *mainLayout =
new QVBoxLayout(
this);
23 QRadioButton *radio1 =
new QRadioButton(
"change the masked pixels by value: ",
this);
24 QRadioButton *radio2 =
new QRadioButton(
"set the masked pixels to value: ",
this);
26 radio1->setChecked(
true);
29 connect(radio2, SIGNAL(toggled(
bool)),
this, SLOT(
SetFixedValueOn(
bool)));
31 mainLayout->addWidget(radio1);
32 mainLayout->addWidget(radio2);
34 m_Slider =
new QSlider(Qt::Horizontal,
this);
46 QBoxLayout *layout1 =
new QHBoxLayout();
50 QPushButton *okButton =
new QPushButton(
"Ok");
54 mainLayout->addLayout(layout1);
55 mainLayout->addWidget(okButton);