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

"urls" property from DropArea "dropped" signal can't be saved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.6.2, 5.8.0, 5.9.1
    • Ubuntu 16.04

    Description

      This is probably related to QTBUG-42277.

      The dropped() signal from DropArea carries a "drop" parameter which contains an "urls" member, of type urllist. While this member can be saved and stored into another variable while the signal handler is executing, it seems that any copy of this variable get reset once the signal handler terminates.

      Please try the attached test case, and drop some image files from another application. One would expect to see the same list of URLs being printed twice, but the second console.log() is not printing anything.

      This but is made worse by the fact that its natural workaround (copying the url list one member at a time) is unbelievably slow (it takes about half a second to save each element!), which is probably another bug per se.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mardy Alberto Mardegan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes