Skip to content

Commit a3c6a82

Browse files
添加json格式化工具,用于辅助测试json问题
1 parent 905a126 commit a3c6a82

File tree

2 files changed

+74
-12
lines changed

2 files changed

+74
-12
lines changed

qt_json/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MainWindow::MainWindow(QWidget *parent) :
99
ui(new Ui::MainWindow)
1010
{
1111
ui->setupUi(this);
12-
setWindowTitle("Topic辅助工具");
12+
setWindowTitle("Json格式化工具");
1313

1414
m_lpJsoFormPlant = new JsonFormPlant;
1515

qt_json/mainwindow.ui

Lines changed: 73 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>1117</width>
10-
<height>579</height>
9+
<width>893</width>
10+
<height>722</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -48,17 +48,79 @@
4848
<attribute name="title">
4949
<string>Tab 1</string>
5050
</attribute>
51-
<layout class="QGridLayout" name="gridLayout">
51+
<layout class="QGridLayout" name="gridLayout_2">
5252
<item row="0" column="0">
53-
<layout class="QHBoxLayout" name="horizontalLayout_3">
53+
<layout class="QHBoxLayout" name="horizontalLayout">
5454
<item>
5555
<layout class="QVBoxLayout" name="verticalLayout">
5656
<item>
57-
<layout class="QHBoxLayout" name="horizontalLayout">
58-
<item>
57+
<layout class="QGridLayout" name="gridLayout">
58+
<property name="verticalSpacing">
59+
<number>0</number>
60+
</property>
61+
<item row="0" column="0">
62+
<widget class="QLabel" name="label_2">
63+
<property name="maximumSize">
64+
<size>
65+
<width>16777215</width>
66+
<height>12</height>
67+
</size>
68+
</property>
69+
<property name="text">
70+
<string> Key 值</string>
71+
</property>
72+
</widget>
73+
</item>
74+
<item row="0" column="1">
75+
<widget class="QLabel" name="label_3">
76+
<property name="text">
77+
<string>类型</string>
78+
</property>
79+
</widget>
80+
</item>
81+
<item row="0" column="2">
82+
<widget class="QLabel" name="label_4">
83+
<property name="minimumSize">
84+
<size>
85+
<width>0</width>
86+
<height>0</height>
87+
</size>
88+
</property>
89+
<property name="maximumSize">
90+
<size>
91+
<width>16777215</width>
92+
<height>16777215</height>
93+
</size>
94+
</property>
95+
<property name="text">
96+
<string> Value</string>
97+
</property>
98+
</widget>
99+
</item>
100+
<item row="0" column="3">
101+
<widget class="QLabel" name="label_5">
102+
<property name="text">
103+
<string> 步长</string>
104+
</property>
105+
</widget>
106+
</item>
107+
<item row="0" column="4">
108+
<spacer name="horizontalSpacer_3">
109+
<property name="orientation">
110+
<enum>Qt::Horizontal</enum>
111+
</property>
112+
<property name="sizeHint" stdset="0">
113+
<size>
114+
<width>40</width>
115+
<height>20</height>
116+
</size>
117+
</property>
118+
</spacer>
119+
</item>
120+
<item row="1" column="0">
59121
<widget class="QLineEdit" name="lineEdit"/>
60122
</item>
61-
<item>
123+
<item row="1" column="1">
62124
<widget class="QComboBox" name="comboBox">
63125
<item>
64126
<property name="text">
@@ -77,13 +139,13 @@
77139
</item>
78140
</widget>
79141
</item>
80-
<item>
142+
<item row="1" column="2">
81143
<widget class="QLineEdit" name="lineEdit_2"/>
82144
</item>
83-
<item>
145+
<item row="1" column="3">
84146
<widget class="QSpinBox" name="spinBox_2"/>
85147
</item>
86-
<item>
148+
<item row="1" column="4">
87149
<widget class="QPushButton" name="pushButton">
88150
<property name="text">
89151
<string> 添加</string>
@@ -178,7 +240,7 @@
178240
<rect>
179241
<x>0</x>
180242
<y>0</y>
181-
<width>1117</width>
243+
<width>893</width>
182244
<height>22</height>
183245
</rect>
184246
</property>

0 commit comments

Comments
 (0)