QtAndroid::requestPermissions() in Qt6
-
QtAndroid::requestPermissions()
Looks like it's not available in Qt6, so, how to request permissions?
-
It's coming in Qt 6.2
QCoreApplication::requestPermission
(https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission) -
This link doesn't show any info for
requestPermission()
https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission
Has it been removed? :/I'm wondering if it's going to be a blocker for me with Qt6 and Android right now, or if there's a workaround to implement until the API appears in ... 6.4?
-
@danryu
I think you are supposed to refer to https://doc.qt.io/qt-6/qtandroidprivate.html#requestPermission ?
And maybe read https://doc.qt.io/qt-6/qtandroidprivate.html#requestPermission https://bugreports.qt.io/browse/QTBUG-90498 -
Thanks @JonB - I also just discovered the notes at https://www.qt.io/blog/qt-extras-modules-in-qt-6.
Using Qt 6.3.0, I've enabled the private headers (
QT += core-private
) and with a slight re-write, the permission checks and requests seem to be working fine.