Have you tried simply using Expanding size policy for the widget and putting it in a layout manager? I'm not really sure what the problem is What is that you are trying to obtain and what you have now.