PDA

View Full Version : sizing question



jlgerber
20th November 2006, 17:05
Lets say i am putting together a pannel of labels and spin boxes.
each line will be be a QHBoxLayout with a child QLabel and QSpinBox. Many of these lines will be added to a QVBoxLayout. How do i go about changing the minimum spacing between the lines? do i have to adjust both the individual components and the QHBoxLayouts?

thanks
jonathan

jpn
20th November 2006, 17:48
You can adjust the margin (http://doc.trolltech.com/4.2/qlayout.html#margin-prop) property of QHBoxLayout's and the spacing (http://doc.trolltech.com/4.2/qlayout.html#spacing-prop) property of the QVBoxLayout.