QtAndroid::requestPermissions() in Qt6
-
wrote on 7 Jun 2021, 09:26 last edited by
QtAndroid::requestPermissions()
Looks like it's not available in Qt6, so, how to request permissions?
-
wrote on 13 Jun 2021, 09:07 last edited by
It's coming in Qt 6.2
QCoreApplication::requestPermission
(https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission) -
wrote on 15 Nov 2021, 15:33 last edited by
Is there something new here?
Qt 6.2.1 does not have QCoreApplication::requestPermission. -
It's coming in Qt 6.2
QCoreApplication::requestPermission
(https://doc-snapshots.qt.io/qt6-dev/qcoreapplication.html#requestPermission)wrote on 29 May 2022, 12:54 last edited by danryuThis 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?
-
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?
wrote on 29 May 2022, 15:18 last edited by JonB@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 -
wrote on 30 May 2022, 10:01 last edited by
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.