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. Problem with include <QNetworkAccessManager>

Problem with include <QNetworkAccessManager>

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.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.
  • A Offline
    A Offline
    Armin
    wrote on last edited by A Former User
    #1

    Hi
    I want to add #include <QNetworkAccessManager>
    But i get error:

    C:\Users\armin\Documents\DownloadManager\mainwindow.h:5: error: QNetworkAccessManager: No such file or directory

    Why ?

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi,
      maybe you forgot to add: QT += network to your .pro file.
      -Michael.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Armin
        wrote on last edited by
        #3

        Thanks Michael
        How can i add that?
        I don't see in tutorial c++

        1 Reply Last reply
        0
        • m.sueM Offline
          m.sueM Offline
          m.sue
          wrote on last edited by
          #4

          Hi,
          I am not sure what you want me to explain. I would load my .pro file in a text editor, add the line, save it , run qmake and compile again and hope for the best.
          -Michael.

          1 Reply Last reply
          2
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            If you are using Creator, simply click the .PRO file and it opens as any source file will.

            1 Reply Last reply
            2

            • Login

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