Results 1 to 1 of 1
Hi all,
I am new to both Linux and c++ programming. The problem that I have is that I am trying to compile a simple Qt program through the Netbeans. ...
- 08-25-2008 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 33
Netbeans and Qt
Hi all,
I am new to both Linux and c++ programming. The problem that I have is that I am trying to compile a simple Qt program through the Netbeans. It looks like some include header files are missing. The code that I am trying to compile is:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.show();
return app.exec();
}
through the properties of my project I added the following include directory:
/usr/local/Trolltech/Qt-4.4.1/include
which I believe is where the required headers are placed.
When I compile the code I receive errors regarding the header files. Obviously i amdoing something wrong. I have already come across the only how to for QT and netbeans and it doesnt looks that it works for me.
What do i need to do in order to compile the code in netbeans?
many thanks in advance,
Regards.


Reply With Quote