16,216
社区成员
发帖
与我相关
我的任务
分享
QObject::connect(box1,SIGNAL(valueChanged(int)),slider1,SLOT(setValue(int)));
QObject::connect(slider1,SIGNAL(valueChanged(int)),box2,SLOT(setValue(int)));
QObject::connect(box2,SIGNAL(valueChanged(ing)),slider2,SLOT(setValue(int)));
QHBoxLayout *lay=new QHBoxLayout;
QVBoxLayout *veh=new QVBoxLayout;
lay->addWidget(box1);
lay->addWidget(slider1);
veh->addWidget(box2);
veh->addWidget(slider2);
get->setLayout(lay);
get->setLayout(veh);
box1->setValue(35);
get->show();
return a.exec();