I am working in Qt Creator, and I notice the 4 types of layouts. But did they every mess up my layout. Maybe I need a better place on describing the layout then the help files.
I am working in Qt Creator, and I notice the 4 types of layouts. But did they every mess up my layout. Maybe I need a better place on describing the layout then the help files.
In my experience designer is good for simple layouting. If you need complex stuff (e.g. excessive column or row spanning) you really should code it yourself.
Qt Code:
layout->addWidget(b, 0, 0, 1, 1); this->setLayout(layout);To copy to clipboard, switch view to plain text mode
Last edited by franz; 27th September 2009 at 20:42. Reason: updated contents
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields
Ask Smart Questions
You probably just used them incorrectly. The most important thing to remember is that you apply layouts to parent of the widgets you want to be controlled. So at least you have to apply the layout to the form itself by clicking inside it (so that no other widgets are selected) and clicking one of the layout icons in the toolbar. Of course you can nest layouts by applying a layout to a subset of widgets first and then on the top-level form.
Bookmarks