# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\devModelForm.ui' # # Created by: PyQt6 UI code generator 6.7.1 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets class Ui_devModelForm(object): def setupUi(self, devModelForm): devModelForm.setObjectName("devModelForm") devModelForm.resize(1241, 892) devModelForm.setStyleSheet("") self.verticalLayout_2 = QtWidgets.QVBoxLayout(devModelForm) self.verticalLayout_2.setContentsMargins(10, 12, 10, 10) self.verticalLayout_2.setObjectName("verticalLayout_2") self.splitter = QtWidgets.QSplitter(parent=devModelForm) self.splitter.setStyleSheet("background-color: rgba(255, 255, 255, 0);") self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) self.splitter.setHandleWidth(11) self.splitter.setObjectName("splitter") self.w1 = QtWidgets.QWidget(parent=self.splitter) self.w1.setStyleSheet("background-color: rgba(0, 0, 0, 0);") self.w1.setObjectName("w1") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.w1) self.verticalLayout_11.setContentsMargins(0, 0, 0, 0) self.verticalLayout_11.setSpacing(10) self.verticalLayout_11.setObjectName("verticalLayout_11") self.widgetDmGroup = QtWidgets.QWidget(parent=self.w1) self.widgetDmGroup.setMinimumSize(QtCore.QSize(0, 279)) self.widgetDmGroup.setMaximumSize(QtCore.QSize(16777215, 279)) self.widgetDmGroup.setStyleSheet(" QWidget {\n" " \n" " background-color: #FFFFFF; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}\n" "") self.widgetDmGroup.setObjectName("widgetDmGroup") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.widgetDmGroup) self.verticalLayout_7.setContentsMargins(0, 0, 0, 10) self.verticalLayout_7.setObjectName("verticalLayout_7") self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_8.setSpacing(15) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_8 = QtWidgets.QLabel(parent=self.widgetDmGroup) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_8.setFont(font) self.label_8.setObjectName("label_8") self.horizontalLayout_8.addWidget(self.label_8) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_8.addItem(spacerItem) self.pbCreateModelGroup = QtWidgets.QPushButton(parent=self.widgetDmGroup) self.pbCreateModelGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateModelGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateModelGroup.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/resource/add.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbCreateModelGroup.setIcon(icon) self.pbCreateModelGroup.setIconSize(QtCore.QSize(21, 21)) self.pbCreateModelGroup.setObjectName("pbCreateModelGroup") self.horizontalLayout_8.addWidget(self.pbCreateModelGroup) self.pbDeleteModelGroup = QtWidgets.QPushButton(parent=self.widgetDmGroup) self.pbDeleteModelGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteModelGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteModelGroup.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/resource/remove.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbDeleteModelGroup.setIcon(icon1) self.pbDeleteModelGroup.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteModelGroup.setObjectName("pbDeleteModelGroup") self.horizontalLayout_8.addWidget(self.pbDeleteModelGroup) self.verticalLayout_7.addLayout(self.horizontalLayout_8) self.tableViewDmGroup = QtWidgets.QTableView(parent=self.widgetDmGroup) self.tableViewDmGroup.setMinimumSize(QtCore.QSize(0, 0)) self.tableViewDmGroup.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.tableViewDmGroup.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.tableViewDmGroup.setToolTip("") self.tableViewDmGroup.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" "} \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewDmGroup.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewDmGroup.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked) self.tableViewDmGroup.setDragEnabled(True) self.tableViewDmGroup.setDragDropOverwriteMode(True) self.tableViewDmGroup.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DropOnly) self.tableViewDmGroup.setDefaultDropAction(QtCore.Qt.DropAction.MoveAction) self.tableViewDmGroup.setAlternatingRowColors(True) self.tableViewDmGroup.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewDmGroup.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewDmGroup.setShowGrid(False) self.tableViewDmGroup.setGridStyle(QtCore.Qt.PenStyle.NoPen) self.tableViewDmGroup.setSortingEnabled(True) self.tableViewDmGroup.setObjectName("tableViewDmGroup") self.tableViewDmGroup.horizontalHeader().setSortIndicatorShown(True) self.tableViewDmGroup.verticalHeader().setVisible(True) self.verticalLayout_7.addWidget(self.tableViewDmGroup) self.verticalLayout_11.addWidget(self.widgetDmGroup) self.widgetDm = QtWidgets.QWidget(parent=self.w1) self.widgetDm.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.widgetDm.setStyleSheet(" QWidget {\n" " \n" " background-color: #FFFFFF; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}\n" "") self.widgetDm.setObjectName("widgetDm") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.widgetDm) self.verticalLayout_6.setContentsMargins(0, 0, 0, 10) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_6.setSpacing(15) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_6 = QtWidgets.QLabel(parent=self.widgetDm) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName("label_6") self.horizontalLayout_6.addWidget(self.label_6) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_6.addItem(spacerItem1) self.pbExportModel = QtWidgets.QPushButton(parent=self.widgetDm) self.pbExportModel.setMinimumSize(QtCore.QSize(21, 21)) self.pbExportModel.setMaximumSize(QtCore.QSize(21, 21)) self.pbExportModel.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/resource/export.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbExportModel.setIcon(icon2) self.pbExportModel.setIconSize(QtCore.QSize(21, 21)) self.pbExportModel.setObjectName("pbExportModel") self.horizontalLayout_6.addWidget(self.pbExportModel) self.pbCreateModel = QtWidgets.QPushButton(parent=self.widgetDm) self.pbCreateModel.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateModel.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateModel.setText("") self.pbCreateModel.setIcon(icon) self.pbCreateModel.setIconSize(QtCore.QSize(21, 21)) self.pbCreateModel.setObjectName("pbCreateModel") self.horizontalLayout_6.addWidget(self.pbCreateModel) self.pbDeleteModel = QtWidgets.QPushButton(parent=self.widgetDm) self.pbDeleteModel.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteModel.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteModel.setText("") self.pbDeleteModel.setIcon(icon1) self.pbDeleteModel.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteModel.setObjectName("pbDeleteModel") self.horizontalLayout_6.addWidget(self.pbDeleteModel) self.pbEditModel = QtWidgets.QPushButton(parent=self.widgetDm) self.pbEditModel.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditModel.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditModel.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/resource/edit.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditModel.setIcon(icon3) self.pbEditModel.setIconSize(QtCore.QSize(21, 21)) self.pbEditModel.setObjectName("pbEditModel") self.horizontalLayout_6.addWidget(self.pbEditModel) self.pbCopyModel = QtWidgets.QPushButton(parent=self.widgetDm) self.pbCopyModel.setMinimumSize(QtCore.QSize(21, 21)) self.pbCopyModel.setMaximumSize(QtCore.QSize(21, 21)) self.pbCopyModel.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/resource/copy.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbCopyModel.setIcon(icon4) self.pbCopyModel.setIconSize(QtCore.QSize(21, 21)) self.pbCopyModel.setObjectName("pbCopyModel") self.horizontalLayout_6.addWidget(self.pbCopyModel) self.verticalLayout_6.addLayout(self.horizontalLayout_6) self.tableViewModel = QtWidgets.QTableView(parent=self.widgetDm) self.tableViewModel.setMinimumSize(QtCore.QSize(0, 0)) self.tableViewModel.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.tableViewModel.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.tableViewModel.setToolTip("") self.tableViewModel.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" "} \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewModel.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewModel.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) self.tableViewModel.setDragEnabled(True) self.tableViewModel.setDragDropOverwriteMode(True) self.tableViewModel.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragDrop) self.tableViewModel.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction) self.tableViewModel.setAlternatingRowColors(True) self.tableViewModel.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewModel.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewModel.setShowGrid(False) self.tableViewModel.setGridStyle(QtCore.Qt.PenStyle.NoPen) self.tableViewModel.setSortingEnabled(True) self.tableViewModel.setObjectName("tableViewModel") self.tableViewModel.horizontalHeader().setSortIndicatorShown(True) self.tableViewModel.verticalHeader().setVisible(True) self.verticalLayout_6.addWidget(self.tableViewModel) self.verticalLayout_11.addWidget(self.widgetDm) self.verticalLayout_11.setStretch(0, 3) self.verticalLayout_11.setStretch(1, 7) self.w2 = QtWidgets.QWidget(parent=self.splitter) self.w2.setMinimumSize(QtCore.QSize(200, 0)) self.w2.setMaximumSize(QtCore.QSize(400, 16777215)) self.w2.setStyleSheet("background-color: rgba(0, 0, 0, 0);") self.w2.setObjectName("w2") self.verticalLayout = QtWidgets.QVBoxLayout(self.w2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(10) self.verticalLayout.setObjectName("verticalLayout") self.widget_7 = QtWidgets.QWidget(parent=self.w2) self.widget_7.setMinimumSize(QtCore.QSize(0, 279)) self.widget_7.setMaximumSize(QtCore.QSize(400, 279)) self.widget_7.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } ") self.widget_7.setObjectName("widget_7") self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.widget_7) self.verticalLayout_10.setContentsMargins(16, 0, 16, 10) self.verticalLayout_10.setSpacing(6) self.verticalLayout_10.setObjectName("verticalLayout_10") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(4, 18, -1, 17) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(parent=self.widget_7) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.widget_3 = QtWidgets.QWidget(parent=self.widget_7) self.widget_3.setMinimumSize(QtCore.QSize(0, 1)) self.widget_3.setMaximumSize(QtCore.QSize(16777214, 1)) self.widget_3.setStyleSheet("background-color: rgb(241, 241, 241);") self.widget_3.setObjectName("widget_3") self.verticalLayout_3.addWidget(self.widget_3) self.verticalLayout_10.addLayout(self.verticalLayout_3) self.widget_2 = QtWidgets.QWidget(parent=self.widget_7) self.widget_2.setMinimumSize(QtCore.QSize(0, 200)) self.widget_2.setStyleSheet("background-color: rgb(241, 241, 241);\n" "border-radius: 0px;") self.widget_2.setObjectName("widget_2") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.widget_2) self.verticalLayout_9.setObjectName("verticalLayout_9") self.lbDevModelImage = QtWidgets.QLabel(parent=self.widget_2) self.lbDevModelImage.setMinimumSize(QtCore.QSize(0, 200)) self.lbDevModelImage.setMaximumSize(QtCore.QSize(16777215, 200)) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(40) font.setBold(True) font.setWeight(75) self.lbDevModelImage.setFont(font) self.lbDevModelImage.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight) self.lbDevModelImage.setStyleSheet("color: rgb(221, 221, 221);") self.lbDevModelImage.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) self.lbDevModelImage.setObjectName("lbDevModelImage") self.verticalLayout_9.addWidget(self.lbDevModelImage) self.verticalLayout_10.addWidget(self.widget_2) self.verticalLayout.addWidget(self.widget_7) self.widget_8 = QtWidgets.QWidget(parent=self.w2) self.widget_8.setMinimumSize(QtCore.QSize(0, 0)) self.widget_8.setMaximumSize(QtCore.QSize(400, 16777215)) self.widget_8.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}\n" "QComboBox {\n" " color: #000000\n" "}\n" "QComboBox::drop-down {\n" " border: none\n" "}\n" "QComboBox::down-arrow {\n" " image: url(:/resource/dropdown.svg);\n" " width: 18px;\n" " height: 18px;\n" "}") self.widget_8.setObjectName("widget_8") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget_8) self.verticalLayout_4.setContentsMargins(0, 0, 0, 10) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_4.setSpacing(15) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(parent=self.widget_8) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.pbAddInterfaceType = QtWidgets.QPushButton(parent=self.widget_8) self.pbAddInterfaceType.setMinimumSize(QtCore.QSize(21, 21)) self.pbAddInterfaceType.setMaximumSize(QtCore.QSize(21, 21)) self.pbAddInterfaceType.setText("") self.pbAddInterfaceType.setIcon(icon) self.pbAddInterfaceType.setIconSize(QtCore.QSize(21, 21)) self.pbAddInterfaceType.setObjectName("pbAddInterfaceType") self.horizontalLayout_4.addWidget(self.pbAddInterfaceType) self.pbDeleteInterfaceType = QtWidgets.QPushButton(parent=self.widget_8) self.pbDeleteInterfaceType.setMinimumSize(QtCore.QSize(28, 28)) self.pbDeleteInterfaceType.setMaximumSize(QtCore.QSize(28, 28)) self.pbDeleteInterfaceType.setText("") self.pbDeleteInterfaceType.setIcon(icon1) self.pbDeleteInterfaceType.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteInterfaceType.setObjectName("pbDeleteInterfaceType") self.horizontalLayout_4.addWidget(self.pbDeleteInterfaceType) self.verticalLayout_4.addLayout(self.horizontalLayout_4) self.tableViewInterFaceType = QtWidgets.QTableView(parent=self.widget_8) self.tableViewInterFaceType.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.tableViewInterFaceType.setStyleSheet(" QWidget {\n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 1px;\n" " } \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewInterFaceType.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewInterFaceType.setTabKeyNavigation(True) self.tableViewInterFaceType.setProperty("showDropIndicator", True) self.tableViewInterFaceType.setAlternatingRowColors(True) self.tableViewInterFaceType.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewInterFaceType.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewInterFaceType.setShowGrid(False) self.tableViewInterFaceType.setObjectName("tableViewInterFaceType") self.tableViewInterFaceType.verticalHeader().setVisible(False) self.verticalLayout_4.addWidget(self.tableViewInterFaceType) self.verticalLayout.addWidget(self.widget_8) self.widget_9 = QtWidgets.QWidget(parent=self.w2) self.widget_9.setMinimumSize(QtCore.QSize(0, 279)) self.widget_9.setMaximumSize(QtCore.QSize(400, 279)) self.widget_9.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.widget_9.setObjectName("widget_9") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget_9) self.verticalLayout_5.setContentsMargins(0, 0, 0, -1) self.verticalLayout_5.setSpacing(0) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_5.setSpacing(15) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_4 = QtWidgets.QLabel(parent=self.widget_9) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.horizontalLayout_5.addWidget(self.label_4) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_5.addItem(spacerItem4) self.pbAddProperty = QtWidgets.QPushButton(parent=self.widget_9) self.pbAddProperty.setMinimumSize(QtCore.QSize(21, 21)) self.pbAddProperty.setMaximumSize(QtCore.QSize(21, 21)) self.pbAddProperty.setText("") self.pbAddProperty.setIcon(icon) self.pbAddProperty.setIconSize(QtCore.QSize(21, 21)) self.pbAddProperty.setObjectName("pbAddProperty") self.horizontalLayout_5.addWidget(self.pbAddProperty) self.pbDeleteProperty = QtWidgets.QPushButton(parent=self.widget_9) self.pbDeleteProperty.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setText("") self.pbDeleteProperty.setIcon(icon1) self.pbDeleteProperty.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setObjectName("pbDeleteProperty") self.horizontalLayout_5.addWidget(self.pbDeleteProperty) self.verticalLayout_5.addLayout(self.horizontalLayout_5) self.tableViewProperty = QtWidgets.QTableView(parent=self.widget_9) self.tableViewProperty.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.tableViewProperty.setStyleSheet(" QWidget {\n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 1px;\n" " } \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QScrollBar:vertical {\n" " background: #BFBFBF; /* 设置垂直滚动条的背景颜色为浅灰色 */\n" " width: 3px; /* 设置滚动条的宽度 */\n" " margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */\n" "}\n" "\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}\n" "") self.tableViewProperty.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewProperty.setTabKeyNavigation(True) self.tableViewProperty.setProperty("showDropIndicator", True) self.tableViewProperty.setAlternatingRowColors(True) self.tableViewProperty.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewProperty.setShowGrid(False) self.tableViewProperty.setObjectName("tableViewProperty") self.tableViewProperty.verticalHeader().setVisible(False) self.verticalLayout_5.addWidget(self.tableViewProperty) self.verticalLayout.addWidget(self.widget_9) self.verticalLayout.setStretch(0, 3) self.verticalLayout.setStretch(1, 4) self.verticalLayout.setStretch(2, 3) self.w3 = QtWidgets.QWidget(parent=self.splitter) self.w3.setStyleSheet("") self.w3.setObjectName("w3") self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.w3) self.verticalLayout_14.setContentsMargins(0, 0, 0, 0) self.verticalLayout_14.setSpacing(10) self.verticalLayout_14.setObjectName("verticalLayout_14") self.w3_1 = QtWidgets.QWidget(parent=self.w3) self.w3_1.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.w3_1.setObjectName("w3_1") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.w3_1) self.verticalLayout_8.setContentsMargins(0, 0, 0, 10) self.verticalLayout_8.setSpacing(6) self.verticalLayout_8.setObjectName("verticalLayout_8") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_7.setSpacing(15) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_7 = QtWidgets.QLabel(parent=self.w3_1) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_7.addItem(spacerItem5) self.pbCreateCmd = QtWidgets.QPushButton(parent=self.w3_1) self.pbCreateCmd.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateCmd.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateCmd.setText("") self.pbCreateCmd.setIcon(icon) self.pbCreateCmd.setIconSize(QtCore.QSize(21, 21)) self.pbCreateCmd.setObjectName("pbCreateCmd") self.horizontalLayout_7.addWidget(self.pbCreateCmd) self.pbDeleteCmd = QtWidgets.QPushButton(parent=self.w3_1) self.pbDeleteCmd.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteCmd.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteCmd.setText("") self.pbDeleteCmd.setIcon(icon1) self.pbDeleteCmd.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteCmd.setObjectName("pbDeleteCmd") self.horizontalLayout_7.addWidget(self.pbDeleteCmd) self.pbEditCmd = QtWidgets.QPushButton(parent=self.w3_1) self.pbEditCmd.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditCmd.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditCmd.setText("") self.pbEditCmd.setIcon(icon3) self.pbEditCmd.setIconSize(QtCore.QSize(21, 21)) self.pbEditCmd.setObjectName("pbEditCmd") self.horizontalLayout_7.addWidget(self.pbEditCmd) self.pbEditScript = QtWidgets.QPushButton(parent=self.w3_1) self.pbEditScript.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditScript.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditScript.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/resource/cmd.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditScript.setIcon(icon5) self.pbEditScript.setIconSize(QtCore.QSize(21, 21)) self.pbEditScript.setObjectName("pbEditScript") self.horizontalLayout_7.addWidget(self.pbEditScript) self.pbCopyInstruction = QtWidgets.QPushButton(parent=self.w3_1) self.pbCopyInstruction.setMinimumSize(QtCore.QSize(21, 21)) self.pbCopyInstruction.setMaximumSize(QtCore.QSize(21, 21)) self.pbCopyInstruction.setText("") self.pbCopyInstruction.setIcon(icon4) self.pbCopyInstruction.setIconSize(QtCore.QSize(21, 21)) self.pbCopyInstruction.setObjectName("pbCopyInstruction") self.horizontalLayout_7.addWidget(self.pbCopyInstruction) self.verticalLayout_8.addLayout(self.horizontalLayout_7) self.tableViewCmd = QtWidgets.QTableView(parent=self.w3_1) self.tableViewCmd.setMinimumSize(QtCore.QSize(0, 0)) self.tableViewCmd.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.tableViewCmd.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.tableViewCmd.setToolTip("") self.tableViewCmd.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" " } \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "\n" "QHeaderView::section:selected {\n" " background-color: #C4E1FF; /* Set the background color of selected header to light blue */\n" " color: #262626; /* Set the text color of selected header to white */\n" "}\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewCmd.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded) self.tableViewCmd.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) self.tableViewCmd.setDragEnabled(True) self.tableViewCmd.setDragDropOverwriteMode(False) self.tableViewCmd.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragOnly) self.tableViewCmd.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction) self.tableViewCmd.setAlternatingRowColors(True) self.tableViewCmd.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewCmd.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewCmd.setShowGrid(False) self.tableViewCmd.setSortingEnabled(True) self.tableViewCmd.setObjectName("tableViewCmd") self.tableViewCmd.horizontalHeader().setSortIndicatorShown(True) self.tableViewCmd.verticalHeader().setVisible(True) self.verticalLayout_8.addWidget(self.tableViewCmd) self.verticalLayout_14.addWidget(self.w3_1) self.w3_2 = QtWidgets.QWidget(parent=self.w3) self.w3_2.setMinimumSize(QtCore.QSize(0, 279)) self.w3_2.setMaximumSize(QtCore.QSize(16777215, 279)) self.w3_2.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.w3_2.setObjectName("w3_2") self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.w3_2) self.verticalLayout_13.setContentsMargins(16, 0, 16, 10) self.verticalLayout_13.setObjectName("verticalLayout_13") self.verticalLayout_12 = QtWidgets.QVBoxLayout() self.verticalLayout_12.setSpacing(0) self.verticalLayout_12.setObjectName("verticalLayout_12") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(4, 18, -1, 17) self.horizontalLayout_3.setSpacing(15) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_5 = QtWidgets.QLabel(parent=self.w3_2) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.horizontalLayout_3.addWidget(self.label_5) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_3.addItem(spacerItem6) self.pbEditDescription = QtWidgets.QPushButton(parent=self.w3_2) self.pbEditDescription.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditDescription.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditDescription.setText("") self.pbEditDescription.setIcon(icon3) self.pbEditDescription.setIconSize(QtCore.QSize(21, 21)) self.pbEditDescription.setObjectName("pbEditDescription") self.horizontalLayout_3.addWidget(self.pbEditDescription) self.pbSaveDescription = QtWidgets.QPushButton(parent=self.w3_2) self.pbSaveDescription.setMinimumSize(QtCore.QSize(21, 21)) self.pbSaveDescription.setMaximumSize(QtCore.QSize(21, 21)) self.pbSaveDescription.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/resource/ok.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbSaveDescription.setIcon(icon6) self.pbSaveDescription.setIconSize(QtCore.QSize(21, 21)) self.pbSaveDescription.setObjectName("pbSaveDescription") self.horizontalLayout_3.addWidget(self.pbSaveDescription) self.verticalLayout_12.addLayout(self.horizontalLayout_3) self.widget_4 = QtWidgets.QWidget(parent=self.w3_2) self.widget_4.setMinimumSize(QtCore.QSize(0, 1)) self.widget_4.setMaximumSize(QtCore.QSize(16777214, 1)) self.widget_4.setStyleSheet("background-color: rgb(241, 241, 241);") self.widget_4.setObjectName("widget_4") self.verticalLayout_12.addWidget(self.widget_4) self.verticalLayout_13.addLayout(self.verticalLayout_12) self.textEditDescription = QtWidgets.QTextEdit(parent=self.w3_2) self.textEditDescription.setEnabled(True) self.textEditDescription.setStyleSheet("\n" "QTextEdit {\n" " border-radius: 0px;\n" " border-color: rgb(0, 0, 0);\n" " background-color: rgb(248, 249, 250);\n" "}") self.textEditDescription.setObjectName("textEditDescription") self.verticalLayout_13.addWidget(self.textEditDescription) self.verticalLayout_14.addWidget(self.w3_2) self.verticalLayout_14.setStretch(0, 7) self.verticalLayout_14.setStretch(1, 3) self.verticalLayout_2.addWidget(self.splitter) self.retranslateUi(devModelForm) QtCore.QMetaObject.connectSlotsByName(devModelForm) def retranslateUi(self, devModelForm): _translate = QtCore.QCoreApplication.translate devModelForm.setWindowTitle(_translate("devModelForm", "Form")) self.label_8.setText(_translate("devModelForm", "模型分组")) self.pbCreateModelGroup.setToolTip(_translate("devModelForm", "创建设备模型")) self.pbDeleteModelGroup.setToolTip(_translate("devModelForm", "删除设备模型")) self.label_6.setText(_translate("devModelForm", "设备模型")) self.pbExportModel.setToolTip(_translate("devModelForm", "导出设备模型")) self.pbCreateModel.setToolTip(_translate("devModelForm", "创建设备模型")) self.pbDeleteModel.setToolTip(_translate("devModelForm", "删除设备模型")) self.pbEditModel.setToolTip(_translate("devModelForm", "编辑设备模型")) self.pbCopyModel.setToolTip(_translate("devModelForm", "克隆")) self.label_2.setText(_translate("devModelForm", "封面")) self.lbDevModelImage.setText(_translate("devModelForm", "封面")) self.label_3.setText(_translate("devModelForm", "接口类型")) self.pbAddInterfaceType.setToolTip(_translate("devModelForm", "添加属性")) self.pbDeleteInterfaceType.setToolTip(_translate("devModelForm", "删除属性")) self.label_4.setText(_translate("devModelForm", "属性")) self.pbAddProperty.setToolTip(_translate("devModelForm", "添加属性")) self.pbDeleteProperty.setToolTip(_translate("devModelForm", "删除属性")) self.label_7.setText(_translate("devModelForm", "模型指令")) self.pbCreateCmd.setToolTip(_translate("devModelForm", "创建指令")) self.pbDeleteCmd.setToolTip(_translate("devModelForm", "删除指令")) self.pbEditCmd.setToolTip(_translate("devModelForm", "编辑指令")) self.pbEditScript.setToolTip(_translate("devModelForm", "编辑脚本Ctrl+E")) self.pbEditScript.setShortcut(_translate("devModelForm", "Ctrl+E")) self.pbCopyInstruction.setToolTip(_translate("devModelForm", "克隆")) self.label_5.setText(_translate("devModelForm", "指令描述")) self.pbEditDescription.setToolTip(_translate("devModelForm", "编辑脚本Ctrl+E")) self.pbEditDescription.setShortcut(_translate("devModelForm", "Ctrl+E")) self.pbSaveDescription.setToolTip(_translate("devModelForm", "克隆"))