PDA

View Full Version : How to get more than one column in a QGridLayout using the designer?



orfner
7th April 2011, 21:26
It's probably something really simple that I missed, but I can't for the life of me figure out how to get more than one column in a QGridLayout. Every item I add just gets added as another row in the single column. I couldn't find any settings that specify which row / column an item should be placed in.

I know that I can edit the associated XML document to manually place items in a specific row / column. However the XML is locked for editing in QT so I would have to open it in notepad or something, and I would rather find an easier / quicker solution that actually uses the designer.

Zlatomir
7th April 2011, 22:18
Drag the widgets to the right margin of the form until you see a vertical blue line and then drop the widget - it will be placed on a new column ;)