I’m trying to set a custom spacing between just the first line and the second and all other lines should have the same line spacing.
image
QTextEdit* textEdit = new QTextEdit;
QTextDocument* doc = new QTextDocument;
QString html = R"(
<p><span style="line-height: 10px;"><font style="font-size: 11px; color: rgba(255, 0, 0, 255);"> world — 05/04/2024 3:15 PM </font></span></p>
<br>green
<br>blue
)";
doc->setHtml(html);
I have tried line-height
but independent of the value i insert the space between the lines continue the same.
New contributor
Ruan Sebastian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.