QTextEdit::toHtml() does not return the html title tag
General and Desktop
3
Posts
2
Posters
1.7k
Views
1
Watching
-
I have a html code in a textEdit in which I am inserting a image with a title. When I call toHtml() it does not show the title, only the img src. Anyone have any ideas as to why this is happening?
@
QTextEdit *sth = new QTextEdit();
sth->setAcceptRichText(true);
sth->insertHtml("<img title = "wtv" src = "url to image" >");
qDebug() << sth->toHtml(); // this shows only <img src = "url to image" >
@