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?

Qt Code:
  1. QLabel *lbl = new QLabel("Label");
  2. lbl->setFrameStyle(QFrame::Sunken | QFrame::Box);
  3. ui->statusBar->addWidget(lbl);
  4.  
  5.  
  6. QFrame *frame = new QFrame();
  7. frame->setFrameStyle(QFrame::Sunken | QFrame::Box);
  8. frame->setGeometry(50,-2,100,15);
  9.  
  10. QPushButton *btn = new QPushButton(frame);
  11. btn->setText("This is button");
  12.  
  13. QPushButton *btn1 = new QPushButton(frame);
  14. btn1->setText("This is button 1");
To copy to clipboard, switch view to plain text mode 

Thanks