Regression/src/main.cpp
2020-11-17 18:56:24 +01:00

32 lines
550 B
C++

#include <iostream>
#include <qmessagebox.h>
#include <qapplication.h>
#include "MainWindow.hpp"
#include <csv.h>
void DisplayQMessageBox(const QString& description)
{
QMessageBox msgBox;
msgBox.setWindowTitle("Error");
msgBox.setText(description);
msgBox.setIcon(QMessageBox::Icon::Critical);
msgBox.exec();
}
int main(int argc, char** argv)
{
QApplication app(argc, argv);
if (argc < 2)
{
DisplayQMessageBox("Too few arguments. Need at least one CSV file.");
return 1;
}
MainWindow window;
window.show();
return app.exec();
}