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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes