[Solved] Layout issue



  • Hi,

    I want layout a QLabel,QLineEdit and QComboBox in a QHboxLayout where QLable occupying only the minimum size, QLineEdit and QComboBox occupying the rest of the space equivalently. But when I add them to the layout, the label takes only the minimum size, but in space left, the lineedit occupies 80% of the space and the combo is having only 20% of space.

    How to make combo and textedit share the space in a 50-50 manner?

    Thanks,
    Lloyd



  • Try using the Horizontal Stretch value, and set them equal for both. You can find it under the Size Policy group in the properties in Designer.



  • Thank you , it worked...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.