Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.4.0
-
Windows 7
Description
Attached is code to reproduce the issue. When printed to QLabel etc. the chars are not visible, but when printed for example to file hex characters can be seen.
#include <QFile> #include <QApplication> #include <QTextBrowser> #include <QTextStream> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextBrowser *textBrowser = new QTextBrowser(); textBrowser->setGeometry(QRect(50, 50, 531, 521)); textBrowser->setSource(QUrl("qrc:/testHtml.html")); QFile f("output.txt"); if(f.open(QIODevice::WriteOnly)) { QTextStream out(&f); out << textBrowser->toPlainText(); } textBrowser->show(); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-44538 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
107013,3 | Improve QTextDocument::toPlainText doc related to inline images | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |