From 9bc5b6e864c984e2785ff8eaa9af45fca8b9231b 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. Change-Id: I9fe2575c2b3527b1b83fac208cfed6a0d7a8cb42 Reviewed-by: Juha Vuolle Reviewed-by: Timur Pocheptsov (cherry picked from commit 2bffce5719c49e2aac0217f97cf48171683ee1ee) Reviewed-by: Qt Cherry-pick Bot --- 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 588ad0b132b..83e12ebc2a2 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