mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
18 lines
330 B
C++
18 lines
330 B
C++
|
#include <QApplication>
|
||
|
#include <QTreeView>
|
||
|
#include <QFileSystemModel>
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
QApplication app(argc, argv);
|
||
|
|
||
|
|
||
|
QFileSystemModel *model = new QFileSystemModel;
|
||
|
model->setRootPath(QDir::currentPath());
|
||
|
QTreeView *tree = new QTreeView();
|
||
|
tree->setModel(model);
|
||
|
|
||
|
tree->show();
|
||
|
|
||
|
return app.exec();
|
||
|
}
|