Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

QLabel sizeHint without images

$
0
0
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?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>