42 sectionLabel =
new QLabel(
this);
43 sectionLabel->setText(tr(
"Test Section"));
44 sectionLabel->setObjectName(QString::fromUtf8(
"sectionTitle"));
48 line->setObjectName(QString::fromUtf8(
"line"));
49 line->setMaximumHeight(3);
50 line->setMinimumHeight(3);
51 line->setFrameShape(QFrame::HLine);
52 line->setFrameShadow(QFrame::Sunken);
55 sectionLayout =
new QGridLayout();
56 sectionLayout->addWidget(sectionLabel,0,0);
57 sectionLayout->addWidget(line,1,0,1,2);
59 sectionLayout->setMargin(0);
61 this->setLayout(sectionLayout);
62 this->setContentsMargins(0,0,0,0);
67 sectionLabel->setText(s);
71 sectionLayout->addWidget(theWidget, 0, 1);
SectionTitle(QWidget *parent=0)
void addWidget(QWidget *theWidget)