Commit 93c73f04 by 刘帅

页面展示版本

parent ab1c6221
......@@ -11,6 +11,7 @@
#include <QHBoxLayout>
#include <QScrollBar>
#include <QDir>
#include <memory>
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
......@@ -36,7 +37,10 @@ MainWindow::MainWindow(QWidget *parent) :
m_timeTimer.start(1000);
// 版本显示
ui->main_labVersion->setText(PRODUCT_VERSION);
std::shared_ptr<QSettings> setting = std::make_shared<QSettings>(QString("%1/update.ini").arg(QApplication::applicationDirPath()),
QSettings::IniFormat);
QString ver = setting->value("SoftInfo/version", "1.0.0").toString(); //版本
ui->main_labVersion->setText(ver);
// 店名显示
ui->main_labStoreName->setText("<font color='#ff0000'>未登录</font>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment