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 <juha.vuolle@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 2bffce5719c49e2aac0217f97cf48171683ee1ee)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2023-03-31 14:41:46 +02:00 committed by Qt Cherry-pick Bot
parent 0b28e08bfa
commit 9bc5b6e864

View File

@ -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