Hello,
I have recently installed Qt4.3, then eclipse CDT.
I would like to make Qt projects having classes recognizes by eclipse (with code completion), but now it's impossible: eclipse does not compile this example:
#include <QApplication>
#include <QFont>
#include <QPushButton>
int main(int argc, char* argv[])
{
quit.resize(75, 30);
QObject::connect(&quit,
SIGNAL(clicked
()),
&app,
SLOT(quit
()));
quit.show();
return app.exec();
}
#include <QApplication>
#include <QFont>
#include <QPushButton>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QPushButton quit("Quit");
quit.resize(75, 30);
quit.setFont(QFont("Times", 18, QFont::Bold));
QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
quit.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
I think that eclipse is bad-configured, and I'm in search of a tutorial which says what to append to the linker path, or to the compiler path (I found such a tutorial a few days ago but since I lost it and I can't retrieve it).
I tried to follow another tutorial (Qt in 10 steps) but without any success: I created a project, copied the example above, copied a example.pro file from the tutorial, and created targets, but I have an error message saying the file example.pro is not reacheable...
anyway, I prefer the first tutorial.
thank you,
lolveley.
Bookmarks