#include "mainwindow.h" #include "path.h" #include #include #include using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; QFile file("data/parcours1.json"); if (!file.open(QIODevice::ReadOnly)) { qWarning() << "Impossible d'ouvrir le fichier data/parcours1.json"; return -1; } Path* p = new Path(&file); file.close(); QList paths = w.getPath(); paths.append(p); w.setPath(paths); w.setCurrentPath(p); w.exportHTMLMap(); //w.show(); return a.exec(); }