PDA

View Full Version : auto resizing widgets in QT?



Gediminas2
April 16th, 2009, 03:32 PM
Hello everybody,

Still doing my little project and I done most of what I wanted.
just a few little things I need to take care of. I spent nearly two hours googling for answers, and it seems I can't formulate my questions right.
So I'll try showing and asking.

Normally my program window looks like this:
http://www.ipix.lt/thumbs/57161303.jpg (http://www.ipix.lt/desc/57161303)

When i resize the window (in this case maximize), it looks like this:
http://www.ipix.lt/thumbs/51895928.jpg (http://www.ipix.lt/desc/51895928)

I would like it to look something like this:
http://www.ipix.lt/thumbs/77360151.jpg (http://www.ipix.lt/desc/77360151)

now I don't know how to do that.
IIRC in borland c++ builder (we used it in the first semester) the components had a property called anchor. I could not find anything similar.