ccy
2026-05-18 3f6556ed37139142988bb8b697d8ff090de3df5f
Merge branch 'master' of http://117.78.1.188:8089/r/CNNCSIM-LIC
1个文件已修改
14 ■■■■ 已修改文件
mainwindow.cpp 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mainwindow.cpp
@@ -5,6 +5,7 @@
#include <QClipboard>
#include <QDateTime>
#include <QDebug>
#include <QDesktopServices>
#include <QFileDialog>
#include <QMessageBox>
#include <QProcess>
@@ -776,11 +777,10 @@
void MainWindow::on_pushButton_viewUsers_clicked()
{
    QString excelPath = QApplication::applicationDirPath();
    QString widgetTitle = QStringLiteral("打开文件");
    QString filename = QFileDialog::getOpenFileName(nullptr,(widgetTitle),excelPath,tr("excel(*.xlsx)"));
    if(filename=="")
    {
        return;
    }
    QString excelPath = QApplication::applicationDirPath()+QStringLiteral("/安全评价软件授权人数统计表.xlsx");
    QUrl fileUrl = QUrl::fromLocalFile(excelPath);
    // 2. 调用系统服务打开文件管理器并选中文件
    QDesktopServices::openUrl(fileUrl);
}