Get RTF String from editor
-
wrote on 17 Feb 2017, 20:11 last edited by
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,
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 -
wrote on 18 Feb 2017, 15:34 last edited by
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. -
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? -
wrote on 21 Feb 2017, 19:05 last edited by
The text object is filled with a RTF string.
This string can contains info about color, font (bold italic underlined family etc.)
abd alignment. -
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
1/6