Skip to content

Commit 3249c7a

Browse files
authored
Update AuthenticationView.qml
1 parent 534b752 commit 3249c7a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Imports/ArcGIS/Runtime/Toolkit/Dialogs.2.0/AuthenticationView.qml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,33 @@ import QtQuick 2.5
4040
\li PKI (ClientCertificateView)
4141
\li SSL Handshake Warnings (SslHandshakeView)
4242
\endlist
43+
44+
\note OAuth 2.0 uses a WebView, and in Qt, certain platforms
45+
fall back to use the WebEngine. Because of this, it is advised
46+
that you add the following lines to your project's .pro file
47+
and main.cpp when using the AuthenticationView:
48+
49+
*.pro:
50+
\code
51+
qtHaveModule(webengine) {
52+
QT += webengine
53+
DEFINES += QT_WEBVIEW_WEBENGINE_BACKEND
54+
}
55+
\endcode
56+
57+
main.cpp:
58+
\code
59+
#ifdef QT_WEBVIEW_WEBENGINE_BACKEND
60+
#include <QtWebEngine>
61+
#endif // QT_WEBVIEW_WEBENGINE_BACKEND
62+
\endcode
63+
64+
main.cpp:
65+
\code
66+
#ifdef QT_WEBVIEW_WEBENGINE_BACKEND
67+
QtWebEngine::initialize();
68+
#endif // QT_WEBVIEW_WEBENGINE_BACKEND
69+
\endcode
4370
*/
4471
Item {
4572
id: authView

0 commit comments

Comments
 (0)