Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, February 2007
Layout Problem


Message 1 in thread

Salutations All,

First off, I am not unfamiliar with layout systems (specifically, from Java) and Iâm not completely unfamiliar with Qt (weâve been a commercial Console Edition licensee for a while, just recently upgraded to Desktop Edition).

Iâm trying to lay out a two by four grid of labels and text boxes (a standard data entry grid) against a QGraphicsView. I want the textboxes to get as much space as possible with the QGraphicsView getting the least amount of space. Iâve been trying this in Designer, and I invariably get non-standard spacing between the LineEdits (vertically). Iâve set the SizePolicy on the LineEdits to MinimumExpanding (hoping theyâd eat all the space they could horizontally) and the SizePolicy on the QGraphicsView to Minimum. Whenever I lay the controls out, I invariably get something completely unwanted.

Now, Iâm using Designer; Iâve not tried this by hand (and would really prefer to keep using designer). Weâve got artsy-fartsy folk here who actually do most of our UI work for us, and when they couldnât get the dialog to lay out properly they engaged yours truly.

Any assistance is most appreciated, and apologies if the question is a dumb one. :)

Regards,
Bryan Porter