Results 1 to 2 of 2

Thread: copy - paste clipboard contents

  1. #1
    Join Date
    Dec 2009
    Qt products

    Default copy - paste clipboard contents

    Hello All,
    I am new to Qt. In my project, I will want to copy contents (contents include text, images combined) from a web page or any external source and paste in my qtextedit. But, images are not getting displayed and only the text gets pasted. If I copy images alone and try to paste, it is displayed in qtextedit . If I am correct, the issue is related to collecting mimedata. When I copy image alone, mimedata format is stored as Image. But it doesn't work when trying to copy text and image together. I wish that someone will help me to resolve this issue.


  2. #2
    Join Date
    Jan 2006
    Thanked 52 Times in 52 Posts
    MacOS X Unix/X11

    Default Re: copy - paste clipboard contents

    Find out what kinds of mimedata you get from the browser and see whether there is any that contains both text and images. See then whether you can convert that to the structure used by QTextEdit.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Replies: 1
    Last Post: 27th November 2014, 10:11
  2. How to copy from Excel and paste to QTableView
    By sms in forum Qt Programming
    Replies: 5
    Last Post: 7th February 2009, 04:58
  3. QTextEdit - copy and paste problems in X11
    By chezifresh in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2008, 20:21
  4. Copy / Paste doesn't work with LineEdit
    By ia32 in forum Qt Tools
    Replies: 2
    Last Post: 5th May 2008, 22:44
  5. Copying contents of QTableView cell to clipboard
    By Conel in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2006, 16:50


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.