Important: Please read the Qt Code of Conduct -

TabBar and TabButton vertical alignment

  • If I try to set the vertical position and size of my TabButtons relative to the containing TabBar, it somehow moves them vertically a few pixels. I could compensate for that except that it moves them different amounts in diifferent directions for different sizes. If I enlarge my window and resize everything, the buttons wind up moved upward relative to the bar; if I make the window and everything in it small, the buttons wind up somewhat lower than the bar.

    Does anyone know how to tame these buttons? I really want them to be aligned a certain way, so that there's a one pixel gap between the bottom of the buttons and the size of the StackLayout I'm using beneath the TabBar. But nothing I do works at all sizes.

Log in to reply