Compute defaultUserDataPath lazily


defaultUserDataPath was a static QString member initialized via
QStandardPaths::writableLocation(), which uses JNI on Android. As
a namespace-scope static it ran at library load, before Qt's JNI
is set up, and crashed if the library was loaded ahead of that.

Turn it into a static member function backed by a lazy local
static, so the JNI call runs on first use instead.

Pick-to: 6.12 6.11
Task-number: QTBUG-141461
Change-Id: Icc01d6d4f1a5b89616a3546dd5bb176a710aabca
Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
commit2331f87199aeb85b356296022cf2ba384d023e2f
parent85548a6af9d73757fc2a26662db8ef914c84604d
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeMon, 8 Jun 2026 09:06:05 +0000