
Originally Posted by
Lykurg
Ehm, what bug? The only bugs I can see are in your code... E.g. mainlogin.h line 10 misses a } for closing the namespace.
I see that now... The odd thing is that Qt Actually generated most of the code... So that's worrying.. Anyways, I fixed it. And now for my debugging problem...
Debugging starts
QWidget: Must construct a QApplication before a QPaintDevice
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Debugging has finished
#include <QApplication>
#include "mainwin.h"
int main(int argc, char **argv)
{
mainwin w;
w.show();
return app.exec();
}
#include <QApplication>
#include "mainwin.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
mainwin w;
w.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
What do you guys think? Fail on my part or fail on the compilers fault?
Bookmarks