#include <QFileDialog>
#pragma execution_character_set("utf-8")
QString path = QFileDialog::getOpenFileName(this, tr("选择文件"), ".", tr("s3c文件(*.s3c);;全部文件(*.*)"));
std::string s = path.toLocal8Bit();
#include <QFileDialog>
#pragma execution_character_set("utf-8")
QString path = QFileDialog::getOpenFileName(this, tr("选择文件"), ".", tr("s3c文件(*.s3c);;全部文件(*.*)"));
std::string s = path.toLocal8Bit();
转载于:https://www.cnblogs.com/coolbear/p/7149773.html