Solved Get RTF String from editor
-
Hi,
I try to create a rich text editor. I have to get string in Rich Text format but QTextBrowser provides only
plainText or HTML. Does a way exist to get RTF string or must I convert HTML to RTF ?
thanks,Sorry for my horrible english
-
Hi
What do you mean by RTF ?
The html format you get back is RTF
but its not ms RTF from 1987
https://en.wikipedia.org/wiki/Rich_Text_FormatThe RTF used is
http://doc.qt.io/qt-5/richtext-html-subset.html -
I use the library teigha to manipulate dwg file.
In dwg text entities are unfortunately coded in RTF.
So to create these entities I'm make a text editor. -
@Roy44
oh dwg. cool.
Well how much RTF does the text fields understand? -
The text object is filled with a RTF string.
This string can contains info about color, font (bold italic underlined family etc.)
abd alignment. -
@Roy44
Maybe you ccan re-use a parser and add support to QTextBrowser .
It sounds like its the good old RTF so its other format.
https://cgit.kde.org/koffice.git/tree/filters/kword/rtf