调整页面的布局

This commit is contained in:
halliday2023 2024-02-25 16:19:26 +08:00
parent 0774a85101
commit 214c5ec3c4
1 changed files with 550 additions and 582 deletions

View File

@ -28,93 +28,40 @@
<attribute name="title">
<string>文件</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<layout class="QVBoxLayout" name="verticalLayout_13">
<item>
<layout class="QVBoxLayout" name="verticalLayout_10" stretch="2,0,3,0">
<layout class="QVBoxLayout" name="verticalLayout_10" stretch="2,3">
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>基本信息:</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>11</x>
<y>20</y>
<width>378</width>
<height>132</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,0,0,1">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="filename_label">
<property name="text">
<string>文件名</string>
</property>
</widget>
</item>
<item>
<item row="1" column="0">
<widget class="QLabel" name="output_label">
<property name="text">
<string>输出路径</string>
</property>
</widget>
</item>
<item>
<item row="2" column="0">
<widget class="QLabel" name="fileinit_label">
<property name="text">
<string>初始数据量</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5" stretch="0,0">
<item>
<widget class="QLineEdit" name="fileNameText">
<property name="text">
<string>filetest</string>
</property>
<property name="placeholderText">
<string>文件名</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>24</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9" stretch="5,0">
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLineEdit" name="fileOutputText">
<property name="placeholderText">
@ -123,23 +70,9 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="choosedir_Button">
<widget class="QToolButton" name="choosedir_Button">
<property name="text">
<string>选择目录</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLineEdit" name="fileInitRowsText">
<property name="text">
<string>10</string>
</property>
<property name="placeholderText">
<string/>
<string>...</string>
</property>
</widget>
</item>
@ -158,20 +91,17 @@
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<widget class="QLineEdit" name="fileNameText">
<property name="text">
<string>filetest</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
<property name="placeholderText">
<string>文件名</string>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
@ -187,36 +117,115 @@
</spacer>
</item>
</layout>
</widget>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLineEdit" name="fileInitRowsText">
<property name="text">
<string>10</string>
</property>
<property name="placeholderText">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>参数配置:</string>
</property>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>12</x>
<y>64</y>
<width>337</width>
<height>72</height>
</rect>
<layout class="QHBoxLayout" name="horizontalLayout_20">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8" stretch="0,1">
<item>
<spacer name="horizontalSpacer_15">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="filearges_bool_label">
<property name="text">
<string>是否持续生成:</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>是/否</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_17">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11" stretch="0,1">
<item>
<spacer name="horizontalSpacer_16">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
@ -241,7 +250,7 @@
<bool>true</bool>
</property>
<property name="text">
<string>200</string>
<string>100</string>
</property>
</widget>
</item>
@ -281,53 +290,30 @@
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>12</x>
<y>27</y>
<width>174</width>
<height>22</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="filearges_bool_label">
<property name="text">
<string>是否持续生成:</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>是/否</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
@ -335,145 +321,58 @@
<attribute name="title">
<string>数据库</string>
</attribute>
<widget class="QLabel" name="db_type_label">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>71</width>
<height>21</height>
</rect>
<layout class="QHBoxLayout" name="horizontalLayout_19">
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>连接信息:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="db_type_label">
<property name="text">
<string>数据库类型</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="IP_label">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>IP地址</string>
</property>
</widget>
<widget class="QLabel" name="port_label">
<property name="geometry">
<rect>
<x>200</x>
<y>60</y>
<width>31</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>端口</string>
</property>
</widget>
<widget class="QLabel" name="db_database_label">
<property name="geometry">
<rect>
<x>300</x>
<y>60</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Database</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="db_servername_label">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>服务名</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="db_user_label">
<property name="geometry">
<rect>
<x>20</x>
<y>130</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>用户名</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="db_passwd_label">
<property name="geometry">
<rect>
<x>20</x>
<y>160</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>密码</string>
</property>
</widget>
<widget class="QLabel" name="db_arges_label">
<property name="geometry">
<rect>
<x>0</x>
<y>240</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>参数配置:</string>
</property>
</widget>
<widget class="QLabel" name="db_info_label">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>71</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>连接信息:</string>
</property>
</widget>
<widget class="QPushButton" name="conn_Button">
<property name="geometry">
<rect>
<x>10</x>
<y>200</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>测试连接</string>
<string>密 码</string>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_16">
<item>
<widget class="QComboBox" name="db_type_Box">
<property name="geometry">
<rect>
<x>90</x>
<y>30</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>MySQL5</string>
@ -495,65 +394,93 @@
</property>
</item>
</widget>
<widget class="QLineEdit" name="IP_text">
<property name="geometry">
<rect>
<x>90</x>
<y>60</y>
<width>101</width>
</item>
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</rect>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QLineEdit" name="IP_text"/>
</item>
<item>
<widget class="QLabel" name="port_label">
<property name="text">
<string>端口</string>
</property>
</widget>
<widget class="QLineEdit" name="port_text">
<property name="geometry">
<rect>
<x>230</x>
<y>60</y>
<width>61</width>
<height>20</height>
</rect>
</item>
<item>
<widget class="QLineEdit" name="port_text"/>
</item>
<item>
<widget class="QLabel" name="db_database_label">
<property name="text">
<string>Database</string>
</property>
</widget>
<widget class="QLineEdit" name="db_database_text">
<property name="geometry">
<rect>
<x>360</x>
<y>60</y>
<width>81</width>
<height>20</height>
</rect>
</item>
<item>
<widget class="QLineEdit" name="db_database_text"/>
</item>
</layout>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLineEdit" name="db_servername_text"/>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QLineEdit" name="db_servername_text">
<property name="geometry">
<rect>
<x>90</x>
<y>90</y>
<width>101</width>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</rect>
</size>
</property>
</widget>
<widget class="QLineEdit" name="db_user_text">
<property name="geometry">
<rect>
<x>90</x>
<y>130</y>
<width>101</width>
</spacer>
</item>
</layout>
</item>
<item row="3" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="QLineEdit" name="db_user_text"/>
</item>
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</rect>
</size>
</property>
</widget>
</spacer>
</item>
</layout>
</item>
<item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_15">
<item>
<widget class="QLineEdit" name="db_passwd_text">
<property name="geometry">
<rect>
<x>90</x>
<y>160</y>
<width>101</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string/>
</property>
@ -564,29 +491,118 @@
<string/>
</property>
</widget>
<widget class="QLabel" name="db_insert_label">
<property name="geometry">
<rect>
<x>40</x>
<y>260</y>
<width>101</width>
<height>41</height>
</rect>
</item>
<item>
<spacer name="horizontalSpacer_12">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<item>
<widget class="QPushButton" name="conn_Button">
<property name="text">
<string>测试连接</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>参数配置:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_18">
<item>
<spacer name="horizontalSpacer_14">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="db_insert_label">
<property name="text">
<string>每次插入数据量:</string>
</property>
</widget>
<widget class="QLineEdit" name="db_insert_text">
<property name="geometry">
<rect>
<x>140</x>
<y>270</y>
<width>101</width>
<height>20</height>
</rect>
</item>
<item>
<widget class="QLineEdit" name="db_insert_text"/>
</item>
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
@ -781,54 +797,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>tabWidget</sender>
<signal>tabBarClicked(int)</signal>
<receiver>db_servername_label</receiver>
<slot>hide()</slot>
<hints>
<hint type="sourcelabel">
<x>88</x>
<y>45</y>
</hint>
<hint type="destinationlabel">
<x>66</x>
<y>156</y>
</hint>
</hints>
</connection>
<connection>
<sender>db_type_Box</sender>
<signal>currentTextChanged(QString)</signal>
<receiver>db_servername_label</receiver>
<slot>show()</slot>
<hints>
<hint type="sourcelabel">
<x>151</x>
<y>104</y>
</hint>
<hint type="destinationlabel">
<x>78</x>
<y>154</y>
</hint>
</hints>
</connection>
<connection>
<sender>choosedir_Button</sender>
<signal>clicked(bool)</signal>
<receiver>MainWindow</receiver>
<slot>choosedir()</slot>
<hints>
<hint type="sourcelabel">
<x>302</x>
<y>137</y>
</hint>
<hint type="destinationlabel">
<x>428</x>
<y>31</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>start()</slot>