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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes