PDA

View Full Version : Setting QTextEdit with microsoft word RTF file



cesroc
19th August 2014, 17:46
Hello,

I have problem to read a rtf file and set in my QTextEdit. Is it possible to do that?
If I use a normal open file for myfile.rtf and copy the qstring to set the QTextEdit does not work, the QString contains all the meta datas and not a readable information.
Is it possible to read rtf and directly set the QTextEdit or I need to convert to something else? If I need to convert can someone help me and tell how and to what?
I didn't find a way to read rtf files.

Thanks in advance.
Best Regards.

Lesiok
19th August 2014, 19:19
Ask Mr. Google about "C++ convert rtf html" and .... second link (http://www.experts-exchange.com/Programming/Microsoft_Development/A_3096-Convert-RTF-to-HTML-and-HTML-to-RTF.html).