Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. networkauth not found in qt c++
QtWS25 Last Chance

networkauth not found in qt c++

Scheduled Pinned Locked Moved Unsolved General and Desktop
google apinetworknetworkauth
13 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MEsc
    wrote on 25 Jan 2023, 14:13 last edited by
    #1

    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".

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Jan 2023, 19:21 last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 10 Feb 2023, 19:02
      0
      • S SGaist
        25 Jan 2023, 19:21

        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.

        M Offline
        M Offline
        MEsc
        wrote on 10 Feb 2023, 19:02 last edited by
        #3

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

        S 1 Reply Last reply 10 Feb 2023, 19:03
        0
        • M MEsc
          10 Feb 2023, 19:02

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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 10 Feb 2023, 19:03 last edited by
          #4

          @MEsc how did you install Qt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 2 Replies Last reply 10 Feb 2023, 19:12
          0
          • S SGaist
            10 Feb 2023, 19:03

            @MEsc how did you install Qt ?

            M Offline
            M Offline
            MEsc
            wrote on 10 Feb 2023, 19:12 last edited by
            #5

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

            1 Reply Last reply
            0
            • S SGaist
              10 Feb 2023, 19:03

              @MEsc how did you install Qt ?

              M Offline
              M Offline
              MEsc
              wrote on 10 Feb 2023, 19:16 last edited by
              #6

              @SGaist qt.JPG
              on the picture you see for exactly the version there is no qtnetworkauth at all.

              J 1 Reply Last reply 10 Feb 2023, 20:19
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 10 Feb 2023, 19:32 last edited by
                #7

                In that case, you can clone the repository and build the module yourself.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply 10 Feb 2023, 20:13
                0
                • S SGaist
                  10 Feb 2023, 19:32

                  In that case, you can clone the repository and build the module yourself.

                  M Offline
                  M Offline
                  MEsc
                  wrote on 10 Feb 2023, 20:13 last edited by
                  #8

                  @SGaist how do I do this?

                  M 1 Reply Last reply 10 Feb 2023, 20:14
                  0
                  • M MEsc
                    10 Feb 2023, 20:13

                    @SGaist how do I do this?

                    M Offline
                    M Offline
                    MEsc
                    wrote on 10 Feb 2023, 20:14 last edited by
                    #9

                    @MEsc I am not really experienced in including libraries.

                    S 1 Reply Last reply 10 Feb 2023, 21:02
                    0
                    • M MEsc
                      10 Feb 2023, 19:16

                      @SGaist qt.JPG
                      on the picture you see for exactly the version there is no qtnetworkauth at all.

                      J Offline
                      J Offline
                      JoeCFD
                      wrote on 10 Feb 2023, 20:19 last edited by JoeCFD 2 Oct 2023, 20:41
                      #10

                      @MEsc I just checked. It is available under Additional Librairaries just below Qt Positioning. You need to scroll down to select it.

                      M 1 Reply Last reply 10 Feb 2023, 20:57
                      0
                      • J JoeCFD
                        10 Feb 2023, 20:19

                        @MEsc I just checked. It is available under Additional Librairaries just below Qt Positioning. You need to scroll down to select it.

                        M Offline
                        M Offline
                        MEsc
                        wrote on 10 Feb 2023, 20:57 last edited by
                        #11

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

                        J 1 Reply Last reply 10 Feb 2023, 21:05
                        0
                        • M MEsc
                          10 Feb 2023, 20:14

                          @MEsc I am not really experienced in including libraries.

                          S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 10 Feb 2023, 21:02 last edited by
                          #12

                          @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

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • M MEsc
                            10 Feb 2023, 20:57

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

                            J Offline
                            J Offline
                            JoeCFD
                            wrote on 10 Feb 2023, 21:05 last edited by JoeCFD 2 Oct 2023, 21:10
                            #13

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

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved