From 2bffce5719c49e2aac0217f97cf48171683ee1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Fri, 31 Mar 2023 14:41:46 +0200 Subject: [PATCH] Darwin: Document that permissions can only be requested in GUI apps To request them in QtCore only apps we need to use the CoreFoundation event dispatcher on the main thread, which is currently blocked by issues in dealing with deferred delete events. Pick-to: 6.5 Change-Id: I9fe2575c2b3527b1b83fac208cfed6a0d7a8cb42 Reviewed-by: Juha Vuolle Reviewed-by: Timur Pocheptsov --- src/corelib/kernel/qpermissions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/kernel/qpermissions.cpp b/src/corelib/kernel/qpermissions.cpp index 35c72900de8..b3046f0a446 100644 --- a/src/corelib/kernel/qpermissions.cpp +++ b/src/corelib/kernel/qpermissions.cpp @@ -79,6 +79,9 @@ Q_LOGGING_CATEGORY(lcPermissions, "qt.permissions", QtWarningMsg); The use of the \c{QT_CONFIG(permissions)} macro ensures that the code will work as before on platforms where permissions are not available. + \note On \macOS and iOS permissions can currently only be requested for + GUI applications. + \section2 Declaring Permissions Some platforms require that the permissions you request are declared