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:
#include "qtmyapp.h"
{
ui.setupUi(this); // <-- here is the error
}
QTMyApp::~QTMyApp()
{
}
#include <QtGui/QWidget>
#include "ui_qtmyapp.h"
{
Q_OBJECT
public:
~QTMyApp();
private:
Ui::QTMyAppClass ui; //<-- and here
};
#include "qtmyapp.h"
QTMyApp::QTMyApp(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this); // <-- here is the error
}
QTMyApp::~QTMyApp()
{
}
#include <QtGui/QWidget>
#include "ui_qtmyapp.h"
class QTMyApp : public QWidget
{
Q_OBJECT
public:
QTMyApp(QWidget *parent = 0);
~QTMyApp();
private:
Ui::QTMyAppClass ui; //<-- and here
};
To copy to clipboard, switch view to plain text mode
Bookmarks