Hi,
I have following problem:
I would like to add to status bar custom widgets (mainly qlabels) with setFrameStyle setup. At the rigth corner there should be checkbox + progress bar which have also frame but both of them. I try it this way (just for testing) but widgets (btn and btn1) aren't displayed. There exist some way how to do this cleanly? 
ui->statusBar->addWidget(lbl);
frame->setGeometry(50,-2,100,15);
btn->setText("This is button");
btn1->setText("This is button 1");
QLabel *lbl = new QLabel("Label");
lbl->setFrameStyle(QFrame::Sunken | QFrame::Box);
ui->statusBar->addWidget(lbl);
QFrame *frame = new QFrame();
frame->setFrameStyle(QFrame::Sunken | QFrame::Box);
frame->setGeometry(50,-2,100,15);
QPushButton *btn = new QPushButton(frame);
btn->setText("This is button");
QPushButton *btn1 = new QPushButton(frame);
btn1->setText("This is button 1");
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks