PDA

View Full Version : copy - paste clipboard contents



viswanathan
15th December 2009, 10:42
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.

Thanks
Viswanathan

axeljaeger
8th January 2010, 12:10
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.