[Qt-interest] QtNetwork
Sean Harmer
sean.harmer at maps-technology.com
Mon Nov 23 16:17:31 CET 2009
Hi,
On Monday 23 November 2009 15:11:08 Gian Marco Gallo wrote:
> Good afternoon
>
> I'm here again with a noob problem :D
> I'm developing a game in Qt using XCode 3.2.1 and I'm not able to
> understand how the QtNetwork module works. I mean: I want my software
> checks at the start if there are updates available so I use QHttp and QUrl
> to download the version file. To do this I've added the code:
>
> #include <QtNetwork>
>
> in the file where I use QHttp and QUrl and the code:
>
> QT += network
>
> in the .pro file. Then I try to build and run with XCode button but the
> compiler returns the error: "QtNetwork: no such file or directory". It
> returns also all the errors connected to the classes in the QtNetwork
> module (i.e. QHttp with no type and so on).
>
> I've also tried to add the QtNetwork framework to the external frameworks
> but no success. Why doesn't the compiler find the module?
Did you rerun qmake after modifying the .pro file? This will regenerate the
Makefile's etc for your project such that they include the header search paths
and correct linker args etc.
Sean
More information about the Qt-interest-old
mailing list