[SOLVED]Styling widgets of statusbar
-
Hello,
As show in the screenshot you can find that all statusbar widgets have bars at left. How can I get rid of these bars?
!http://i.share.pho.to/d84c03d5_o.jpeg(http://i.share.pho.to/d84c03d5_o.jpeg)!
I tried to use this stylesheet but unfortunately it didn't work!
[code]QStatusBar > QWidget {
border: none;
}[/code]BTW I added these widgets as following:
[code]ui->statusBar->addWidget(ui->label_user);
ui->statusBar->addWidget(ui->label_loggedAt);
ui->statusBar->addWidget(ui->label_serverIP);
ui->statusBar->addWidget(ui->label_analysisCount);
ui->statusBar->addWidget(ui->label_patientsCount);
ui->statusBar->addWidget(ui->label_todoCount);[/code] -
You can get all the text and make it as one string and set it as status message. This way you don't have to add widget to StatusBar.
Or you can use stylesheet like the following.
@
QApplication a(argc, argv);
MainWindow w;
w.show();
a.setStyleSheet("QStatusBar::item { border: 0px solid black }; ");
@ -
thank you Dheerendra I used the stylesheet suggestion.