I used the following code to convert html to plain text:
QTextDocument doc; doc.setHtml( html); QString txt= doc.toPlainText();
Things went well until one day the program hang. After debugging, it turns out QTextDocument::setHtml freezes. It is not completely dead but very slow. This is not normal because it worked well in the past. By searching the Internet, the only post I got is this. However, it does not answer why QTextDocument::setHtml is so slow. It seems to load some external resource. Can anybody help me?
Comments are closed, but trackbacks and pingbacks are open.