You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Guest

Unregistered

1

Monday, February 7th 2005, 4:10pm

Layout inside a QGroupBox don't work

i'm trying to layout vertically a set of QFrame inside a QGroupBox but it don't work on coding neither in QtDesigner.

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

2

Monday, February 7th 2005, 5:11pm

RE: Layout inside a QGroupBox don't work

What do you mean by "it doesn't work"?
Are these widgets childs of the groupbox?

Guest

Unregistered

3

Monday, February 7th 2005, 5:20pm

yes i'm trying to layout vertically a set of QFrame(s) inside a QGroupBox. every QFrame is a child of this QGroupBox.
if i add 3 QFrame child to a QGroupBox then layout them vertically i got only 3 lines !! also if i fill every QFrame with some contents.

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

4

Monday, February 7th 2005, 5:25pm

You have to lay out the frames first as they get shrunk when you lay out the groupbox, because their minimum size allowed is 0. So:

1. Insert QGroupBox onto the form.
2. Insert QFrames into the groupbox.
3. Insert widgets into the frames.
4. Apply a layout to each frame.
5. Apply a layout to the groupbox.
6. Smile, as everything worked fine ;)

Guest

Unregistered

5

Monday, February 7th 2005, 5:41pm

Thank you it worked

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

6

Monday, February 7th 2005, 5:50pm

Quoted

Originally posted by Guest
Thank you it worked


Did you remember to smile? :)