TG-PlatformPlus/ui/userForm.ui

341 lines
10 KiB
Plaintext
Raw Normal View History

2026-03-02 14:29:58 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>userForm</class>
<widget class="QWidget" name="userForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>852</width>
<height>653</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>12</number>
</property>
<property name="rightMargin">
<number>10</number>
</property>
<property name="bottomMargin">
<number>10</number>
</property>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="styleSheet">
<string notr="true"> QWidget {
background-color: white; /* 子部件的样式 */
border-radius: 9px;
}
QWidget QPushButton {
subcontrol-origin: content; /* 设置子部件的原点为content */
border-radius: 2px;
}
QWidget QPushButton:hover {
subcontrol-origin: content;
background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */
border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */
}
QWidget QPushButton:pressed {
subcontrol-origin: content;
background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */
border-radius: 2px; /* 按钮按下时的边框为红色实线 */
}
QToolTip {
background-color: #FFFFE0;
color: black;
border: 1px solid black;
padding: 5px;
border-radius: 3px;
opacity: 200;
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>10</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>15</number>
</property>
<property name="leftMargin">
<number>20</number>
</property>
<property name="topMargin">
<number>18</number>
</property>
<property name="rightMargin">
<number>30</number>
</property>
<property name="bottomMargin">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>黑体</family>
<pointsize>18</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>用户管理</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<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="QPushButton" name="pbCreateUser">
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>创建设备模型</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/resource/add.svg</normaloff>:/resource/add.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbDeleteUser">
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>删除设备模型</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/resource/remove.svg</normaloff>:/resource/remove.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbEditUser">
<property name="minimumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>编辑设备模型</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="res.qrc">
<normaloff>:/resource/edit.svg</normaloff>:/resource/edit.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>21</width>
<height>21</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTableView" name="tableViewUser">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true"> QWidget {
background-color: white; /* 子部件的样式 */
border-radius: 1px;
}
QTableView {
background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */
alternate-background-color: #F8F9FA;
selection-color: #262626; /* 设置选中行的文本颜色为白色 */
}
QTableView::item:selected {
background-color: #D9D9D9;
}
QHeaderView::section:horizontal {
background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
border: 0; /* 移除表头的边框 */
padding: 4px; /* 设置表头的内边距 */
text-align: center; /* 让表头文本居中显示 */
}
QHeaderView::section:vertical {
border: 0; /* 移除表头的边框 */
}
QScrollBar:vertical {
background: #BFBFBF; /* 设置垂直滚动条的背景颜色为浅灰色 */
width: 3px; /* 设置滚动条的宽度 */
margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */
}
QScrollBar::handle:vertical {
background: #c0c0c0; /* 设置滚动条拖动手柄的背景颜色为灰色 */
min-height: 34px; /* 设置滚动条拖动手柄的最小高度 */
}
QScrollBar::add-line:vertical {
height: 0px; /* 设置垂直滚动条向下箭头的高度为0即不显示 */
}
QScrollBar::sub-line:vertical {
height: 0px; /* 设置垂直滚动条向上箭头的高度为0即不显示 */
}
QScrollBar:horizontal {
background: #BFBFBF; /* 设置横向滚动条的背景颜色为浅灰色 */
height: 5px; /* 设置滚动条的高度 */
margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */
}
QScrollBar::handle:horizontal {
background: #c0c0c0; /* 设置滚动条拖动手柄的背景颜色为灰色 */
min-width: 34px; /* 设置滚动条拖动手柄的最小宽度 */
}
QScrollBar::add-line:horizontal {
width: 0px; /* 设置横向滚动条向右箭头的宽度为0即不显示 */
}
QScrollBar::sub-line:horizontal {
width: 0px; /* 设置横向滚动条向左箭头的宽度为0即不显示 */
}</string>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderHighlightSections">
<bool>true</bool>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="res.qrc"/>
</resources>
<connections/>
</ui>