Hi! I'm having an issue with qt layouting system.

I noticed that if my layout contains qlabel with wordwrap turned on and if text in this label is long enough to become splitted to several lines, then all sizehints of child widgets start to be ignored (it seems) - I can resize widget to be as small as i want - up to having it to disappear (with only window caption left)!

Is this a bug or something I am missing?

To reproduce simply do the following:

1. Create a widget in designer
2. Put QLabel and QLineEdit to it. Turn word wrap on in QLabel props.
3. Put them in vertical layout (widget wide)
4. Enter some space separated words in QLabel so they make new line appear
5. Press Ctrl-R (preview) and try to resize widget to be small - size hints are ignored!

Note that this bug appears only while previewing widget in designer or running actual code using it - when you're just editing it in designer - it handles all resizing correctly and doesn't allow you to resize widget less than it's minimumSizeHint().

What do you think? is this a bug?
I'm seeing this in qt 4.3.1