compile a Qt program (by not a Qt programmer)
Hello, I'm sorry because this forum might not be the place to post my questions,
Basically I'm not a Qt programmer. I'm also very new to C++. I have used some interpreted languages though.
So I have an application sourcecode which requires Qt.
I can't share the sourcecode, sorry.
The main sourcefile has the include:
Code:
#include <QApplication>
Also one of the headers has 'include <QtGui>' header.
So I downloaded the Qt SDK to compile it.
I had Code::Blocks IDE, but looks like Qt Creator which came with the SDK is an IDE too, right?
So should should I set the location of QApplication.h and QtGUI.h or is it automatically added with Qt Creator? Because I got an error and I'm not sure if its the issue.
Sorry for all the mystery.
Re: compile a Qt program (by not a Qt programmer)
If you installed the Qt SDK, then everything is already set up for you.
What error do you get?
Re: compile a Qt program (by not a Qt programmer)
In function 'void fuctionname()':
"zQMessageBox" has not been declared.
Re: compile a Qt program (by not a Qt programmer)
...'functionname()' is a function created by you, correct? u have included a 'z' before the 'QMessageBox', this is the error, just remove it