Hi,

This is probably a very basic question but I can't seem to find the correct way to make it work. I have a QWidget with a horizontal layout, in the layout among other controls is a QLabel. When the text of this label is longer than the widget of the widget, the parent widget is resized to accommodate the text. What I would like is the widget to remain the same size and the text just overflow.

I can set the parent QWidget size policy to 'Fixed' but the parent QWidget sits in another layout that can be resized.

So in essence, what I need to do is force the child QLabel width to never expand beyond the parent QWidget width.

How can I achieve that?

Thanks.