Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
None
-
-
6c534941a3015ba529dd4a5c153cffa0e94af11a (qt/qtwayland/dev) 51f0466e01df52eb07e589006744f405dfd40bdd (qt/qtwayland/5.15)
Description
In https://code.woboq.org/qt5/qtwayland/src/client/qwaylanddatasource.cpp.html#63
It seems it lacks QInternalMimeData::formatsHelper(mimeData) so that appliation/x-qt-image is expanded to the mime type that QImage supports.
This causes KDE bug https://bugs.kde.org/show_bug.cgi?id=422860
Where
auto data = new QMimeData(); data->setImageData(mSavePixmap.toImage());
Does not advertise the other mime type Qt can convert the image to.
An example workaround is available at https://invent.kde.org/graphics/spectacle/-/merge_requests/31