Results 1 to 3 of 3

Thread: QTextEdit - copy and paste problems in X11

  1. #1
    Join Date
    Jun 2008
    Posts
    88
    Thanks
    4
    Thanked 4 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11
    Wiki edits
    1

    Default QTextEdit - copy and paste problems in X11

    I have a QTextEdit that uses a QSyntaxHighlighter to pretty up the text. However this same issues happens with rich text.

    If you select some text, right click and copy the text then try to paste it into a program like thunderbird it doesn't paste anything. If you choose "Paste without formatting" it works perfectly fine.

    Anyone else have this problem? It seems like there's some problem with the mime data coming out of the text edit. This happens for 4.4, 4.3 ...

    Also xcopy doesnt seem to work at all in QTextEdits (select text, then middle mouse click to paste). They both smell like bugs to me but I was hoping someone has a workaround

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTextEdit - copy and paste problems in X11

    Quote Originally Posted by chezifresh View Post
    If you select some text, right click and copy the text then try to paste it into a program like thunderbird it doesn't paste anything.
    Hmm, it works fine for me with Qt/X11 4.4.0. I used the rich text demo shipped together with Qt and Thunderbird. See the attached screenshot.
    Attached Images Attached Images
    Last edited by jacek; 29th June 2008 at 18:39. Reason: fixed bbcode
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    88
    Thanks
    4
    Thanked 4 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11
    Wiki edits
    1

    Default Re: QTextEdit - copy and paste problems in X11

    Interesting... I just tried the same example and it didn't work for me at all. I can still copy it to the clipboard but the only thing that works is 'Paste Without Formatting' so I can only paste plain text. And X-Copy still doesn't work for me either.

    So I just checked and I have 2 builds of Qt, 4.3.4 and 4.4, I was using the 4.3.4 version. It looks like 4.4 is doing the right thing now. Thanks for the response

Similar Threads

  1. QGraphicsView Copy and Paste
    By stevel in forum Qt Programming
    Replies: 14
    Last Post: 13th January 2014, 07:57
  2. Copy / Paste doesn't work with LineEdit
    By ia32 in forum Qt Tools
    Replies: 2
    Last Post: 5th May 2008, 21:44
  3. using cut(), copy(), paste()
    By systemz89 in forum Newbie
    Replies: 5
    Last Post: 18th December 2007, 14:47

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.