Hi
I'm working on Eclipse IDE with qt4 plugin. Everythings work fine, all programs are compiling well, with no errors from compilator.
But I have one very annoying error which comes from Eclipse IDE.
syntax checker underlines ui.setupUi(this); with message: Method setupUi could not be resolved. This error have no matter for my application, and its work fine. but i cant stand to see the red underline in my project. I think that the problem is with my eclipse configuration.

here is the class with that error:
Qt Code:
  1. #include "qtmyapp.h"
  2.  
  3. QTMyApp::QTMyApp(QWidget *parent)
  4. : QWidget(parent)
  5. {
  6. ui.setupUi(this); // <-- here is the error
  7. }
  8.  
  9. QTMyApp::~QTMyApp()
  10. {
  11.  
  12. }
  13.  
  14. #include <QtGui/QWidget>
  15. #include "ui_qtmyapp.h"
  16.  
  17. class QTMyApp : public QWidget
  18. {
  19. Q_OBJECT
  20.  
  21. public:
  22. QTMyApp(QWidget *parent = 0);
  23. ~QTMyApp();
  24.  
  25. private:
  26. Ui::QTMyAppClass ui; //<-- and here
  27. };
To copy to clipboard, switch view to plain text mode