fatal error: QPushButton : No such file or directory

I have an odd error. I have the Qt4 libraries installed and running Ubuntu 12.10.

Here is my code:
1
2
3
4
5
6
7
8
9
10
11
12
#include <QApplication>
#include <QPushButton > 

int main(int argc, char *argv[] )
{
	QApplication app(argc, argv);
	QPushButton *button= new QPushButton("Quit");
	QObject :: connect( button, SIGNAL( clicked() ), &app, SLOT(quit() ) );
	
	button -> show();
	return app.exec();
}


Here is my output:

ja@ja-desktop:~/QuitQt$ qmake -project
ja@ja-desktop:~/QuitQt$ qmake
ja@ja-desktop:~/QuitQt$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
main.cpp:2:25: fatal error: QPushButton : No such file or directory
compilation terminated.
make: *** [main.o] Error 1


What is wrong? Any insight will be appreciated. I am a newbie in C++ and Qt
The preprocessor is looking for `QPushButton '
remove that extra space
Holy Molly!
Thank you!
Topic archived. No new replies allowed.