Results 1 to 2 of 2

Thread: QClipboard and mimetypes

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Smile QClipboard and mimetypes

    Hi guys,
    I have a question about QClipboard. If I copy formatted text from a different application(MS Word, LibreOffice, etc.), and read out the QClipboard QMimeData, the method formats() returns
    text/plain, text/html, and that's all. But there has to be further mimetypes. How can I get these mimetypes. I want to see the original data in the clipboard (maybe xml).

    I know, there are further types because I have another application and if I paste there copied data from MS Word or LibreOffice, the data is pasted correctly(formatted) and the data is not transmitted via text/html.
    I want to know the mimetype and see the transmitted data.
    Can help me to find out.

    thanks

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QClipboard and mimetypes

    Run the Drop Site Example on your machine and drop the formatted text from a different application(MS Word, LibreOffice, etc.) on to the drop site, and then you can see all the mimedata available
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. QClipboard
    By Qiieha in forum Qt Programming
    Replies: 4
    Last Post: 19th December 2012, 10:05
  2. QClipboard
    By jc in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2012, 16:11
  3. From QClipboard to OS FileManager
    By wirasto in forum Qt Programming
    Replies: 0
    Last Post: 28th May 2010, 12:54
  4. QClipboard and Windows
    By GodOfWar in forum Qt Programming
    Replies: 5
    Last Post: 21st July 2008, 09:05
  5. Jambi: Using non-standard mimetypes
    By Ron Ofir in forum Qt Programming
    Replies: 0
    Last Post: 1st August 2007, 20: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.