PDA

View Full Version : Pasting from MS Word to QTextEdit



hunsrus
18th March 2010, 14:40
Hey folks,
when pasting a line of Text directly from Microsoft Word to a QTextEdit, following two unwanted things occur:

The pasted text is about 2px smaller than the actual size of the text
The font family, style, color and size after the pasted text is reset to QTextEdit or Application- default (Helvetica)

Do you have any clue how to properly provide a possibility to paste text and the text's font-settings from word (or any other application) to a QTextEdit?

edit1: basically, i want that the pasted content does not change the font family and style and size in my QTextEdit application. I hope you somehow understand my issue.

thank you in advance,

Sebastian

edit2: btw - i am using Qt 4.5