stereoMatching
29th July 2012, 05:37
#include <QtCore>
#include <QtGui>
int main(int argc, char **argv)
{
QApplication app( argc, argv );
QFileSystemModel model;
QString const rootPath = "E:/file_test/very big";
QTableView view;
view.setModel(&model);
view.setRootIndex(model.setRootPath(rootPath));
QSplitter splitter;
splitter.addWidget(&view);
splitter.show();
return app.exec();
}
Under the folder "very big" consist 8448 jpg, when I using a tool(Bulk rename utility) to rename the
jpg under "very big", the program will crash. How could I stop the self updating function of QFileSystemModel?
Thanks
Added after 5 minutes:
I want to told QFileSystemModel don't update the data even there are files being renamed
Do I have to reimplement some functions of QFileSystemModel?Thanks
#include <QtGui>
int main(int argc, char **argv)
{
QApplication app( argc, argv );
QFileSystemModel model;
QString const rootPath = "E:/file_test/very big";
QTableView view;
view.setModel(&model);
view.setRootIndex(model.setRootPath(rootPath));
QSplitter splitter;
splitter.addWidget(&view);
splitter.show();
return app.exec();
}
Under the folder "very big" consist 8448 jpg, when I using a tool(Bulk rename utility) to rename the
jpg under "very big", the program will crash. How could I stop the self updating function of QFileSystemModel?
Thanks
Added after 5 minutes:
I want to told QFileSystemModel don't update the data even there are files being renamed
Do I have to reimplement some functions of QFileSystemModel?Thanks