October 27, 2011

pratipm pratipm
Lab Rat
1 posts

[Moved] Question on Qt 4 Designer with BoxLayout

 

Hi,

I want my top form a VerticalLayout inside which I want to put a window as the first widget (to draw), a horizontal separator, and then a Horizontal layout which will contain multiple widgets each of which will contain either Vertical or Horizontal layout of other widgerts. What do I have to do to get this in QT Designer?

I can do this very easily using Glade, but cannot figure out how to do this in Designer. Any time I add BoxLayout type inside another BoxLayout, it tries to occupy the whole space and does not let a sibling widget being inserted. What am I doing wrong?
Thanks in advance.

1 reply

October 28, 2011

Volker Volker
Ant Farmer
5428 posts

[Moved this to the Tools subforum]

You should add the layouts from the most inner to the outside, not the other way round. Maybe you need to break the outer layout, add the inner layout and re-add the outer layout.

 
  ‹‹ [Moved] Using Qt Creator with 4.8 RC1      QtCreator: The only choice is git... ››

You must log in to post a reply. Not a member yet? Register here!