How to always fix the button to the right side using QtDesigner?
-
@_jao_victor_
And the "red no entry" symbol Designer shows on theQFrame
warns you that it needs a layout. -
@mpergand said in How to always fix the button to the right side using QtDesigner?:
@_jao_victor_
Put the bottom bar and the button in a horizontal layout.Then if you want the button on the right, I can't remember whether the layout allows you to right align, or put a stretch to the left if not.
-
@JonB said in How to always fix the button to the right side using QtDesigner?:
I can't remember whether the layout allows you to right align,
Yes you can.
Now, this bottom bar ressembles very much to a QStatusBar in a QMainWindow and you can add any widget to it with:
addPermanentWidget(QWidget *widget, int stretch = 0) -
now the button is central
-
@_jao_victor_
Right-click on the button and choose :
Layout Alignment->Right -
This post is deleted!