知识-QT读取本地文件夹内容

QT读取本地文件夹

读取本地单个文件

QString file = QFileDialog::getOpenFileName(0, tr("Open a qds file"));

读取本地多个文件

QStringList files = QFileDialog::getOpenFileNames(
                        this,
                        "Select one or more files to open",
                        "/home",
                        "Images (*.png *.xpm *.jpg)");

[……]

继续阅读