diff --git a/QtTcpEx/ExTcpClient/ExTcpClient.pro b/QtTcpEx/ExTcpClient/ExTcpClient.pro index 94f8e54..5225567 100644 --- a/QtTcpEx/ExTcpClient/ExTcpClient.pro +++ b/QtTcpEx/ExTcpClient/ExTcpClient.pro @@ -34,7 +34,25 @@ HEADERS += \ FORMS += \ ExTcpClient.ui +macx { +ICON = images/icon.icns +} + +unix:!macx{ +# linux only +} + +win32 { +RC_ICONS = images/icon.ico +} + # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + images/Image2.jpg \ + images/Image1.png \ + images/Image4.png \ + images/Image5.png diff --git a/QtTcpEx/ExTcpClient/ExTcpClient.ui b/QtTcpEx/ExTcpClient/ExTcpClient.ui index ecebee9..ad7579c 100644 --- a/QtTcpEx/ExTcpClient/ExTcpClient.ui +++ b/QtTcpEx/ExTcpClient/ExTcpClient.ui @@ -1,7 +1,8 @@ + ExTcpClient - - + + 0 0 @@ -9,16 +10,107 @@ 300 - + ExTcpClient - - - - + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 服务器地址: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + true + + + 127.0.0.1 + + + + + + + 端口: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 65000 + + + 10000 + + + + + + + + + + + + + + + + + 发送 + + + + + + + + + + + 0 + 0 + 400 + 25 + + + + + + TopToolBarArea + + + false + + - - + diff --git a/QtTcpEx/ExTcpClient/images/Image1.png b/QtTcpEx/ExTcpClient/images/Image1.png new file mode 100644 index 0000000..c2c4e0d Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image1.png differ diff --git a/QtTcpEx/ExTcpClient/images/Image2.jpg b/QtTcpEx/ExTcpClient/images/Image2.jpg new file mode 100644 index 0000000..46070af Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image2.jpg differ diff --git a/QtTcpEx/ExTcpClient/images/Image3.png b/QtTcpEx/ExTcpClient/images/Image3.png new file mode 100644 index 0000000..c9045da Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image3.png differ diff --git a/QtTcpEx/ExTcpClient/images/Image4.png b/QtTcpEx/ExTcpClient/images/Image4.png new file mode 100644 index 0000000..0319033 Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image4.png differ diff --git a/QtTcpEx/ExTcpClient/images/Image5.png b/QtTcpEx/ExTcpClient/images/Image5.png new file mode 100644 index 0000000..95ecf80 Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image5.png differ diff --git a/QtTcpEx/ExTcpClient/images/Image6.png b/QtTcpEx/ExTcpClient/images/Image6.png new file mode 100644 index 0000000..d246ada Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/Image6.png differ diff --git a/QtTcpEx/ExTcpClient/images/icon.icns b/QtTcpEx/ExTcpClient/images/icon.icns new file mode 100755 index 0000000..4f20853 Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/icon.icns differ diff --git a/QtTcpEx/ExTcpClient/images/icon.ico b/QtTcpEx/ExTcpClient/images/icon.ico new file mode 100755 index 0000000..0ee0568 Binary files /dev/null and b/QtTcpEx/ExTcpClient/images/icon.ico differ diff --git a/QtTcpEx/ExTcpServer/ExTcpServer.pro b/QtTcpEx/ExTcpServer/ExTcpServer.pro index 2a614cb..359cd8d 100644 --- a/QtTcpEx/ExTcpServer/ExTcpServer.pro +++ b/QtTcpEx/ExTcpServer/ExTcpServer.pro @@ -34,7 +34,25 @@ HEADERS += \ FORMS += \ ExTcpServer.ui +macx { +ICON = images/icon.icns +} + +unix:!macx{ +# linux only +} + +win32 { +RC_ICONS = images/icon.ico +} + # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + images/Image2.jpg \ + images/Image1.png \ + images/Image3.png \ + images/Image6.png diff --git a/QtTcpEx/ExTcpServer/ExTcpServer.ui b/QtTcpEx/ExTcpServer/ExTcpServer.ui index 5470fe7..bb4c7b7 100644 --- a/QtTcpEx/ExTcpServer/ExTcpServer.ui +++ b/QtTcpEx/ExTcpServer/ExTcpServer.ui @@ -1,24 +1,116 @@ + ExTcpServer - - + + 0 0 - 400 - 300 + 517 + 314 - + ExTcpServer - - - - + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 监听地址: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + true + + + 127.0.0.1 + + + + + + + 端口: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + 65000 + + + 10000 + + + + + + + + + + + + + + + + + 发送 + + + + + + + + + + + 0 + 0 + 517 + 25 + + + + + + TopToolBarArea + + + false + + - - + diff --git a/QtTcpEx/ExTcpServer/images/Image1.png b/QtTcpEx/ExTcpServer/images/Image1.png new file mode 100644 index 0000000..c2c4e0d Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image1.png differ diff --git a/QtTcpEx/ExTcpServer/images/Image2.jpg b/QtTcpEx/ExTcpServer/images/Image2.jpg new file mode 100644 index 0000000..46070af Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image2.jpg differ diff --git a/QtTcpEx/ExTcpServer/images/Image3.png b/QtTcpEx/ExTcpServer/images/Image3.png new file mode 100644 index 0000000..c9045da Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image3.png differ diff --git a/QtTcpEx/ExTcpServer/images/Image4.png b/QtTcpEx/ExTcpServer/images/Image4.png new file mode 100644 index 0000000..0319033 Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image4.png differ diff --git a/QtTcpEx/ExTcpServer/images/Image5.png b/QtTcpEx/ExTcpServer/images/Image5.png new file mode 100644 index 0000000..95ecf80 Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image5.png differ diff --git a/QtTcpEx/ExTcpServer/images/Image6.png b/QtTcpEx/ExTcpServer/images/Image6.png new file mode 100644 index 0000000..d246ada Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/Image6.png differ diff --git a/QtTcpEx/ExTcpServer/images/icon.icns b/QtTcpEx/ExTcpServer/images/icon.icns new file mode 100755 index 0000000..4f20853 Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/icon.icns differ diff --git a/QtTcpEx/ExTcpServer/images/icon.ico b/QtTcpEx/ExTcpServer/images/icon.ico new file mode 100755 index 0000000..0ee0568 Binary files /dev/null and b/QtTcpEx/ExTcpServer/images/icon.ico differ