在main中这么写的
#include "mainwindow.h"
#include
#include"plotline.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
PlotLines line;
line.show();
return a.exec();
}
这样写也出现了问题,这个问题不是说要先创建QApplication吗?已经先创建了还是出现这个错误
Starting C:\Users\Administrator\Documents\build-untitled1-Desktop_Qt_5_4_1_MSVC2013_64bit-Debug\debug\untitled1.exe...
QWidget: Must construct a QApplication before a QWidget
C:\Users\Administrator\Documents\build-untitled1-Desktop_Qt_5_4_1_MSVC2013_64bit-Debug\debug\untitled1.exe exited with code 1