#include "view/MainWindow.h" #include #include #include #include #include #include #include "parser/JsonParser.h" #include "viewmodel/table/LogTableModel.h" int main(int argc, char* argv[]) { QApplication a(argc, argv); MainWindow w; QString jsonString = R"( {"id":"stderr","level":1,"location":{"file":"../../../host-projects/sono/logic/src/viewModel/factory/ApplicationStarter.cpp","func":"init","lineno":69},"msg":["FUCK\n"],"scope":"global","threadId":124330260010752,"timestamp":1716911725703} )"; auto warehouse = std::make_shared(); warehouse->addData(JsonParser().parse(jsonString)); auto model = new LogTableModel(warehouse); w.setTable(model); w.show(); return a.exec(); }