Results 1 to 1 of 1

Thread: Pasting from MS Word to QTextEdit

  1. #1
    Join Date
    Jun 2008
    Posts
    26
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Pasting from MS Word to QTextEdit

    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
    Last edited by hunsrus; 18th March 2010 at 14:23.

Similar Threads

  1. QTextEdit: get word under the mouse pointer?
    By zorro68 in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2009, 15:42
  2. How to get current word in Qtextedit
    By iamjayanth in forum Qt Programming
    Replies: 5
    Last Post: 6th April 2009, 08:57
  3. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 14:36
  4. How to add a new word to QTextEdit with "append"
    By yagabey in forum Qt Programming
    Replies: 8
    Last Post: 6th January 2008, 11:50
  5. Replies: 2
    Last Post: 9th March 2007, 23:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.