Unsolved Center aligment problem of tablewidget
-
When in run my application, i got this :
But i want all item to be align on the center of the window
I tried to do this:
But it doesn't work!
Thank you!
This is what it looks like without spacer:
-
Hi,
Looks like your widgets are not part of the horizontal layout.
-
@fres
Are you aware that you have the board's white & black squares in the wrong places for chess??!! :) -
@SGaist I did change alittle bit, but it didn't work . I don't know what's wrong ?
-
See here for the documentation on how to use layouts in designer.
-
@fres I feel Horizontal spacer is not set properly.
First Apply Layout to the things(sidebar1,Chessboard,sidebar2) which you want to be at the center of the widget.
Then set Horizontal layout with HSpacerLeft + Centercontent + HSpacerRight