Results 1 to 9 of 9

Thread: Problem pasting text into a QTextEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Problem pasting text into a QTextEdit

    Quote Originally Posted by Spockmeat View Post
    I have no clue at all what could be causing this.
    Maybe there's something wrong with the encoding or fonts?

    As you can see in the attachment, it works for me.
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2006
    Posts
    40
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 4 Times in 4 Posts

    Default Re: Problem pasting text into a QTextEdit

    Hum, so it must be something wrong with my version then... just a standard win2000 box, pentiumII based celeron, installed from the executable package.

    I'll try recompiling Qt myself to see if that'll fix it.

  3. #3
    Join Date
    Feb 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem pasting text into a QTextEdit

    Excuse my english)

    I have some problem with Qt 4.4.3.
    I know, that it happens because QMimeData::html(), which is used by QClipboard do not convert line-breaks to spaces, as any browser or rich text editor does.
    I temporary use QString::simplified(), but it isn't a solution at all because of unwanted trimmings.

    Anyone can help?

  4. #4
    Join Date
    Feb 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem pasting text into a QTextEdit

    Quote Originally Posted by crazY View Post
    I have some problem with Qt 4.4.3
    I have the same problem

  5. #5
    Join Date
    Feb 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem pasting text into a QTextEdit

    Solved in Qt 4.5

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. How to get text of last line only in QTextEdit?
    By rajesh in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2006, 14:37
  3. setting cursor problem in QTextEdit
    By jyoti kumar in forum Qt Programming
    Replies: 3
    Last Post: 19th May 2006, 09:17
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 07:03
  5. Problem with inserting text into QTextEdit
    By xorrr in forum Qt Programming
    Replies: 0
    Last Post: 6th February 2006, 12:45

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
  •  
Qt is a trademark of The Qt Company.