[gelöst] ISO C++ forbids declaration of `QUdpSocket' with no

Alles rund um die Programmierung mit Qt
Antworten
mephistho
Beiträge: 58
Registriert: 14. September 2006 17:47

[gelöst] ISO C++ forbids declaration of `QUdpSocket' with no

Beitrag von mephistho »

Hi,

ich rast gleich aus, weil mir der Haken nicht auffallen will. So blind kann man doch gar nich sein, oder?

webio.h:

Code: Alles auswählen

#ifndef __webio_h__
#define __webio_h__

#include <QtGui>

using namespace std;

class WebIO: public QWidget
{	
	Q_OBJECT
	
			
public:
	WebIO(QWidget *parent = 0);
	
private:
	QGridLayout *MainGrid;
	QGridLayout *TopGrid;
	QGridLayout *MiddleGrid;
	QGridLayout *BottomGrid;
	
	QPushButton *PBConnectListen;
	QPushButton *PBConnectTalk;
	QPushButton *PBQuit;
	
	QLineEdit *LEListenIP;
	QLineEdit *LETalkIP;
	
	QUdpSocket *UDPListen;
	QUdpSocket *UDPTalk;
	
private slots:
	void connectWebIOListen();

public slots:

};

#endif

Wieso bekomm ich dabei folgende Fehlermeldung?!?!?
webio.h:29: error: ISO C++ forbids declaration of `QUdpSocket' with no type
webio.h:29: error: expected `;' before '*' token
webio.h:30: error: ISO C++ forbids declaration of `QUdpSocket' with no type
webio.h:30: error: expected `;' before '*' token
Die .cpp braucht ihr nich, oder?

*hmpf*
Zuletzt geändert von mephistho am 31. Juli 2007 09:49, insgesamt 1-mal geändert.
Deever
Beiträge: 90
Registriert: 9. Mai 2007 18:20

Re: ISO C++ forbids declaration of `QUdpSocket' with no type

Beitrag von Deever »

mephistho hat geschrieben:ich rast gleich aus, weil mir der Haken nicht auffallen will. So blind kann man doch gar nich sein, oder?
Doch, kann man...passiert aber auch mir ab und an! ;)
Die .cpp braucht ihr nich, oder?
Nein, aber du QtNetwork...;)

Gruß,
/dev
mephistho
Beiträge: 58
Registriert: 14. September 2006 17:47

Re: ISO C++ forbids declaration of `QUdpSocket' with no type

Beitrag von mephistho »

Deever hat geschrieben:
Die .cpp braucht ihr nich, oder?
Nein, aber du QtNetwork...;)

Gruß,
/dev
:!: Tausend Dank!

:)
Antworten