1

Topic: Alignment

Good afternoon, it would be desirable to understand, is available QTAbWidget, in it QHBoxLayout, in it are located sequentially  with buttons (QToolButton), the picture is attached. From it it is visible that in button section 2 are lifted from lower bound on some value, and in section 1 and 3, buttons are pressed to boundary, if I display the text (to display the text under an icon), all  and if I remove the text and I do only icon display on I align sections differ. Sections are implemented by identical functions.

2

Re: Alignment

Hello, TOPAZ23, you wrote: TOP> Good afternoon, it would be desirable to understand, is available QTAbWidget, in it QHBoxLayout, in it are located sequentially  with buttons (QToolButton), the picture is attached. Show the code,  it is not clear.

3

Re: Alignment

Hello, TOPAZ23, you wrote: TOP> Good afternoon, it would be desirable to understand, is available QTAbWidget, in it QHBoxLayout, in it are located sequentially  with buttons (QToolButton), the picture is attached. TOP> from it it is visible that in button section 2 are lifted from lower bound on some value, and in section 1 and 3, buttons are pressed to boundary, if I display the text (to display the text under an icon), all  and if I remove the text and I do only icon display on I align sections differ. Sections are implemented by identical functions. TOP> Image: TabBar.jpg to climb in code Qt religion does not allow? And generally, it is impolite, to come, ask, receive the answer and completely to ignore. Neither "thanks helped", nor "made on another"...

4

Re: Alignment

Hello, TOPAZ23, you wrote: TOP> Good afternoon, it would be desirable to understand, is available QTAbWidget, in it QHBoxLayout, in it are located sequentially  with buttons (QToolButton), the picture is attached. TOP> from it it is visible that in button section 2 are lifted from lower bound on some value, and in section 1 and 3, buttons are pressed to boundary, if I display the text (to display the text under an icon), all  and if I remove the text and I do only icon display on I align sections differ. Sections are implemented by identical functions. TOP> Image: TabBar.jpg most likely business in the current selected tab, it is possible to try with qss to be played QTabWidget:: tab:disabled {width: 0; height: 0; margin: 0; padding: 0; border: none;} QTabWidget QTabBar:: tab {min-height: 40px;} QTabWidget QTabBar:: tab:! selected {background-color: #E5E7EA;} QTabWidget QTabBar:: tab:selected {border-bottom: 3px solid #ff8a2c; background-color: #ffffff;}