Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.4
-
None
-
Qt 5.9.4 snapshot on macOS
Android:
Tested on Google Pixel, Google Pixel XL, Huawei Nexus 6P, LGE LG V20, Motorola Moto G 4, Motorola Nexus 6, Samsung Galaxy S6, Samsung Galaxy S7, Samsung Galaxy S6
-
-
eadf9e542fcc42597bfe02df065fc4cefa94cd56
Description
Adding
[...]
QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
qDebug() << "QStandardPaths::AppDataLocation is";
qDebug() << path;
[...]
in main() after `QGuiApplication app(argc, argv);` in the "Qt Quick Controls 2 - Gallery" example returns:
D Gallery : ../gallery/gallery.cpp:67 (int main(int, char**)): QStandardPaths::AppDataLocation is D Gallery : ../gallery/gallery.cpp:68 (int main(int, char**)): "/"
when deploying Debug builds for Android .
In Release builds:
D Gallery : (null):0 ((null)): QStandardPaths::AppDataLocation is D Gallery : (null):0 ((null)): "/data/user/0/org.qtproject.example.gallery/files"
which is correct.
This issue was also present when I built Qt for Android from source at commit 1c1557aa93cd139688ebfe5a9922a60ef2b2d8c6 in qt5.git in the middle of December 2017. Additionally, iOS and OS X Debug builds do not have this issue.
Attachments
Issue Links
- relates to
-
QTBUG-65766 Android: samegame example fails in QtQuick.LocalStorage openDatabaseSync()
- Closed
- replaces
-
QTBUG-66005 QStandardPaths locations return empty paths for Android
- Closed
- resulted in
-
QTBUG-65863 "QApplication is not created on main thread" in same game example
- Closed