qmake make - howto include e.g. QtNetwork

Alles rund um die Programmierung mit Qt
Antworten
zonkie
Beiträge: 3
Registriert: 1. August 2006 11:58

qmake make - howto include e.g. QtNetwork

Beitrag 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.
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Beitrag von Christian81 »

MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
OscarWild
Beiträge: 54
Registriert: 19. Juni 2006 19:59

Beitrag von OscarWild »

simply add the line

Code: Alles auswählen

QT += network
to your project file!
zonkie
Beiträge: 3
Registriert: 1. August 2006 11:58

Danke

Beitrag von zonkie »

Danke für die Antworten, damit klappt es wunderbar.

Gruß
zonkie
Antworten