Qt World Summit: Register Today!

Custom MIME Type in Drag And Drop from QtWebEngine to Another App

  • Good morning,

    Could anyone please tell if custom MIME types are supported in drag and drop from HTML in QtWebEngine?
    I see them working properly when I implement drag and drop within the web-page. But I cannot get any custom MIME type payload when I drop to an external app (e.g. to Chrome).
    Drag and drop of custom MIME type from one instance of QtWebEngine to another also does not work.
    Drag and drop of custom MIME type from Chrome to QtWebEngine does not work either.

    Is this a setting in WebEngine maybe? Or implementation limits?

    I know that Chrome registers "Chromium Web Custom MIME Data Format" clipboard format in Windows and Linux, and that's what it uses for custom MIME types.

    Drag and drop of custom MIME types between two Chrome instances works, but drag and drop of the same payload between two instances of web pages loaded in different QtWebEngine processes does not work :/

    If you have any idea how that could be fixed, it would be helpful.


Log in to reply