Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.9.2
-
None
-
Android 7.1.1 MIUI 8.5
build in windows 10 x64
Qt 5.9.2
Description
On android I am trying to construct QPixmap from local storage (internal). It works fine on android below 7. But when doing same in Android 7.1.1 MIUI 8 the QPixmap(url.toLocalPath()) creates Null pixmap.
The url is right.
Q_INVOKABLE void setProfileImage(const QString &fileUrl) { QUrl url = fileUrl; setImgUrl(url.toLocalFile()); // debug del setProfileImage(QPixmap(url.toLocalFile())); } void setProfileImage(const QPixmap &t_profileImage) { chargeImageProvider(t_profileImage); m_worker->setProfileImage(t_profileImage); // TODO make it work in separate thread. }
Attachments
Issue Links
- is replaced by
-
QTBUG-50759 Provide support for Android's new Permission Model
- Closed