I have QMainWindow and I want to populate statusbar with buttons.
I achieve this by using the code:
QWidget *widget = new QWidget();
QPushButton *leftBut = new QPushButton("left");
QPushButton *rightBut = new QPushButton("right");
QHBoxLayout *layout = new QHBoxLayout(widget);
layout->addWidget(leftBut, 1, 0);
layout->addWidget(rightBut, 1, 0);
so, I have this: MainWindow with buttons in statusbar
But you can see that right border of layout are far from window corner, not like on the left side.
What I want is to make window look symmetric (move right border right or make borders invisible or something else).