PDA

View Full Version : Layouts and form resizing



Chisum
1st April 2009, 23:32
I have been studying some of the examples and demos as a way to learn about Qt and Qt Creator. My initial goal is to design a dialog. When I preview the dialog, I want the two buttons in the lower right corner to maintain their positions relative to the lower right corner of the dialog. I am not having much luck with this effort.

I have included the qsqlconnectiondialog.ui file from the Sqlbrowser demo to demonstrate my problem. When I look at the properties of the objects in this file, the dialog has a layout section at the bottom. How do I get this in mydialog.ui?

I would sincerely appreciate any help

Gary

wysota
2nd April 2009, 00:58
You need to click on the form and apply one of the layouts (from the toolbar on the top of the Designer window) to the whole form. In your case you will also need a vertical spacer (the blue spring) to push the button box to the bottom edge of the form.