[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?


    I tried to use this stylesheet but unfortunately it didn't work!
    [code]QStatusBar > QWidget {
    border: none;

    BTW I added these widgets as following:

  • Qt Champions 2017

    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;
    a.setStyleSheet("QStatusBar::item { border: 0px solid black }; ");

  • thank you Dheerendra I used the stylesheet suggestion.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.