I’m trying to set padding to a specific direction for an image being rendered on a QTextDocument, but it ain’t working, the image is being drawn with no padding.
I have tried these two ways:
QString html = "hello world <img src=":/logos/logo.png""
"width="16" height="16" style="padding-top:10px;"/>";
QString html = "hello world <span style="padding-top:10px; display: inline-block;">"
"<img src=":/logos/logo.png" width="24" height="24"/></span>";
The QTextDocument documentation says it supports padding, what could be wrong?