TomASS
7th November 2009, 17:56
i'm showing a dir content by:
QDirModel *model = new QDirModel;
QTreeView *tree = new QTreeView();
tree->setModel(model);
tree->setRootIndex(model->index(QDir::currentPath()));
layout->addWidget(tree,0,0,1,1);
And the question is - how to "run" a file whith is clicked in application depend of the filetype (example like in windows)
QDirModel *model = new QDirModel;
QTreeView *tree = new QTreeView();
tree->setModel(model);
tree->setRootIndex(model->index(QDir::currentPath()));
layout->addWidget(tree,0,0,1,1);
And the question is - how to "run" a file whith is clicked in application depend of the filetype (example like in windows)