Seite 1 von 1

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

Verfasst: 31. Juli 2007 09:04
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*

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

Verfasst: 31. Juli 2007 09:20
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

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

Verfasst: 31. Juli 2007 09:40
von mephistho
Deever hat geschrieben:
Die .cpp braucht ihr nich, oder?
Nein, aber du QtNetwork...;)

Gruß,
/dev
:!: Tausend Dank!

:)