QLabel sizeHint without images



  • Hi, everybody
    I have a problem regarding QLabel. I rely on sizeHint() to determine the preferred height of a QLabel with word warp enabled. The problem comes when I try to add image tags (like <img >) to the text. the sizeHint().height() explodes to more than twice the actual required space.
    How can I compute a real measure of the sizehint disregarding img tags?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.