Thanks,
works perfectly in that way:
status_frame
->setFrameStyle
(QFrame::Panel |
QFrame::Sunken);
layout->setContentsMargins(0, 0, 0, 0);
bar->setMaximumHeight(10);
bar->setMaximumWidth(100);
box->setChecked(true);
layout->addWidget(bar);
layout->addWidget(box);
ui->statusBar->insertWidget(5, status_frame);
QFrame *status_frame = new QFrame();
status_frame->setFrameStyle(QFrame::Panel | QFrame::Sunken);
QHBoxLayout *layout = new QHBoxLayout(status_frame);
layout->setContentsMargins(0, 0, 0, 0);
QProgressBar *bar = new QProgressBar(status_frame);
bar->setMaximumHeight(10);
bar->setMaximumWidth(100);
QCheckBox *box = new QCheckBox(tr("Check Mode"), status_frame);
box->setChecked(true);
layout->addWidget(bar);
layout->addWidget(box);
ui->statusBar->insertWidget(5, status_frame);
To copy to clipboard, switch view to plain text mode
Bookmarks