Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.6.3
-
None
-
All Windows versions
Description
This is partially a bug with firefox as well, see https://bugzilla.mozilla.org/show_bug.cgi?id=494989#c72, https://bugzilla.mozilla.org/show_bug.cgi?id=562344
Basically in windows firefox reports two different types of files when a png for example is dragged, the actual png or jpg in an windows specific istream, and a bmp format version of the file in the text/url-list that firefox must use internally.
The bug is that by default, the QMimeData object returns the bmp copy for the imageData() method rather than the png or jpg, whereas it should really be the opposite way around.
This is easy to test that it is not working properly, just drag a png with a transparent background to a qt ap that can display the image, (drop site example program for example), the background will be black rather than transparent as it should be.
I believe the code to read the data from the istream ect is already there in the QWindowsMimeImage converter class, it just needs to try the conversion from the windows specific clipboard formats first before looking at the url-list