Unsolved 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. -
@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.
-
@MEsc how did you install Qt ?
-
@SGaist I installed it with MingW.
I have just looked in Qt I am using Desktop Qt 6.4.0 MinGW 64-bit, but when I look in the directory: C:\Qt\6.4.0\mingw_64\include there is no QtNetworkAuth.
-
@SGaist
on the picture you see for exactly the version there is no qtnetworkauth at all. -
In that case, you can clone the repository and build the module yourself.
-
@SGaist how do I do this?
-
@MEsc I am not really experienced in including libraries.
-
@MEsc I just checked. It is available under Additional Librairaries just below Qt Positioning. You need to scroll down to select 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.
-
@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 -
@MEsc Check Archive and then press Filtern button. You will get all the stuff of 6.4.0. Sorry. you are doing on Windows. Things could be different.