I can't replace "<" to "<"
General and Desktop
6
Posts
3
Posters
1.9k
Views
3
Watching
-
Hi,
What do you mean by doesn't work ? What output are you expecting ?
-
-
Hi @Brikinhos ,
@SGaist Ahhhh, damn, i know what is the $%&/ problem, i use this to test my program:
This is documented in the QMessageBox class reference (see the section called "Rich Text and the Text Format Property").
Anyway, I recommend converting with QString::toHtmlEscaped() and testing with qDebug():
#include <QDebug> // ... QString text = "This is a message test < > < > > > < < < <<< >> jan<d>epora"; qDebug() << text.toHtmlEscaped();
-
Hi @Brikinhos ,
@SGaist Ahhhh, damn, i know what is the $%&/ problem, i use this to test my program:
This is documented in the QMessageBox class reference (see the section called "Rich Text and the Text Format Property").
Anyway, I recommend converting with QString::toHtmlEscaped() and testing with qDebug():
#include <QDebug> // ... QString text = "This is a message test < > < > > > < < < <<< >> jan<d>epora"; qDebug() << text.toHtmlEscaped();