QFileDialog::getOpenFileName always returns empty string on Android
-
I have filed a bug report over at: https://bugreports.qt.io/browse/QTBUG-83372
-
Hi,
Thanks for the report !
Would you mind uploading your example directly on the report ? That allows to have everything in a single place.
-
Typically a small project showing the issue is enough.
If the developers have already such a small project it give them lead where to look at. -
@hackkitten
Omg, Miss Maya Posch
believe or not, your post been mention a million times :)
https://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/ -
@hackkitten
Hehe yeah and comments all the way from 2011 to 2019 :) -
@mrjj Quite a few comments that I should be looking into to update the blog post, too, perhaps :)
Sadly it seems that Qt even after 9 years hasn't seen the need to meaningfully update their documentation for things like QThread. Now with Android the situation is even worse, with very little documentation to be found.
At any rate I hope that this bug in QFileDialog can be resolved soon, because right now it's a blocker for Qt on Android in my project. I may have to go back to just using Java there again, which would be somewhat sad.
-
Hi
Well yes, perhaps :)
well they did add a worker example to the docs
https://doc.qt.io/qt-5/qthread.html
Also after years of shouting at people that would subclass QThread, then the fight died out with
https://woboq.com/blog/qthread-you-were-not-doing-so-wrong.html
So the docs show both ways.Well bug fixing is a bit slow so might take some time to get a fix for the android
QFileDialog thing but it should come at some point.I have not done much with java, but recently fooled around with Flutter and
found it very nice to work with. If only it had a WYSIWYG editor i would be sold. :)But yeah, it would be sad your Qt project would be blocked and abandoned just due to a silly bug.