maybe it could be easier if you give us some code.
anyway, if "QWidget: Must construct a QApplication before a QPaintDevice" is sent, it mostly means, that you didn't construct a QApplication.
did you write a main file with contents similar to this:
#include <QApplication>
#include "MainWindow.h"
int main(int argc, char *argv[])
{
int exec;
MainWindow mainWindow("Test");
mainWindow.show();
exec = app.exec();
return exec;
}
#include <QApplication>
#include "MainWindow.h"
int main(int argc, char *argv[])
{
int exec;
QApplication app(argc, argv);
MainWindow mainWindow("Test");
mainWindow.show();
exec = app.exec();
return exec;
}
To copy to clipboard, switch view to plain text mode
sry for my bad english!
Bookmarks