Can you please show how to do it? :)
On 9/18/2021 7:45 PM, Mårten Nordheim wrote:
Hello!
Did you add core-private (/ CorePrivate) to your dependencies?
It might print a warning when you do, though in this case it's to be expected.
Mårten
________________________________________
From: Interest <interest-boun...@qt-project.org> on behalf of Alexander Dyagilev
<alervd...@gmail.com>
Sent: Saturday, September 18, 2021 18:24
To: interest@qt-project.org
Subject: [Interest] Qt6: Android: checkPermission is not available yet?
Hello guys :)
I'm wondering that is the equivalent for this function:
bool checkPermission()
{
static const QString
PERMISSION("android.permission.WRITE_EXTERNAL_STORAGE");
QtAndroid::PermissionResult r = QtAndroid::checkPermission(PERMISSION);
if (r == QtAndroid::PermissionResult::Denied)
{
QtAndroid::requestPermissionsSync(QStringList() << PERMISSION);
r = QtAndroid::checkPermission(PERMISSION);
if (r == QtAndroid::PermissionResult::Denied)
return false;
}
return true;
}
It seems it does not exist?
I've tried this (Qt 6.2 RC):
#include <QtCore/6.2.0/QtCore/private/qandroidextras_p.h>
QtAndroidPrivate::checkPermission(QtAndroidPrivate::Storage);
It can't be compiled due to the following error: fatal error:
'QtCore/private/qglobal_p.h' file not found
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest