How to align pushbutton
Hello, how i can i allign my pushbutton in the centre of the mainwindow ? ive been googling for a while, and didnt find any answer…
also, i would like to have my button in the centre of the window even if the window is resized…
Best regards,
OSiRiS
5 replies
See How to center a window on the screen [developer.qt.nokia.com]
But instead of desktop available geometry, use button parent geometry.
Hello, how i can i allign my pushbutton in the centre of the mainwindow ? ive been googling for a while, and didnt find any answer…
also, i would like to have my button in the centre of the window even if the window is resized…Best regards,
OSiRiS
Do you mean like using a layout? Otherwise, can you elaborate?
You must log in to post a reply. Not a member yet? Register here!


