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

QDropEvent->mimeData()->text() always returns an empty string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1
    • Core: Other
    • None
    • Arch Linux, Xfce
    • Linux/X11

    Description

      I have enclosed a sample program. Just start it and drop text into the GUI. No matter what you insert QDropEvent->mimeData()->text() always returns an empty string, see debug output.

      Two examples:

      Drag & drop the current url from omnibox of the browser

      hasText():  true
      formats():  ("text/plain", "_NETSCAPE_URL", "text/uri-list")
      text():   ""
      html():   ""
      urls():   (QUrl("https://bugreports.qt.io/secure/Dashboard.jspa"))
      

      Drag & drop from text editor

      hasText():  true
      formats():  ("text/plain")
      text():   ""
      html():   ""
      urls():   ()
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hefeweizen Michael Mense
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes