Quote Originally Posted by MorrisLiang View Post
I try, it doesn't work. I call updateContent() to change the sizehint before I insert the widget to the layout
Did I say anything about "updateContent()"? If you ever call resize(sizeHint()) then it almost always means you are doing something wrong.