PDA

View Full Version : QVBoxLayout and QHBoxLayout problem



fmariusd
8th January 2009, 16:43
Hi i a have QVBoxLayout with many QHBoxLayouts
and sometimes i have a QVBoxLayout with 3 QHBoxLayouts and then i want
the same QVBoxLayout to have 2 QHBoxLayouts and want the previous 3 QHBoxLayout s to disappear

The problem is they are not and the widgets inserted int the QHBoxLayouts get one uppon the other (overdraw them self) kindof....

if u could give an ideea how to do this , i tried deleting the QvBoxLayout pointer but it is not working
Thanks

divya balachandran
10th January 2009, 10:06
HI,

You can create two QVBox Layouts and u can use as u need either with 3 QHBox or with 2 QHBox..

drhex
10th January 2009, 21:58
Maybe it is easier to use QGridLayout, which also can handle widgets covering several rows/columns?