改进代码

This commit is contained in:
feiyangqingyun
2021-09-20 12:46:24 +08:00
parent e1065dd361
commit c1137a20ee
35 changed files with 1220 additions and 693 deletions

View File

@@ -7,6 +7,7 @@
frmIPAddress::frmIPAddress(QWidget *parent) : QWidget(parent), ui(new Ui::frmIPAddress)
{
ui->setupUi(this);
on_btnSetIP_clicked();
}
frmIPAddress::~frmIPAddress()

View File

@@ -6,19 +6,19 @@
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>300</height>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QWidget" name="">
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>481</width>
<x>10</x>
<y>10</y>
<width>281</width>
<height>71</height>
</rect>
</property>
@@ -29,7 +29,7 @@
<item row="1" column="0">
<widget class="QPushButton" name="btnSetIP">
<property name="text">
<string>设置IP</string>
<string>填入IP</string>
</property>
</widget>
</item>

View File

@@ -7,7 +7,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
a.setFont(QFont("Microsoft Yahei", 9));
#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))
#if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
#if _MSC_VER
QTextCodec *codec = QTextCodec::codecForName("gbk");
#else