Hi
I had created a form named imagedialog.ui and then added the following code in Main.cpp
#include <qdialog.h>
#include "ui_imagedialog.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDialog *window = new QDialog;
Ui::ImageDialog ui;
ui.setupUi(window);
window->show();
return app.exec();
}
Then i used the
qmake -project
qmake
make
it creates the "ui_imagedialog.h" file but there is some error in main.cpp :-
main.cpp: In function `int main(int, char**)':
main.cpp:21: error: 'ImageDialog' is not a member of 'Ui'
main.cpp:21: error: expected `;' before "ui"
main.cpp:22: error: 'ui' was not declared in this scope
make: *** [main.o] Error 1
Where i am wrong plz assist me.
Best Regards
Bookmarks