添加图标

This commit is contained in:
才明洋
2018-01-18 17:06:31 +08:00
parent 6dabd73d59
commit 82ccb3da77
4 changed files with 9 additions and 0 deletions
+3
View File
@@ -33,3 +33,6 @@ HEADERS += \
serialcontroller.h \
mainwidget.h \
mainwindow.h
RESOURCES += \
resource.qrc
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

+1
View File
@@ -4,6 +4,7 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon(QString(":/pic/icon/icon.png")));
MainWindow w;
w.show();
+5
View File
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/pic">
<file>icon/icon.png</file>
</qresource>
</RCC>