Results 1 to 1 of 1

Thread: SOLVED #include <QNetwork..> no such file or directory

  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default SOLVED #include <QNetwork..> no such file or directory

    Edit, solved: Turns out I had to include QT += network in the .pro file
    Sorry.

    Hello, I did a fresh install of latest creator and copied my projects over.
    One (console) program consists of main.cpp and a class http.cpp/http.h
    I get 'no such file or directory' in that http.h on these #includes:

    Qt Code:
    1. #include <QNetworkAccessManager>
    2. #include <QNetworkRequest>
    3. #include <QNetworkReply>
    To copy to clipboard, switch view to plain text mode 

    I'm not getting the error on other includes like <QObject>

    Thanks for help.
    Last edited by wysota; 6th March 2011 at 12:24. Reason: missing [code] tags

Similar Threads

  1. Replies: 1
    Last Post: 23rd May 2011, 04:53
  2. Replies: 4
    Last Post: 9th May 2010, 16:18
  3. Replies: 2
    Last Post: 9th March 2010, 05:21
  4. Replies: 10
    Last Post: 15th June 2009, 19:44
  5. Replies: 1
    Last Post: 10th July 2007, 16:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.