2202 lines
69 KiB
XML
2202 lines
69 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>devModelForm</class>
|
|
<widget class="QWidget" name="devModelForm">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1241</width>
|
|
<height>892</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</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="QSplitter" name="splitter">
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(255, 255, 255, 0);</string>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="handleWidth">
|
|
<number>11</number>
|
|
</property>
|
|
<widget class="QWidget" name="w1" native="true">
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_11" stretch="3,7">
|
|
<property name="spacing">
|
|
<number>10</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>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="widgetDmGroup" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"> QWidget {
|
|
|
|
background-color: #FFFFFF; /* 子部件的样式 */
|
|
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_7">
|
|
<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_8">
|
|
<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>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_8">
|
|
<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_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="QPushButton" name="pbCreateModelGroup">
|
|
<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="pbDeleteModelGroup">
|
|
<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>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableViewDmGroup">
|
|
<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="focusPolicy">
|
|
<enum>Qt::NoFocus</enum>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget {
|
|
background-color: #ffffff; /* 子部件的样式 */
|
|
border-radius: 0px;
|
|
}
|
|
QTableView {
|
|
background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */
|
|
alternate-background-color: #F8F9FA;
|
|
selection-color: #262626; /* 设置选中行的文本颜色为白色 */
|
|
}
|
|
QTableView::item:selected {
|
|
background-color: #D9D9D9;
|
|
|
|
}
|
|
|
|
QTableView QTableCornerButton::section { /*左上角的button样式*/
|
|
background-color: #F7F7F7; /*背景颜色与表头一致*/
|
|
border: 0px;
|
|
border-radius:0px;
|
|
}
|
|
|
|
QHeaderView::section:horizontal {
|
|
background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
|
|
|
|
QHeaderView::section:vertical {
|
|
background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
/* 垂直滚动条 */
|
|
QScrollBar:vertical {
|
|
background: transparent; /* 滚动条背景透明[1,2](@ref) */
|
|
width: 8px; /* 默认宽度 */
|
|
border: none; /* 去除边框[2](@ref) */
|
|
margin: 0px 0px 0px 0px; /* 边距清零 */
|
|
}
|
|
|
|
/* 水平滚动条 */
|
|
QScrollBar:horizontal {
|
|
background: transparent;
|
|
height: 8px;
|
|
border: none;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
|
|
/* 滑块通用样式 */
|
|
QScrollBar::handle:vertical,
|
|
QScrollBar::handle:horizontal {
|
|
background: #DDDDDD; /* 浅灰色滑块[1](@ref) */
|
|
border-radius: 4px; /* 圆角效果[2](@ref) */
|
|
min-height: 20px; /* 最小高度 */
|
|
min-width: 20px; /* 最小宽度 */
|
|
margin: 2px; /* 边距留白 */
|
|
}
|
|
|
|
/* 悬停时滑块样式 */
|
|
QScrollBar::handle:vertical:hover,
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #AAAAAA; /* 加深颜色[1](@ref) */
|
|
}
|
|
|
|
/* 隐藏上下箭头 */
|
|
QScrollBar::sub-line,
|
|
QScrollBar::add-line {
|
|
width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */
|
|
height: 0;
|
|
border: none;
|
|
}
|
|
|
|
/* 滚动条背景区域样式 */
|
|
QScrollBar::add-page:vertical,
|
|
QScrollBar::sub-page:vertical,
|
|
QScrollBar::add-page:horizontal,
|
|
QScrollBar::sub-page:horizontal {
|
|
background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */
|
|
}</string>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="editTriggers">
|
|
<set>QAbstractItemView::DoubleClicked</set>
|
|
</property>
|
|
<property name="dragEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="dragDropOverwriteMode">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="dragDropMode">
|
|
<enum>QAbstractItemView::DropOnly</enum>
|
|
</property>
|
|
<property name="defaultDropAction">
|
|
<enum>Qt::MoveAction</enum>
|
|
</property>
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::NoPen</enum>
|
|
</property>
|
|
<property name="sortingEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widgetDm" native="true">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"> QWidget {
|
|
|
|
background-color: #FFFFFF; /* 子部件的样式 */
|
|
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_6">
|
|
<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_6">
|
|
<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>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_6">
|
|
<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_10">
|
|
<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="pbExportModel">
|
|
<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/export.svg</normaloff>:/resource/export.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>21</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pbCreateModel">
|
|
<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="pbDeleteModel">
|
|
<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="pbEditModel">
|
|
<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>
|
|
<item>
|
|
<widget class="QPushButton" name="pbCopyModel">
|
|
<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/copy.svg</normaloff>:/resource/copy.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>21</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableViewModel">
|
|
<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="focusPolicy">
|
|
<enum>Qt::NoFocus</enum>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget {
|
|
background-color: #ffffff; /* 子部件的样式 */
|
|
border-radius: 0px;
|
|
}
|
|
QTableView {
|
|
background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */
|
|
alternate-background-color: #F8F9FA;
|
|
selection-color: #262626; /* 设置选中行的文本颜色为白色 */
|
|
}
|
|
QTableView::item:selected {
|
|
background-color: #D9D9D9;
|
|
|
|
}
|
|
QTableView QTableCornerButton::section { /*左上角的button样式*/
|
|
background-color: #F7F7F7; /*背景颜色与表头一致*/
|
|
border: 0px;
|
|
border-radius:0px;
|
|
}
|
|
|
|
QHeaderView::section:horizontal {
|
|
background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
QHeaderView::section:vertical {
|
|
background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
/* 垂直滚动条 */
|
|
QScrollBar:vertical {
|
|
background: transparent; /* 滚动条背景透明[1,2](@ref) */
|
|
width: 8px; /* 默认宽度 */
|
|
border: none; /* 去除边框[2](@ref) */
|
|
margin: 0px 0px 0px 0px; /* 边距清零 */
|
|
}
|
|
|
|
/* 水平滚动条 */
|
|
QScrollBar:horizontal {
|
|
background: transparent;
|
|
height: 8px;
|
|
border: none;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
|
|
/* 滑块通用样式 */
|
|
QScrollBar::handle:vertical,
|
|
QScrollBar::handle:horizontal {
|
|
background: #DDDDDD; /* 浅灰色滑块[1](@ref) */
|
|
border-radius: 4px; /* 圆角效果[2](@ref) */
|
|
min-height: 20px; /* 最小高度 */
|
|
min-width: 20px; /* 最小宽度 */
|
|
margin: 2px; /* 边距留白 */
|
|
}
|
|
|
|
/* 悬停时滑块样式 */
|
|
QScrollBar::handle:vertical:hover,
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #AAAAAA; /* 加深颜色[1](@ref) */
|
|
}
|
|
|
|
/* 隐藏上下箭头 */
|
|
QScrollBar::sub-line,
|
|
QScrollBar::add-line {
|
|
width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */
|
|
height: 0;
|
|
border: none;
|
|
}
|
|
|
|
/* 滚动条背景区域样式 */
|
|
QScrollBar::add-page:vertical,
|
|
QScrollBar::sub-page:vertical,
|
|
QScrollBar::add-page:horizontal,
|
|
QScrollBar::sub-page:horizontal {
|
|
background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */
|
|
}</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="dragDropOverwriteMode">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="dragDropMode">
|
|
<enum>QAbstractItemView::DragDrop</enum>
|
|
</property>
|
|
<property name="defaultDropAction">
|
|
<enum>Qt::CopyAction</enum>
|
|
</property>
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::NoPen</enum>
|
|
</property>
|
|
<property name="sortingEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="w2" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>200</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>400</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="3,4,3">
|
|
<property name="spacing">
|
|
<number>10</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>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="widget_7" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>400</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"> QWidget {
|
|
|
|
background-color: white; /* 子部件的样式 */
|
|
border-radius: 9px;
|
|
} </string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_10">
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>10</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<property name="leftMargin">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>18</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>17</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_8">
|
|
<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>
|
|
<widget class="QWidget" name="widget_3" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>1</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777214</width>
|
|
<height>1</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(241, 241, 241);</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>200</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(241, 241, 241);
|
|
border-radius: 0px;</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_9">
|
|
<item>
|
|
<widget class="QLabel" name="lbDevModelImage">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>200</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>200</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>黑体</family>
|
|
<pointsize>40</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="layoutDirection">
|
|
<enum>Qt::LeftToRight</enum>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">color: rgb(221, 221, 221);</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>封面</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget_8" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>400</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<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;
|
|
}
|
|
QComboBox {
|
|
color: #000000
|
|
}
|
|
QComboBox::drop-down {
|
|
border: none
|
|
}
|
|
QComboBox::down-arrow {
|
|
image: url(:/resource/dropdown.svg);
|
|
width: 18px;
|
|
height: 18px;
|
|
}</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<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_4">
|
|
<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>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<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_11">
|
|
<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="pbAddInterfaceType">
|
|
<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="pbDeleteInterfaceType">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>28</width>
|
|
<height>28</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>28</width>
|
|
<height>28</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>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableViewInterFaceType">
|
|
<property name="focusPolicy">
|
|
<enum>Qt::NoFocus</enum>
|
|
</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; /* 设置表头的内边距 */
|
|
}
|
|
|
|
QHeaderView::section:vertical {
|
|
background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
/* 垂直滚动条 */
|
|
QScrollBar:vertical {
|
|
background: transparent; /* 滚动条背景透明[1,2](@ref) */
|
|
width: 8px; /* 默认宽度 */
|
|
border: none; /* 去除边框[2](@ref) */
|
|
margin: 0px 0px 0px 0px; /* 边距清零 */
|
|
}
|
|
|
|
/* 水平滚动条 */
|
|
QScrollBar:horizontal {
|
|
background: transparent;
|
|
height: 8px;
|
|
border: none;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
|
|
/* 滑块通用样式 */
|
|
QScrollBar::handle:vertical,
|
|
QScrollBar::handle:horizontal {
|
|
background: #DDDDDD; /* 浅灰色滑块[1](@ref) */
|
|
border-radius: 4px; /* 圆角效果[2](@ref) */
|
|
min-height: 20px; /* 最小高度 */
|
|
min-width: 20px; /* 最小宽度 */
|
|
margin: 2px; /* 边距留白 */
|
|
}
|
|
|
|
/* 悬停时滑块样式 */
|
|
QScrollBar::handle:vertical:hover,
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #AAAAAA; /* 加深颜色[1](@ref) */
|
|
}
|
|
|
|
/* 隐藏上下箭头 */
|
|
QScrollBar::sub-line,
|
|
QScrollBar::add-line {
|
|
width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */
|
|
height: 0;
|
|
border: none;
|
|
}
|
|
|
|
/* 滚动条背景区域样式 */
|
|
QScrollBar::add-page:vertical,
|
|
QScrollBar::sub-page:vertical,
|
|
QScrollBar::add-page:horizontal,
|
|
QScrollBar::sub-page:horizontal {
|
|
background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */
|
|
}</string>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="tabKeyNavigation">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="showDropIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</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>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget_9" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>400</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<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_5">
|
|
<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>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
<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>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_4">
|
|
<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_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>
|
|
<item>
|
|
<widget class="QPushButton" name="pbAddProperty">
|
|
<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="pbDeleteProperty">
|
|
<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>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableViewProperty">
|
|
<property name="focusPolicy">
|
|
<enum>Qt::NoFocus</enum>
|
|
</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; /* 设置表头的内边距 */
|
|
}
|
|
|
|
QHeaderView::section:vertical {
|
|
background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
QScrollBar:vertical {
|
|
background: #BFBFBF; /* 设置垂直滚动条的背景颜色为浅灰色 */
|
|
width: 3px; /* 设置滚动条的宽度 */
|
|
margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */
|
|
}
|
|
|
|
/* 垂直滚动条 */
|
|
QScrollBar:vertical {
|
|
background: transparent; /* 滚动条背景透明[1,2](@ref) */
|
|
width: 8px; /* 默认宽度 */
|
|
border: none; /* 去除边框[2](@ref) */
|
|
margin: 0px 0px 0px 0px; /* 边距清零 */
|
|
}
|
|
|
|
/* 水平滚动条 */
|
|
QScrollBar:horizontal {
|
|
background: transparent;
|
|
height: 8px;
|
|
border: none;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
|
|
/* 滑块通用样式 */
|
|
QScrollBar::handle:vertical,
|
|
QScrollBar::handle:horizontal {
|
|
background: #DDDDDD; /* 浅灰色滑块[1](@ref) */
|
|
border-radius: 4px; /* 圆角效果[2](@ref) */
|
|
min-height: 20px; /* 最小高度 */
|
|
min-width: 20px; /* 最小宽度 */
|
|
margin: 2px; /* 边距留白 */
|
|
}
|
|
|
|
/* 悬停时滑块样式 */
|
|
QScrollBar::handle:vertical:hover,
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #AAAAAA; /* 加深颜色[1](@ref) */
|
|
}
|
|
|
|
/* 隐藏上下箭头 */
|
|
QScrollBar::sub-line,
|
|
QScrollBar::add-line {
|
|
width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */
|
|
height: 0;
|
|
border: none;
|
|
}
|
|
|
|
/* 滚动条背景区域样式 */
|
|
QScrollBar::add-page:vertical,
|
|
QScrollBar::sub-page:vertical,
|
|
QScrollBar::add-page:horizontal,
|
|
QScrollBar::sub-page:horizontal {
|
|
background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */
|
|
}
|
|
</string>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="tabKeyNavigation">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="showDropIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="w3" native="true">
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_14" stretch="7,3">
|
|
<property name="spacing">
|
|
<number>10</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>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="w3_1" 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_8">
|
|
<property name="spacing">
|
|
<number>6</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_7">
|
|
<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>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_7">
|
|
<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_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>
|
|
<item>
|
|
<widget class="QPushButton" name="pbCreateCmd">
|
|
<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="pbDeleteCmd">
|
|
<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="pbEditCmd">
|
|
<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>
|
|
<item>
|
|
<widget class="QPushButton" name="pbEditScript">
|
|
<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>编辑脚本Ctrl+E</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/resource/cmd.svg</normaloff>:/resource/cmd.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>21</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+E</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pbCopyInstruction">
|
|
<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/copy.svg</normaloff>:/resource/copy.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>21</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTableView" name="tableViewCmd">
|
|
<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="focusPolicy">
|
|
<enum>Qt::NoFocus</enum>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget {
|
|
background-color: #ffffff; /* 子部件的样式 */
|
|
border-radius: 0px;
|
|
}
|
|
QTableView {
|
|
background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */
|
|
alternate-background-color: #F8F9FA;
|
|
selection-color: #262626; /* 设置选中行的文本颜色为白色 */
|
|
}
|
|
QTableView::item:selected {
|
|
background-color: #D9D9D9;
|
|
|
|
}
|
|
QTableView QTableCornerButton::section { /*左上角的button样式*/
|
|
background-color: #F7F7F7; /*背景颜色与表头一致*/
|
|
border: 0px;
|
|
border-radius:0px;
|
|
}
|
|
|
|
QHeaderView::section:horizontal {
|
|
background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
|
|
|
|
QHeaderView::section:selected {
|
|
background-color: #C4E1FF; /* Set the background color of selected header to light blue */
|
|
color: #262626; /* Set the text color of selected header to white */
|
|
}
|
|
QHeaderView::section:vertical {
|
|
background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */
|
|
color: #8C8C8C; /* 设置表头的文本颜色为黑色 */
|
|
border: 0; /* 移除表头的边框 */
|
|
padding: 4px; /* 设置表头的内边距 */
|
|
}
|
|
|
|
/* 垂直滚动条 */
|
|
QScrollBar:vertical {
|
|
background: transparent; /* 滚动条背景透明[1,2](@ref) */
|
|
width: 8px; /* 默认宽度 */
|
|
border: none; /* 去除边框[2](@ref) */
|
|
margin: 0px 0px 0px 0px; /* 边距清零 */
|
|
}
|
|
|
|
/* 水平滚动条 */
|
|
QScrollBar:horizontal {
|
|
background: transparent;
|
|
height: 8px;
|
|
border: none;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
|
|
/* 滑块通用样式 */
|
|
QScrollBar::handle:vertical,
|
|
QScrollBar::handle:horizontal {
|
|
background: #DDDDDD; /* 浅灰色滑块[1](@ref) */
|
|
border-radius: 4px; /* 圆角效果[2](@ref) */
|
|
min-height: 20px; /* 最小高度 */
|
|
min-width: 20px; /* 最小宽度 */
|
|
margin: 2px; /* 边距留白 */
|
|
}
|
|
|
|
/* 悬停时滑块样式 */
|
|
QScrollBar::handle:vertical:hover,
|
|
QScrollBar::handle:horizontal:hover {
|
|
background: #AAAAAA; /* 加深颜色[1](@ref) */
|
|
}
|
|
|
|
/* 隐藏上下箭头 */
|
|
QScrollBar::sub-line,
|
|
QScrollBar::add-line {
|
|
width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */
|
|
height: 0;
|
|
border: none;
|
|
}
|
|
|
|
/* 滚动条背景区域样式 */
|
|
QScrollBar::add-page:vertical,
|
|
QScrollBar::sub-page:vertical,
|
|
QScrollBar::add-page:horizontal,
|
|
QScrollBar::sub-page:horizontal {
|
|
background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */
|
|
}</string>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAsNeeded</enum>
|
|
</property>
|
|
<property name="editTriggers">
|
|
<set>QAbstractItemView::NoEditTriggers</set>
|
|
</property>
|
|
<property name="dragEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="dragDropOverwriteMode">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="dragDropMode">
|
|
<enum>QAbstractItemView::DragOnly</enum>
|
|
</property>
|
|
<property name="defaultDropAction">
|
|
<enum>Qt::CopyAction</enum>
|
|
</property>
|
|
<property name="alternatingRowColors">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="sortingEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="w3_2" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>279</height>
|
|
</size>
|
|
</property>
|
|
<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_13">
|
|
<property name="leftMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>16</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>10</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_12">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<property name="spacing">
|
|
<number>15</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>18</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>17</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_5">
|
|
<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_9">
|
|
<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="pbEditDescription">
|
|
<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>编辑脚本Ctrl+E</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>
|
|
<property name="shortcut">
|
|
<string>Ctrl+E</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pbSaveDescription">
|
|
<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/ok.svg</normaloff>:/resource/ok.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>21</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget_4" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>1</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777214</width>
|
|
<height>1</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(241, 241, 241);</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTextEdit" name="textEditDescription">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">
|
|
QTextEdit {
|
|
border-radius: 0px;
|
|
border-color: rgb(0, 0, 0);
|
|
background-color: rgb(248, 249, 250);
|
|
}</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources>
|
|
<include location="res.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|