mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 08:15:30 +08:00
6.5.3 clean
This commit is contained in:
@ -143,8 +143,8 @@ MainWindow::MainWindow()
|
||||
void MainWindow::setDirectory(const QString &path)
|
||||
{
|
||||
QDir dir(path);
|
||||
QStringList files = dir.entryList(QDir::Files | QDir::Readable | QDir::NoDotAndDotDot);
|
||||
foreach(const QString &file, files) {
|
||||
const QStringList files = dir.entryList(QDir::Files | QDir::Readable | QDir::NoDotAndDotDot);
|
||||
for (const QString &file : files) {
|
||||
QImageReader img(path + QLatin1Char('/') +file);
|
||||
QImage image = img.read();
|
||||
if (!image.isNull()) {
|
||||
|
Reference in New Issue
Block a user