Why are you mixing up a Windows API WinMain() entry point with a Qt main() entry point? If you are writing a Qt app, all you need is main() and it will compile and run anywhere:
#include <QApplication>
#include "mainwindow.h"
// I have no idea why you are doing this. Are you blindly copying an example
// from somewhere without having any idea what you are doing? You aren't
// using plugins anywhere in this code.
#ifndef Q_WS_X11
#include <QtPlugin>
#endif
int main(int argc, char *argv[])
{
MainWindow w;
return a.exec();
}
#include <QApplication>
#include "mainwindow.h"
// I have no idea why you are doing this. Are you blindly copying an example
// from somewhere without having any idea what you are doing? You aren't
// using plugins anywhere in this code.
#ifndef Q_WS_X11
#include <QtPlugin>
#endif
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks