Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.3, 6.7.1, 6.7.2
-
None
Description
When calling `QMimeData::data("application/x-qt-windows-mime;value=\"FileContents\";index=0");` to retrieve file contents from a `QDropEvent`, an invalid buffer is returned if the source file is inside a zip file opened in windows explorer.
Steps to reproduce:
- Compile and run the attached example
- Open test.zip from the attached example in Windows Explorer
- Drag test.txt into the example application
- `QMimeData::data()` returns an invalid buffer (`QByteArray::isNull` returns `true`) and the application displays "<null>"
- Unzip test.zip
- Drag the new uncompressed test.txt into the example application
- `QMimeData::data()` returns the content of test.txt and the application correctly displays the file contents: "Test!"