0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 00:27:55 +08:00
2016-05-01 23:32:46 +03:00

27 lines
514 B
C++

#include <QApplication>
#include <QTreeView>
#include <QFileSystemModel>
#include "treemodel.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
//QFileSystemModel *model = new QFileSystemModel;
//model->setRootPath(QDir::currentPath());
QFile file("/home/yse/projects/easy_profiler/bin/test.prof");
file.open(QIODevice::ReadOnly);
TreeModel model(file.readAll());
file.close();
QTreeView *tree = new QTreeView();
tree->setModel(&model);
tree->show();
return app.exec( );
}