Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
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?