Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
iPad (8th generation)
Description
void MyClass::copyUris(const FileSystemID &fromFileSystemID, const QStringList &uris) {
auto data = mimeData(fromFileSystemID, uris).toMap();
auto mime = new QMimeData();
for (auto i = data.constBegin(); i != data.constEnd(); i++)
mime->setData(i.key(), i.value().toByteArray());
p->clipboard->setMimeData(mime);
}
The above method works perfectly under android but when running on iOS, setMimeData copies just the first file of the multiple selected.
Although object "mime" contains (let's say) three QUrls after calling mime->setData(), p->clipboard->mimeData() returns only the first QUrl (after calling p->clipboard->setMimeData().
p-> clipboard is set to QGuiApplication::clipboard().