PDA

View Full Version : compile a Qt program (by not a Qt programmer)



yogi12
9th September 2010, 17:29
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:


#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.

tbscope
9th September 2010, 17:37
If you installed the Qt SDK, then everything is already set up for you.

What error do you get?

yogi12
9th September 2010, 18:02
In function 'void fuctionname()':

"zQMessageBox" has not been declared.

ShadowBelmolve
9th September 2010, 19:19
...'functionname()' is a function created by you, correct? u have included a 'z' before the 'QMessageBox', this is the error, just remove it