2

How can we set Qt Layout contents' auto-fit/auto-resize options? Even when I try to use setSizePolicy method with QSizePolicy::Expanding argument, it doesn't work.

Thanks.

Dehumanizer
  • 284
  • 1
  • 3
  • 14
  • check this if it can help - http://stackoverflow.com/questions/6337589/qlistwidget-adjust-size-to-content/ – Raj Jun 28 '11 at 13:09

1 Answers1

2

Is your setSizePolicy applied on the objects which are added to layout?

Mason Zhang
  • 3,423
  • 24
  • 35