Seite 1 von 1

qmake make - howto include e.g. QtNetwork

Verfasst: 1. August 2006 12:11
von zonkie
Hi,

i am new to Qt and tried to use QtNetwork in a project, but how can I include the needed libs to qmake / make?

I create a new project with

Code: Alles auswählen

qmake -project

Code: Alles auswählen

qmake

Code: Alles auswählen

make
and then the linker (!) complains about no reference to QHttp::QHttp(QObject*).

So I have to add the needed libs manually to the Makefile. Is there an mechanism to let do this qmake?

Thanks in advance.

Verfasst: 1. August 2006 12:28
von Christian81

Verfasst: 1. August 2006 12:28
von OscarWild
simply add the line

Code: Alles auswählen

QT += network
to your project file!

Danke

Verfasst: 1. August 2006 13:29
von zonkie
Danke für die Antworten, damit klappt es wunderbar.

Gruß
zonkie