Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom Mime types in Qt 5 for Clipboard support -- no longer can subclass QWindowsMime

Custom Mime types in Qt 5 for Clipboard support -- no longer can subclass QWindowsMime

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lgraber
    wrote on last edited by
    #1

    In Qt 4.8.4, my team wrote some subclasses of QWindowsMime and QMacPasteboardMime to add custom MimeType support to the Clipboard. In Qt 5.2, this extensibility seems to have been removed. The classes are no longer exported and the converter class just has a hardcoded list on Windows. The qwindowsmime.cpp file, though, still has the comment:

    By instantiating subclasses of QWindowsMime that provide conversions
    between Windows Clipboard and MIME formats, you can convert
    proprietary clipboard formats to MIME formats.

    Can someone tell me how this is now supported. It doesn't seem like this would have simply been totally deleted but I can't find anything explicit anywhere.

    Thanks
    Lee

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's an interesting point you are bringing. Since the code as been moved to the their platform plugins, you would have to link them to the specific plugins which is not recommended since they can change (being not part of the public API).

      You should consider opening a bug report "here":http://bugreports.qt-project.org explaining your use case. Also please provide a minimal compilable example (with a dummy but testable QWindows/MacPasteboard) that shows the situation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved