box->setGeometry(5,5,myFrame->width()-10, myFrame->height()-10);
box->setTitle("title");
wid
->setGeometry
(QRect (20,
20,
100,
50));
wid
->setBackgroundColor
(QColor (10,
100,
50));
wid0
->setGeometry
(QRect (0,
0,
5,
20));
c0
->setBackgroundColor
(QColor (10,
100,
50));
l0->setText("l0");
l0
->setBackgroundColor
(QColor (100,
1,
150));
vlay0->addWidget(c0);
vlay0->addWidget(l0);
hlay->addWidget(wid0);
QGroupBox* box = new QGroupBox (myFrame);
box->setGeometry(5,5,myFrame->width()-10, myFrame->height()-10);
box->setTitle("title");
QWidget* wid = new QWidget(box);
QWidget* wid0 = new QWidget(wid);
wid->setGeometry(QRect (20,20,100,50));
wid->setBackgroundColor(QColor (10,100,50));
wid0->setGeometry(QRect (0,0,5,20));
QBoxLayout* hlay = new QHBoxLayout (wid);
QCheckBox* c0 = new QCheckBox(wid0);
c0->setBackgroundColor(QColor (10,100,50));
QVBoxLayout* vlay0 = new QVBoxLayout (wid0);
QLabel* l0 = new QLabel (wid0);
l0->setText("l0");
l0->setBackgroundColor(QColor (100,1,150));
vlay0->addWidget(c0);
vlay0->addWidget(l0);
hlay->addWidget(wid0);
To copy to clipboard, switch view to plain text mode
Bookmarks