-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Duplicate
-
Affects Version/s: 5.9.2
-
Fix Version/s: None
-
Component/s: Core: Filesystem watching, Core: I/O
-
Labels:None
-
Environment:Android 7.1.1 MIUI 8.5
build in windows 10 x64
Qt 5.9.2
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. }
- is replaced by
-
QTBUG-50759 Provide support for Android's new Permission Model
-
- Closed
-