QDir tempDir11(dataPathStringForToday_1);
QStringList filters;
filters << "*.bin" ;
tempDir11.setNameFilters(filters);
tempDir11.setSorting(QDir::Name);
按照名字由小到大排序:
使用倒序后: tempDir11.setSorting(QDir::Name|QDir::Reversed);
QDir tempDir11(dataPathStringForToday_1);
QStringList filters;
filters << "*.bin" ;
tempDir11.setNameFilters(filters);
tempDir11.setSorting(QDir::Name);
按照名字由小到大排序:
使用倒序后: tempDir11.setSorting(QDir::Name|QDir::Reversed);