networkauth not found in qt c++
-
Hello,
I try to include the google drive api in my programm. I followed the steps on this page. https://www.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0
I can not use QOAuth2AuthorizationCodeFlow. Qt did not find it. I researched in the internet and find out, that i need to include QT += networkauth. But then it says "Unknown Module". -
Hi,
Which version of Qt are you using ?
How did you install it ?
Depending on that, you may have to build and install the module before being able to use it. -
Hi,
Which version of Qt are you using ?
How did you install it ?
Depending on that, you may have to build and install the module before being able to use it. -
@SGaist sorry for the late answer. I use 6.4.0 . I installed on every Version Network Authorisation, but if I add to QT += networkauth it doesnt work.
-
In that case, you can clone the repository and build the module yourself.
-
@MEsc I just checked. It is available under Additional Librairaries just below Qt Positioning. You need to scroll down to select it.
-
@MEsc said in networkauth not found in qt c++:
@MEsc I am not really experienced in including libraries.
Open the top level Ë‹CMakeLists.txt` with Qt Creator
Add a new build step that will install the module.
Build it once for release and once per desktop
Use it -
@JoeCFD As I said, for Qt 6.4.0 I only have the 2 options as you can see in the picture. For all other versions, I can find the library under Additional Libraries.