12345678910111213141516171819202122232425 |
- #include "mainwindow.h"
- #include "readJsonSrc.h"
- #include <QApplication>
- #include <iostream>
- int main(int argc, char *argv[])
- {
- QApplication a(argc, argv);
- MainWindow w;
- w.show();
- return a.exec();
- ReadJsonSrc src("/Users/menglanluo/redFiles/action.json");
- // for(const auto &i:src.collAnimVec){
- // std::cout<<"name:"<<qPrintable(i.name)<<std::endl;
- // std::cout<<"id:"<<qPrintable(i.id)<<std::endl;
- // std::cout<<"fields"<<std::endl;
- // for(const auto &j:i.fields){
- // std::cout<<"field name:"<<qPrintable(j.name)<<std::endl;
- // std::cout<<"field id:"<<qPrintable(j.id)<<std::endl;
- // std::cout<<"field type:"<<qPrintable(j.type)<<std::endl;
- // std::cout<<"field src:"<<qPrintable(j.src)<<std::endl;
- // std::cout<<"field default:"<<qPrintable(j.defaultVal)<<std::endl;
- // }
- // }
- }
|