
Originally Posted by
deekayt
what should I now have in main() function.
You main should look more or less like this:
#include <QApplication>
#include "imagedialog.h"
int main(int argc, char **argv)
{
ImageDialog dlg;
dlg.show();
return app.exec();
}
#include <QApplication>
#include "imagedialog.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
ImageDialog dlg;
dlg.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode

Originally Posted by
deekayt
And for the code given below should I have some other header file.
In general you put class definitions in header files (*.h) and method implementation in implementation files (*.cpp).
Bookmarks