diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-17 16:13:15 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-02-19 14:28:00 +0200 |
commit | 1576f81baa8a1c992a005397edfc5d6f9e1b44c1 (patch) | |
tree | 8d310d200cf01b28021d78896038b3a89e38db6a /examples | |
parent | 3dd5caaaec7c4c0d209b0327b647bfb5d46ac001 (diff) |
Android: QFileDialog check isLocalFile() with static functions
The functions below try to return the selected QUrl string
with toLocalFile(), however in case of Android "content" Uri
isLocalFile() is false, thus we end up with empty path.
This checks is QUrl isLocalFile() otherwise return QUrl::toString().
* QString QFileDialog::getSaveFileName()
* QString QFileDialog::getOpenFileName()
* QStringList QFileDialog::getOpenFileNames()
* QString QFileDialog::getExistingDirectory()
Change-Id: If7eefb3a067d4bd09849807e60554e0ded507f19
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions