Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55858

QWebEngineView doesn't set proper mime types for drag&drop events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.3
    • 5.7.0
    • WebEngine
    • None
    • KDE Neon
    • cdfa03ad7472eb374b2434926d058cf570bc4e37

    Description

      If you drag elements from a QWebEngineView to other applications the mime types of the drag event are too restrictive.

      Dragging a Link (<a>) will get a mime type of `("text/plain")` instead of `("text/uri-list", "text/html", "text/unicode", "text/plain")`

      Therefore it is not possible to drop a link in an applications which only accepts urls (e.g. a media player).

      A dragged image also only gets a mime type of `("text/html")`.

      I attached a sample application with a QWebEngineView and a drop zone.
      It outputs the mime type of drag&drop events.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              viengelm Viktor Engelmann
              scheirle scheirle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes