Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Align elements in QHBoxLayout
-
http://ompldr.org/vOTNycQ/tabbar.png
On the picture — QToolBar with QAction, QTabBar and QToolBar with QToolBar and QAction. All of them are placed inside QHBoxLayout. One can see on the picture that QAction and QToolBar are located a little bit lower than QTabBar. Is it possible to align them? I mean raise slightly QToolBar's or raise QAction in order to make them more tidy.
-
Each layout has many margins available. You could use multiple QHBoxLayout's for QTabBar and QToolBar.. and try and align them by adjusting the margins..
-
Don't work.
-
Try to Align QToolBar vertically:
@QHBoxLayout::addWidget(widget, int stretch, Qt::AlignVCenter)@