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:

Qt Code:
  1. #include <QApplication>
  2. #include <QFont>
  3. #include <QPushButton>
  4.  
  5. int main(int argc, char* argv[])
  6. {
  7. QApplication app(argc, argv);
  8.  
  9. QPushButton quit("Quit");
  10.  
  11. quit.resize(75, 30);
  12. quit.setFont(QFont("Times", 18, QFont::Bold));
  13.  
  14. QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
  15.  
  16. quit.show();
  17.  
  18. return app.exec();
  19. }
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.