scantool,修改窗口图标显示

This commit is contained in:
luoliangyi 2024-05-05 09:46:50 +08:00
parent edbd15d6a3
commit c4412b68cc
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ MainWindow::MainWindow(QWidget *parent)
, m_ocrThread(nullptr) , m_ocrThread(nullptr)
{ {
ui->setupUi(this); ui->setupUi(this);
this->setWindowIcon(QIcon(":images/image_rsc/png/logo.png"));
m_trayIcon = new QSystemTrayIcon(this); m_trayIcon = new QSystemTrayIcon(this);
m_trayIcon->setIcon(QIcon(":images/image_rsc/png/logo.png")); m_trayIcon->setIcon(QIcon(":images/image_rsc/png/logo.png"));

View File

@ -28,6 +28,8 @@ CONFIG(release, debug|release) {
MY_CONFIGURE = Release MY_CONFIGURE = Release
} }
RC_ICONS = ../../../app/scantool/image_rsc/ico/logo.ico
win32 { win32 {
MY_OS = windows MY_OS = windows