[Interest] Problem sizing a QWidget

william.crocker at analog.com william.crocker at analog.com
Mon Apr 6 23:41:53 CEST 2015


>
> I know this is not the correct way to go, and is quite inefficient but I
> could not find another way.
> Would anyone have some suggestion on how to handle this correctly?
> Any help would be greatly appreciated.
>

Looks like I did this at some point in the past:

 
m_Label->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::MinimumExpanding);

    ...

    m_Label->setText(t);
    m_Label->adjustSize()

Bill



More information about the Interest mailing list