仿QQ设置面板
This commit is contained in:
parent
27a8740cb4
commit
d742188a4d
7 changed files with 1056 additions and 170 deletions
660
仿QQ设置面板/.README.md.html
Normal file
660
仿QQ设置面板/.README.md.html
Normal file
|
@ -0,0 +1,660 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>D:\Workspace\PyQt\仿QQ设置面板\.README.md.html</title>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
color: #333;
|
||||
font: 13px/1.4 "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
color: #4183c4;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0 none;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
sub, sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
img {
|
||||
border: 0 none;
|
||||
}
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
hr {
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace,monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.markdown-body {
|
||||
padding: 30px;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.markdown-body>*:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
.markdown-body>*:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.markdown-body .absent {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
.markdown-body .anchor {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
padding-right: 6px;
|
||||
padding-left: 30px;
|
||||
margin-left: -30px;
|
||||
}
|
||||
|
||||
.markdown-body .anchor:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.markdown-body h1,
|
||||
.markdown-body h2,
|
||||
.markdown-body h3,
|
||||
.markdown-body h4,
|
||||
.markdown-body h5,
|
||||
.markdown-body h6 {
|
||||
position: relative;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 16px;
|
||||
font-weight: bold;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.markdown-body h1 .octicon-link,
|
||||
.markdown-body h2 .octicon-link,
|
||||
.markdown-body h3 .octicon-link,
|
||||
.markdown-body h4 .octicon-link,
|
||||
.markdown-body h5 .octicon-link,
|
||||
.markdown-body h6 .octicon-link {
|
||||
display: none;
|
||||
color: #000;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.markdown-body h1:hover .anchor,
|
||||
.markdown-body h2:hover .anchor,
|
||||
.markdown-body h3:hover .anchor,
|
||||
.markdown-body h4:hover .anchor,
|
||||
.markdown-body h5:hover .anchor,
|
||||
.markdown-body h6:hover .anchor {
|
||||
padding-left: 8px;
|
||||
margin-left: -30px;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.markdown-body h1:hover .anchor .octicon-link,
|
||||
.markdown-body h2:hover .anchor .octicon-link,
|
||||
.markdown-body h3:hover .anchor .octicon-link,
|
||||
.markdown-body h4:hover .anchor .octicon-link,
|
||||
.markdown-body h5:hover .anchor .octicon-link,
|
||||
.markdown-body h6:hover .anchor .octicon-link {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.markdown-body h1 tt,
|
||||
.markdown-body h1 code,
|
||||
.markdown-body h2 tt,
|
||||
.markdown-body h2 code,
|
||||
.markdown-body h3 tt,
|
||||
.markdown-body h3 code,
|
||||
.markdown-body h4 tt,
|
||||
.markdown-body h4 code,
|
||||
.markdown-body h5 tt,
|
||||
.markdown-body h5 code,
|
||||
.markdown-body h6 tt,
|
||||
.markdown-body h6 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.markdown-body h1 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 2.25em;
|
||||
line-height: 1.2;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.markdown-body h2 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 1.75em;
|
||||
line-height: 1.225;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.markdown-body h3 {
|
||||
font-size: 1.5em;
|
||||
line-height: 1.43;
|
||||
}
|
||||
|
||||
.markdown-body h4 {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
.markdown-body h5 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.markdown-body h6 {
|
||||
font-size: 1em;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.markdown-body p,.markdown-body blockquote,
|
||||
.markdown-body ul,.markdown-body ol,
|
||||
.markdown-body dl,.markdown-body table,
|
||||
.markdown-body pre {
|
||||
margin-top: 0;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.markdown-body hr {
|
||||
height: 4px;
|
||||
padding: 0;
|
||||
margin: 16px 0;
|
||||
background-color: #e7e7e7;
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
.markdown-body ul,
|
||||
.markdown-body ol {
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
.markdown-body ul.no-list,
|
||||
.markdown-body ol.no-list {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.markdown-body ul ul,
|
||||
.markdown-body ul ol,
|
||||
.markdown-body ol ol,
|
||||
.markdown-body ol ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.markdown-body li>p {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.markdown-body dl {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.markdown-body dl dt {
|
||||
padding: 0;
|
||||
margin-top: 16px;
|
||||
font-size: 1em;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.markdown-body dl dd {
|
||||
padding: 0 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.markdown-body blockquote {
|
||||
padding: 0 15px;
|
||||
color: #777;
|
||||
border-left: 4px solid #ddd;
|
||||
}
|
||||
|
||||
.markdown-body blockquote>:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.markdown-body blockquote>:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.markdown-body table {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
word-break: normal;
|
||||
word-break: keep-all;
|
||||
}
|
||||
|
||||
.markdown-body table th {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.markdown-body table th,
|
||||
.markdown-body table td {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.markdown-body table tr {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.markdown-body table tr:nth-child(2n) {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.markdown-body img {
|
||||
max-width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.markdown-body span.frame {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.markdown-body span.frame>span {
|
||||
display: block;
|
||||
float: left;
|
||||
width: auto;
|
||||
padding: 7px;
|
||||
margin: 13px 0 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.markdown-body span.frame span img {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.markdown-body span.frame span span {
|
||||
display: block;
|
||||
padding: 5px 0 0;
|
||||
clear: both;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.markdown-body span.align-center {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.markdown-body span.align-center>span {
|
||||
display: block;
|
||||
margin: 13px auto 0;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.markdown-body span.align-center span img {
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.markdown-body span.align-right {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.markdown-body span.align-right>span {
|
||||
display: block;
|
||||
margin: 13px 0 0;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.markdown-body span.align-right span img {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.markdown-body span.float-left {
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: 13px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.markdown-body span.float-left span {
|
||||
margin: 13px 0 0;
|
||||
}
|
||||
|
||||
.markdown-body span.float-right {
|
||||
display: block;
|
||||
float: right;
|
||||
margin-left: 13px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.markdown-body span.float-right>span {
|
||||
display: block;
|
||||
margin: 13px auto 0;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.markdown-body code,.markdown-body tt {
|
||||
padding: 0;
|
||||
padding-top: 0.2em;
|
||||
padding-bottom: 0.2em;
|
||||
margin: 0;
|
||||
font-size: 85%;
|
||||
background-color: rgba(0,0,0,0.04);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.markdown-body code:before,
|
||||
.markdown-body code:after,
|
||||
.markdown-body tt:before,
|
||||
.markdown-body tt:after {
|
||||
letter-spacing: -0.2em;
|
||||
content: "\00a0";
|
||||
}
|
||||
|
||||
.markdown-body code br,
|
||||
.markdown-body tt br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.markdown-body del code {
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.markdown-body pre>code {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 100%;
|
||||
word-break: normal;
|
||||
white-space: pre;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.markdown-body .highlight {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.markdown-body .highlight pre,
|
||||
.markdown-body pre {
|
||||
padding: 16px;
|
||||
overflow: auto;
|
||||
font-size: 85%;
|
||||
line-height: 1.45;
|
||||
background-color: #f7f7f7;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.markdown-body .highlight pre {
|
||||
margin-bottom: 0;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.markdown-body pre {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
.markdown-body pre code,
|
||||
.markdown-body pre tt {
|
||||
display: inline;
|
||||
max-width: initial;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: initial;
|
||||
line-height: inherit;
|
||||
word-wrap: normal;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.markdown-body pre code:before,
|
||||
.markdown-body pre code:after,
|
||||
.markdown-body pre tt:before,
|
||||
.markdown-body pre tt:after {
|
||||
content: normal;
|
||||
}
|
||||
|
||||
.highlight .pl-coc,
|
||||
.highlight .pl-entl,
|
||||
.highlight .pl-entm,
|
||||
.highlight .pl-eoa,
|
||||
.highlight .pl-mai .pl-sf,
|
||||
.highlight .pl-mm,
|
||||
.highlight .pl-pdv,
|
||||
.highlight .pl-sc,
|
||||
.highlight .pl-som,
|
||||
.highlight .pl-sr,
|
||||
.highlight .pl-v,
|
||||
.highlight .pl-vpf {
|
||||
color: #0086b3;
|
||||
}
|
||||
.highlight .pl-eoac,
|
||||
.highlight .pl-mdht,
|
||||
.highlight .pl-mi1,
|
||||
.highlight .pl-mri,
|
||||
.highlight .pl-va,
|
||||
.highlight .pl-vpu {
|
||||
color: #008080;
|
||||
}
|
||||
.highlight .pl-c,
|
||||
.highlight .pl-pdc {
|
||||
color: #b4b7b4;
|
||||
font-style: italic;
|
||||
}
|
||||
.highlight .pl-k,
|
||||
.highlight .pl-ko,
|
||||
.highlight .pl-kolp,
|
||||
.highlight .pl-mc,
|
||||
.highlight .pl-mr,
|
||||
.highlight .pl-ms,
|
||||
.highlight .pl-s,
|
||||
.highlight .pl-sok,
|
||||
.highlight .pl-st {
|
||||
color: #6e5494;
|
||||
}
|
||||
.highlight .pl-ef,
|
||||
.highlight .pl-enf,
|
||||
.highlight .pl-enm,
|
||||
.highlight .pl-entc,
|
||||
.highlight .pl-eoi,
|
||||
.highlight .pl-sf,
|
||||
.highlight .pl-smc {
|
||||
color: #d12089;
|
||||
}
|
||||
.highlight .pl-ens,
|
||||
.highlight .pl-eoai,
|
||||
.highlight .pl-kos,
|
||||
.highlight .pl-mh .pl-pdh,
|
||||
.highlight .pl-mp,
|
||||
.highlight .pl-pde,
|
||||
.highlight .pl-stp {
|
||||
color: #458;
|
||||
}
|
||||
.highlight .pl-enti {
|
||||
color: #d12089;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .pl-cce,
|
||||
.highlight .pl-enc,
|
||||
.highlight .pl-kou,
|
||||
.highlight .pl-mq {
|
||||
color: #f93;
|
||||
}
|
||||
.highlight .pl-mp1 .pl-sf {
|
||||
color: #458;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .pl-cos,
|
||||
.highlight .pl-ent,
|
||||
.highlight .pl-md,
|
||||
.highlight .pl-mdhf,
|
||||
.highlight .pl-ml,
|
||||
.highlight .pl-pdc1,
|
||||
.highlight .pl-pds,
|
||||
.highlight .pl-s1,
|
||||
.highlight .pl-scp,
|
||||
.highlight .pl-sol {
|
||||
color: #df5000;
|
||||
}
|
||||
.highlight .pl-c1,
|
||||
.highlight .pl-cn,
|
||||
.highlight .pl-pse,
|
||||
.highlight .pl-pse .pl-s2,
|
||||
.highlight .pl-vi {
|
||||
color: #a31515;
|
||||
}
|
||||
.highlight .pl-mb,
|
||||
.highlight .pl-pdb {
|
||||
color: #df5000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .pl-mi,
|
||||
.highlight .pl-pdi {
|
||||
color: #6e5494;
|
||||
font-style: italic;
|
||||
}
|
||||
.highlight .pl-ms1 {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.highlight .pl-mdh,
|
||||
.highlight .pl-mdi {
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .pl-mdr {
|
||||
color: #0086b3;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .pl-s2 {
|
||||
color: #333;
|
||||
}
|
||||
.highlight .pl-ii {
|
||||
background-color: #df5000;
|
||||
color: #fff;
|
||||
}
|
||||
.highlight .pl-ib {
|
||||
background-color: #f93;
|
||||
}
|
||||
.highlight .pl-id {
|
||||
background-color: #a31515;
|
||||
color: #fff;
|
||||
}
|
||||
.highlight .pl-iu {
|
||||
background-color: #b4b7b4;
|
||||
}
|
||||
.highlight .pl-mo {
|
||||
color: #969896;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function getDocumentScrollTop()
|
||||
{
|
||||
var res = document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0;
|
||||
// alert(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
function setDocumentScrollTop(ypos)
|
||||
{
|
||||
window.scrollTo(0, ypos);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="markdown-body">
|
||||
<h1> <a id="仿qq设置面板简单例子" class="anchor" href="#%E4%BB%BFqq%E8%AE%BE%E7%BD%AE%E9%9D%A2%E6%9D%BF%E7%AE%80%E5%8D%95%E4%BE%8B%E5%AD%90" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>仿QQ设置面板简单例子</h1>
|
||||
<p>左侧: 使用QListWidget点击左侧时得到索引,然后根据索引去找右侧的widget_0之类的</p>
|
||||
<p>右侧: 使用QScrollArea控件,设置QVBoxLayout布局,然后一次添加Widget</p>
|
||||
<p>事件:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<ol>
|
||||
<li>绑定左侧QListWidget的itemClicked的到该item的索引</li>
|
||||
</ol> </li>
|
||||
<li>
|
||||
<ol start="2">
|
||||
<li>绑定右侧滚动条的valueChanged事件得到pos</li>
|
||||
</ol> </li>
|
||||
</ul>
|
||||
<p>注意:当itemClicked时定位滚动条的值时,需要设置一个标志位用来避免valueChanged重复调用item的定位</p>
|
||||
<h2> <a id="截图" class="anchor" href="#%E6%88%AA%E5%9B%BE" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>截图</h2>
|
||||
<p><a href="ScreenShot/1.gif" target="_blank"><img src="ScreenShot/1.gif" alt="截图" style="max-width:100%;" /></a></p>
|
||||
</body>
|
||||
</html>
|
16
仿QQ设置面板/README.md
Normal file
16
仿QQ设置面板/README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 仿QQ设置面板简单例子
|
||||
|
||||
左侧:
|
||||
使用QListWidget点击左侧时得到索引,然后根据索引去找右侧的widget_0之类的
|
||||
|
||||
右侧:
|
||||
使用QScrollArea控件,设置QVBoxLayout布局,然后一次添加Widget
|
||||
|
||||
事件:
|
||||
- 1. 绑定左侧QListWidget的itemClicked的到该item的索引
|
||||
- 2. 绑定右侧滚动条的valueChanged事件得到pos
|
||||
|
||||
注意:当itemClicked时定位滚动条的值时,需要设置一个标志位用来避免valueChanged重复调用item的定位
|
||||
|
||||
## 截图
|
||||
![截图](ScreenShot/1.gif)
|
BIN
仿QQ设置面板/ScreenShot/1.gif
Normal file
BIN
仿QQ设置面板/ScreenShot/1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 400 KiB |
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Form implementation generated from reading ui file 'setting.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.10.1
|
||||
# Created by: PyQt5 UI code generator 5.5.1
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
|
@ -11,13 +11,15 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
|||
class Ui_Setting(object):
|
||||
def setupUi(self, Setting):
|
||||
Setting.setObjectName("Setting")
|
||||
Setting.resize(1022, 821)
|
||||
Setting.resize(498, 498)
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout(Setting)
|
||||
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout.setSpacing(0)
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.listWidget = QtWidgets.QListWidget(Setting)
|
||||
self.listWidget.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||
self.listWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
self.listWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
self.listWidget.setObjectName("listWidget")
|
||||
item = QtWidgets.QListWidgetItem()
|
||||
self.listWidget.addItem(item)
|
||||
|
@ -47,105 +49,100 @@ class Ui_Setting(object):
|
|||
self.listWidget.addItem(item)
|
||||
self.horizontalLayout.addWidget(self.listWidget)
|
||||
self.scrollArea = QtWidgets.QScrollArea(Setting)
|
||||
self.scrollArea.setStyleSheet("#titleLabel1,#titleLabel2,#titleLabel3,#titleLabel4,#titleLabel5,#titleLabel6,#titleLabel7,#titleLabel8 {\n"
|
||||
" min-width: 100px;\n"
|
||||
" max-width: 100px;\n"
|
||||
" background-color: red;\n"
|
||||
"}")
|
||||
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||
self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
self.scrollArea.setWidgetResizable(True)
|
||||
self.scrollArea.setObjectName("scrollArea")
|
||||
self.scrollAreaWidgetContents = QtWidgets.QWidget()
|
||||
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -700, 613, 1521))
|
||||
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -810, 460, 1308))
|
||||
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
|
||||
self.verticalLayout.setContentsMargins(35, 20, 35, 20)
|
||||
self.verticalLayout.setSpacing(20)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.widget = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget.setObjectName("widget")
|
||||
self.formLayout = QtWidgets.QFormLayout(self.widget)
|
||||
self.widget_0 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_0.setObjectName("widget_0")
|
||||
self.formLayout = QtWidgets.QFormLayout(self.widget_0)
|
||||
self.formLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout.setObjectName("formLayout")
|
||||
self.titleLabel1 = QtWidgets.QLabel(self.widget)
|
||||
self.titleLabel1 = QtWidgets.QLabel(self.widget_0)
|
||||
self.titleLabel1.setObjectName("titleLabel1")
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel1)
|
||||
self.CheckBox = QtWidgets.QCheckBox(self.widget)
|
||||
self.CheckBox = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.CheckBox.setObjectName("CheckBox")
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.CheckBox)
|
||||
self.checkBox = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox.setChecked(True)
|
||||
self.checkBox.setObjectName("checkBox")
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox)
|
||||
self.checkBox_2 = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox_2 = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox_2.setChecked(True)
|
||||
self.checkBox_2.setObjectName("checkBox_2")
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_2)
|
||||
self.checkBox_3 = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox_3 = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox_3.setObjectName("checkBox_3")
|
||||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_3)
|
||||
self.checkBox_4 = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox_4 = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox_4.setObjectName("checkBox_4")
|
||||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkBox_4)
|
||||
self.checkBox_5 = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox_5 = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox_5.setObjectName("checkBox_5")
|
||||
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.checkBox_5)
|
||||
self.checkBox_6 = QtWidgets.QCheckBox(self.widget)
|
||||
self.checkBox_6 = QtWidgets.QCheckBox(self.widget_0)
|
||||
self.checkBox_6.setObjectName("checkBox_6")
|
||||
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.checkBox_6)
|
||||
self.verticalLayout.addWidget(self.widget)
|
||||
self.widget_7 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_7.setObjectName("widget_7")
|
||||
self.formLayout_8 = QtWidgets.QFormLayout(self.widget_7)
|
||||
self.verticalLayout.addWidget(self.widget_0)
|
||||
self.widget_1 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_1.setObjectName("widget_1")
|
||||
self.formLayout_8 = QtWidgets.QFormLayout(self.widget_1)
|
||||
self.formLayout_8.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_8.setObjectName("formLayout_8")
|
||||
self.titleLabel2 = QtWidgets.QLabel(self.widget_7)
|
||||
self.titleLabel2 = QtWidgets.QLabel(self.widget_1)
|
||||
self.titleLabel2.setObjectName("titleLabel2")
|
||||
self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel2)
|
||||
self.checkBox_26 = QtWidgets.QCheckBox(self.widget_7)
|
||||
self.checkBox_26 = QtWidgets.QCheckBox(self.widget_1)
|
||||
self.checkBox_26.setObjectName("checkBox_26")
|
||||
self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_26)
|
||||
self.checkBox_27 = QtWidgets.QCheckBox(self.widget_7)
|
||||
self.checkBox_27 = QtWidgets.QCheckBox(self.widget_1)
|
||||
self.checkBox_27.setObjectName("checkBox_27")
|
||||
self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_27)
|
||||
self.checkBox_28 = QtWidgets.QCheckBox(self.widget_7)
|
||||
self.checkBox_28 = QtWidgets.QCheckBox(self.widget_1)
|
||||
self.checkBox_28.setObjectName("checkBox_28")
|
||||
self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_28)
|
||||
self.checkBox_29 = QtWidgets.QCheckBox(self.widget_7)
|
||||
self.checkBox_29 = QtWidgets.QCheckBox(self.widget_1)
|
||||
self.checkBox_29.setObjectName("checkBox_29")
|
||||
self.formLayout_8.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_29)
|
||||
self.label_10 = QtWidgets.QLabel(self.widget_7)
|
||||
self.label_10 = QtWidgets.QLabel(self.widget_1)
|
||||
self.label_10.setObjectName("label_10")
|
||||
self.formLayout_8.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.label_10)
|
||||
self.right1 = QtWidgets.QRadioButton(self.widget_7)
|
||||
self.right1 = QtWidgets.QRadioButton(self.widget_1)
|
||||
self.right1.setObjectName("right1")
|
||||
self.formLayout_8.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.right1)
|
||||
self.right2 = QtWidgets.QRadioButton(self.widget_7)
|
||||
self.right2 = QtWidgets.QRadioButton(self.widget_1)
|
||||
self.right2.setChecked(True)
|
||||
self.right2.setObjectName("right2")
|
||||
self.formLayout_8.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.right2)
|
||||
self.label_11 = QtWidgets.QLabel(self.widget_7)
|
||||
self.label_11 = QtWidgets.QLabel(self.widget_1)
|
||||
self.label_11.setObjectName("label_11")
|
||||
self.formLayout_8.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.label_11)
|
||||
self.right3 = QtWidgets.QPushButton(self.widget_7)
|
||||
self.right3 = QtWidgets.QPushButton(self.widget_1)
|
||||
self.right3.setObjectName("right3")
|
||||
self.formLayout_8.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.right3)
|
||||
self.verticalLayout.addWidget(self.widget_7)
|
||||
self.widget_8 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_8.setObjectName("widget_8")
|
||||
self.formLayout_9 = QtWidgets.QFormLayout(self.widget_8)
|
||||
self.verticalLayout.addWidget(self.widget_1)
|
||||
self.widget_2 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_2.setObjectName("widget_2")
|
||||
self.formLayout_9 = QtWidgets.QFormLayout(self.widget_2)
|
||||
self.formLayout_9.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_9.setObjectName("formLayout_9")
|
||||
self.titleLabel3 = QtWidgets.QLabel(self.widget_8)
|
||||
self.titleLabel3 = QtWidgets.QLabel(self.widget_2)
|
||||
self.titleLabel3.setObjectName("titleLabel3")
|
||||
self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel3)
|
||||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.label_13 = QtWidgets.QLabel(self.widget_8)
|
||||
self.label_13 = QtWidgets.QLabel(self.widget_2)
|
||||
self.label_13.setObjectName("label_13")
|
||||
self.horizontalLayout_2.addWidget(self.label_13)
|
||||
self.comboBox = QtWidgets.QComboBox(self.widget_8)
|
||||
self.comboBox = QtWidgets.QComboBox(self.widget_2)
|
||||
self.comboBox.setObjectName("comboBox")
|
||||
self.comboBox.addItem("")
|
||||
self.comboBox.addItem("")
|
||||
|
@ -154,186 +151,237 @@ class Ui_Setting(object):
|
|||
self.comboBox.addItem("")
|
||||
self.comboBox.addItem("")
|
||||
self.horizontalLayout_2.addWidget(self.comboBox)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.horizontalLayout_2.addItem(spacerItem)
|
||||
self.formLayout_9.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
|
||||
self.checkBox_30 = QtWidgets.QCheckBox(self.widget_8)
|
||||
self.checkBox_30 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_30.setObjectName("checkBox_30")
|
||||
self.formLayout_9.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_30)
|
||||
self.right4 = QtWidgets.QLabel(self.widget_8)
|
||||
self.right4 = QtWidgets.QLabel(self.widget_2)
|
||||
self.right4.setObjectName("right4")
|
||||
self.formLayout_9.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.right4)
|
||||
self.checkBox_31 = QtWidgets.QCheckBox(self.widget_8)
|
||||
self.checkBox_31 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_31.setObjectName("checkBox_31")
|
||||
self.formLayout_9.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_31)
|
||||
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
self.pushButton_5 = QtWidgets.QPushButton(self.widget_8)
|
||||
self.pushButton_5 = QtWidgets.QPushButton(self.widget_2)
|
||||
self.pushButton_5.setObjectName("pushButton_5")
|
||||
self.horizontalLayout_3.addWidget(self.pushButton_5)
|
||||
self.pushButton_4 = QtWidgets.QPushButton(self.widget_8)
|
||||
self.pushButton_4 = QtWidgets.QPushButton(self.widget_2)
|
||||
self.pushButton_4.setObjectName("pushButton_4")
|
||||
self.horizontalLayout_3.addWidget(self.pushButton_4)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.horizontalLayout_3.addItem(spacerItem1)
|
||||
self.formLayout_9.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3)
|
||||
self.verticalLayout.addWidget(self.widget_8)
|
||||
self.widget_2 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_2.setObjectName("widget_2")
|
||||
self.formLayout_2 = QtWidgets.QFormLayout(self.widget_2)
|
||||
self.formLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_2.setObjectName("formLayout_2")
|
||||
self.titleLabel4 = QtWidgets.QLabel(self.widget_2)
|
||||
self.titleLabel4.setObjectName("titleLabel4")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel4)
|
||||
self.CheckBox_2 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.CheckBox_2.setChecked(True)
|
||||
self.CheckBox_2.setObjectName("CheckBox_2")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.CheckBox_2)
|
||||
self.checkBox_7 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_7.setObjectName("checkBox_7")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_7)
|
||||
self.checkBox_8 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_8.setObjectName("checkBox_8")
|
||||
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_8)
|
||||
self.checkBox_9 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_9.setChecked(True)
|
||||
self.checkBox_9.setObjectName("checkBox_9")
|
||||
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_9)
|
||||
self.checkBox_10 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_10.setChecked(True)
|
||||
self.checkBox_10.setObjectName("checkBox_10")
|
||||
self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkBox_10)
|
||||
self.checkBox_11 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_11.setChecked(True)
|
||||
self.checkBox_11.setObjectName("checkBox_11")
|
||||
self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.checkBox_11)
|
||||
self.checkBox_12 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_12.setChecked(True)
|
||||
self.checkBox_12.setObjectName("checkBox_12")
|
||||
self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.checkBox_12)
|
||||
self.checkBox_13 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_13.setChecked(True)
|
||||
self.checkBox_13.setObjectName("checkBox_13")
|
||||
self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.checkBox_13)
|
||||
self.checkBox_14 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_14.setChecked(True)
|
||||
self.checkBox_14.setObjectName("checkBox_14")
|
||||
self.formLayout_2.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.checkBox_14)
|
||||
self.checkBox_15 = QtWidgets.QCheckBox(self.widget_2)
|
||||
self.checkBox_15.setChecked(True)
|
||||
self.checkBox_15.setObjectName("checkBox_15")
|
||||
self.formLayout_2.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.checkBox_15)
|
||||
self.verticalLayout.addWidget(self.widget_2)
|
||||
self.widget_3 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_3.setObjectName("widget_3")
|
||||
self.formLayout_3 = QtWidgets.QFormLayout(self.widget_3)
|
||||
self.formLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_3.setObjectName("formLayout_3")
|
||||
self.titleLabel5 = QtWidgets.QLabel(self.widget_3)
|
||||
self.titleLabel5.setObjectName("titleLabel5")
|
||||
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel5)
|
||||
self.checkBox_16 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_16.setChecked(True)
|
||||
self.checkBox_16.setObjectName("checkBox_16")
|
||||
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_16)
|
||||
self.checkBox_17 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_17.setChecked(True)
|
||||
self.checkBox_17.setObjectName("checkBox_17")
|
||||
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_17)
|
||||
self.checkBox_18 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_18.setChecked(True)
|
||||
self.checkBox_18.setObjectName("checkBox_18")
|
||||
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_18)
|
||||
self.checkBox_19 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_19.setChecked(True)
|
||||
self.checkBox_19.setObjectName("checkBox_19")
|
||||
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_19)
|
||||
self.formLayout_2 = QtWidgets.QFormLayout(self.widget_3)
|
||||
self.formLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_2.setObjectName("formLayout_2")
|
||||
self.titleLabel4 = QtWidgets.QLabel(self.widget_3)
|
||||
self.titleLabel4.setObjectName("titleLabel4")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel4)
|
||||
self.CheckBox_2 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.CheckBox_2.setChecked(True)
|
||||
self.CheckBox_2.setObjectName("CheckBox_2")
|
||||
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.CheckBox_2)
|
||||
self.checkBox_7 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_7.setObjectName("checkBox_7")
|
||||
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_7)
|
||||
self.checkBox_8 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_8.setObjectName("checkBox_8")
|
||||
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_8)
|
||||
self.checkBox_9 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_9.setChecked(True)
|
||||
self.checkBox_9.setObjectName("checkBox_9")
|
||||
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_9)
|
||||
self.checkBox_10 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_10.setChecked(True)
|
||||
self.checkBox_10.setObjectName("checkBox_10")
|
||||
self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkBox_10)
|
||||
self.checkBox_11 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_11.setChecked(True)
|
||||
self.checkBox_11.setObjectName("checkBox_11")
|
||||
self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.checkBox_11)
|
||||
self.checkBox_12 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_12.setChecked(True)
|
||||
self.checkBox_12.setObjectName("checkBox_12")
|
||||
self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.checkBox_12)
|
||||
self.checkBox_13 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_13.setChecked(True)
|
||||
self.checkBox_13.setObjectName("checkBox_13")
|
||||
self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.checkBox_13)
|
||||
self.checkBox_14 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_14.setChecked(True)
|
||||
self.checkBox_14.setObjectName("checkBox_14")
|
||||
self.formLayout_2.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.checkBox_14)
|
||||
self.checkBox_15 = QtWidgets.QCheckBox(self.widget_3)
|
||||
self.checkBox_15.setChecked(True)
|
||||
self.checkBox_15.setObjectName("checkBox_15")
|
||||
self.formLayout_2.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.checkBox_15)
|
||||
self.verticalLayout.addWidget(self.widget_3)
|
||||
self.widget_4 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_4.setObjectName("widget_4")
|
||||
self.formLayout_4 = QtWidgets.QFormLayout(self.widget_4)
|
||||
self.formLayout_3 = QtWidgets.QFormLayout(self.widget_4)
|
||||
self.formLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_3.setObjectName("formLayout_3")
|
||||
self.titleLabel5 = QtWidgets.QLabel(self.widget_4)
|
||||
self.titleLabel5.setObjectName("titleLabel5")
|
||||
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel5)
|
||||
self.checkBox_16 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_16.setChecked(True)
|
||||
self.checkBox_16.setObjectName("checkBox_16")
|
||||
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_16)
|
||||
self.checkBox_17 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_17.setChecked(True)
|
||||
self.checkBox_17.setObjectName("checkBox_17")
|
||||
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_17)
|
||||
self.checkBox_18 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_18.setChecked(True)
|
||||
self.checkBox_18.setObjectName("checkBox_18")
|
||||
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_18)
|
||||
self.checkBox_19 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_19.setChecked(True)
|
||||
self.checkBox_19.setObjectName("checkBox_19")
|
||||
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_19)
|
||||
self.verticalLayout.addWidget(self.widget_4)
|
||||
self.widget_5 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_5.setObjectName("widget_5")
|
||||
self.formLayout_4 = QtWidgets.QFormLayout(self.widget_5)
|
||||
self.formLayout_4.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_4.setObjectName("formLayout_4")
|
||||
self.titleLabel6 = QtWidgets.QLabel(self.widget_4)
|
||||
self.titleLabel6 = QtWidgets.QLabel(self.widget_5)
|
||||
self.titleLabel6.setObjectName("titleLabel6")
|
||||
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel6)
|
||||
self.checkBox_20 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_20 = QtWidgets.QCheckBox(self.widget_5)
|
||||
self.checkBox_20.setObjectName("checkBox_20")
|
||||
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_20)
|
||||
self.checkBox_21 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_21 = QtWidgets.QCheckBox(self.widget_5)
|
||||
self.checkBox_21.setObjectName("checkBox_21")
|
||||
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.checkBox_21)
|
||||
self.checkBox_22 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_22 = QtWidgets.QCheckBox(self.widget_5)
|
||||
self.checkBox_22.setObjectName("checkBox_22")
|
||||
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.checkBox_22)
|
||||
self.checkBox_23 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_23 = QtWidgets.QCheckBox(self.widget_5)
|
||||
self.checkBox_23.setObjectName("checkBox_23")
|
||||
self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.checkBox_23)
|
||||
self.checkBox_24 = QtWidgets.QCheckBox(self.widget_4)
|
||||
self.checkBox_24 = QtWidgets.QCheckBox(self.widget_5)
|
||||
self.checkBox_24.setObjectName("checkBox_24")
|
||||
self.formLayout_4.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.checkBox_24)
|
||||
self.right5 = QtWidgets.QLabel(self.widget_4)
|
||||
self.right5 = QtWidgets.QLabel(self.widget_5)
|
||||
self.right5.setObjectName("right5")
|
||||
self.formLayout_4.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.right5)
|
||||
self.label_3 = QtWidgets.QLabel(self.widget_4)
|
||||
self.label_3 = QtWidgets.QLabel(self.widget_5)
|
||||
self.label_3.setObjectName("label_3")
|
||||
self.formLayout_4.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.label_3)
|
||||
self.label_4 = QtWidgets.QLabel(self.widget_4)
|
||||
self.label_4 = QtWidgets.QLabel(self.widget_5)
|
||||
self.label_4.setObjectName("label_4")
|
||||
self.formLayout_4.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.label_4)
|
||||
self.radioButton = QtWidgets.QRadioButton(self.widget_4)
|
||||
self.radioButton = QtWidgets.QRadioButton(self.widget_5)
|
||||
self.radioButton.setObjectName("radioButton")
|
||||
self.formLayout_4.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.radioButton)
|
||||
self.radioButton_2 = QtWidgets.QRadioButton(self.widget_4)
|
||||
self.radioButton_2 = QtWidgets.QRadioButton(self.widget_5)
|
||||
self.radioButton_2.setObjectName("radioButton_2")
|
||||
self.formLayout_4.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.radioButton_2)
|
||||
self.radioButton_3 = QtWidgets.QRadioButton(self.widget_4)
|
||||
self.radioButton_3 = QtWidgets.QRadioButton(self.widget_5)
|
||||
self.radioButton_3.setChecked(True)
|
||||
self.radioButton_3.setObjectName("radioButton_3")
|
||||
self.formLayout_4.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.radioButton_3)
|
||||
self.formLayout_5 = QtWidgets.QFormLayout()
|
||||
self.formLayout_5.setObjectName("formLayout_5")
|
||||
self.listWidget_2 = QtWidgets.QListWidget(self.widget_4)
|
||||
self.listWidget_2.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||
self.listWidget_2.setObjectName("listWidget_2")
|
||||
self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.listWidget_2)
|
||||
self.pushButton = QtWidgets.QPushButton(self.widget_4)
|
||||
self.listWidgetUser = QtWidgets.QListWidget(self.widget_5)
|
||||
self.listWidgetUser.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||
self.listWidgetUser.setObjectName("listWidgetUser")
|
||||
self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.listWidgetUser)
|
||||
self.pushButton = QtWidgets.QPushButton(self.widget_5)
|
||||
self.pushButton.setObjectName("pushButton")
|
||||
self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.pushButton)
|
||||
self.formLayout_4.setLayout(11, QtWidgets.QFormLayout.FieldRole, self.formLayout_5)
|
||||
self.verticalLayout.addWidget(self.widget_4)
|
||||
self.widget_5 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_5.setObjectName("widget_5")
|
||||
self.formLayout_6 = QtWidgets.QFormLayout(self.widget_5)
|
||||
self.formLayout_6.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_6.setObjectName("formLayout_6")
|
||||
self.titleLabel7 = QtWidgets.QLabel(self.widget_5)
|
||||
self.titleLabel7.setObjectName("titleLabel7")
|
||||
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel7)
|
||||
self.label_6 = QtWidgets.QLabel(self.widget_5)
|
||||
self.label_6.setObjectName("label_6")
|
||||
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.label_6)
|
||||
self.pushButton_2 = QtWidgets.QPushButton(self.widget_5)
|
||||
self.pushButton_2.setObjectName("pushButton_2")
|
||||
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.pushButton_2)
|
||||
self.verticalLayout.addWidget(self.widget_5)
|
||||
self.widget_6 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_6.setObjectName("widget_6")
|
||||
self.formLayout_7 = QtWidgets.QFormLayout(self.widget_6)
|
||||
self.formLayout_6 = QtWidgets.QFormLayout(self.widget_6)
|
||||
self.formLayout_6.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_6.setObjectName("formLayout_6")
|
||||
self.titleLabel7 = QtWidgets.QLabel(self.widget_6)
|
||||
self.titleLabel7.setObjectName("titleLabel7")
|
||||
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel7)
|
||||
self.label_6 = QtWidgets.QLabel(self.widget_6)
|
||||
self.label_6.setObjectName("label_6")
|
||||
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.label_6)
|
||||
self.pushButton_2 = QtWidgets.QPushButton(self.widget_6)
|
||||
self.pushButton_2.setObjectName("pushButton_2")
|
||||
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.pushButton_2)
|
||||
self.verticalLayout.addWidget(self.widget_6)
|
||||
self.widget_7 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
|
||||
self.widget_7.setObjectName("widget_7")
|
||||
self.formLayout_7 = QtWidgets.QFormLayout(self.widget_7)
|
||||
self.formLayout_7.setContentsMargins(0, 0, 0, 0)
|
||||
self.formLayout_7.setObjectName("formLayout_7")
|
||||
self.titleLabel8 = QtWidgets.QLabel(self.widget_6)
|
||||
self.titleLabel8 = QtWidgets.QLabel(self.widget_7)
|
||||
self.titleLabel8.setObjectName("titleLabel8")
|
||||
self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.titleLabel8)
|
||||
self.checkBox_25 = QtWidgets.QCheckBox(self.widget_6)
|
||||
self.checkBox_25 = QtWidgets.QCheckBox(self.widget_7)
|
||||
self.checkBox_25.setObjectName("checkBox_25")
|
||||
self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.checkBox_25)
|
||||
self.right6 = QtWidgets.QLabel(self.widget_6)
|
||||
self.right6 = QtWidgets.QLabel(self.widget_7)
|
||||
self.right6.setObjectName("right6")
|
||||
self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.right6)
|
||||
self.verticalLayout.addWidget(self.widget_6)
|
||||
self.verticalLayout.addWidget(self.widget_7)
|
||||
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
|
||||
self.horizontalLayout.addWidget(self.scrollArea)
|
||||
|
||||
self.retranslateUi(Setting)
|
||||
self.listWidget.setCurrentRow(0)
|
||||
QtCore.QMetaObject.connectSlotsByName(Setting)
|
||||
Setting.setTabOrder(self.listWidget, self.scrollArea)
|
||||
Setting.setTabOrder(self.scrollArea, self.CheckBox)
|
||||
Setting.setTabOrder(self.CheckBox, self.checkBox)
|
||||
Setting.setTabOrder(self.checkBox, self.checkBox_2)
|
||||
Setting.setTabOrder(self.checkBox_2, self.checkBox_3)
|
||||
Setting.setTabOrder(self.checkBox_3, self.checkBox_4)
|
||||
Setting.setTabOrder(self.checkBox_4, self.checkBox_5)
|
||||
Setting.setTabOrder(self.checkBox_5, self.checkBox_6)
|
||||
Setting.setTabOrder(self.checkBox_6, self.checkBox_26)
|
||||
Setting.setTabOrder(self.checkBox_26, self.checkBox_27)
|
||||
Setting.setTabOrder(self.checkBox_27, self.checkBox_28)
|
||||
Setting.setTabOrder(self.checkBox_28, self.checkBox_29)
|
||||
Setting.setTabOrder(self.checkBox_29, self.right1)
|
||||
Setting.setTabOrder(self.right1, self.right2)
|
||||
Setting.setTabOrder(self.right2, self.right3)
|
||||
Setting.setTabOrder(self.right3, self.comboBox)
|
||||
Setting.setTabOrder(self.comboBox, self.checkBox_30)
|
||||
Setting.setTabOrder(self.checkBox_30, self.checkBox_31)
|
||||
Setting.setTabOrder(self.checkBox_31, self.pushButton_5)
|
||||
Setting.setTabOrder(self.pushButton_5, self.pushButton_4)
|
||||
Setting.setTabOrder(self.pushButton_4, self.CheckBox_2)
|
||||
Setting.setTabOrder(self.CheckBox_2, self.checkBox_7)
|
||||
Setting.setTabOrder(self.checkBox_7, self.checkBox_8)
|
||||
Setting.setTabOrder(self.checkBox_8, self.checkBox_9)
|
||||
Setting.setTabOrder(self.checkBox_9, self.checkBox_10)
|
||||
Setting.setTabOrder(self.checkBox_10, self.checkBox_11)
|
||||
Setting.setTabOrder(self.checkBox_11, self.checkBox_12)
|
||||
Setting.setTabOrder(self.checkBox_12, self.checkBox_13)
|
||||
Setting.setTabOrder(self.checkBox_13, self.checkBox_14)
|
||||
Setting.setTabOrder(self.checkBox_14, self.checkBox_15)
|
||||
Setting.setTabOrder(self.checkBox_15, self.checkBox_16)
|
||||
Setting.setTabOrder(self.checkBox_16, self.checkBox_17)
|
||||
Setting.setTabOrder(self.checkBox_17, self.checkBox_18)
|
||||
Setting.setTabOrder(self.checkBox_18, self.checkBox_19)
|
||||
Setting.setTabOrder(self.checkBox_19, self.checkBox_20)
|
||||
Setting.setTabOrder(self.checkBox_20, self.checkBox_21)
|
||||
Setting.setTabOrder(self.checkBox_21, self.checkBox_22)
|
||||
Setting.setTabOrder(self.checkBox_22, self.checkBox_23)
|
||||
Setting.setTabOrder(self.checkBox_23, self.checkBox_24)
|
||||
Setting.setTabOrder(self.checkBox_24, self.radioButton)
|
||||
Setting.setTabOrder(self.radioButton, self.radioButton_2)
|
||||
Setting.setTabOrder(self.radioButton_2, self.radioButton_3)
|
||||
Setting.setTabOrder(self.radioButton_3, self.listWidgetUser)
|
||||
Setting.setTabOrder(self.listWidgetUser, self.pushButton)
|
||||
Setting.setTabOrder(self.pushButton, self.pushButton_2)
|
||||
Setting.setTabOrder(self.pushButton_2, self.checkBox_25)
|
||||
|
||||
def retranslateUi(self, Setting):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
from PyQt5.QtCore import Qt
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
from 仿QQ设置面板.SettingUi import Ui_Setting
|
||||
|
||||
|
@ -23,14 +22,42 @@ class Window(QWidget, Ui_Setting):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super(Window, self).__init__(*args, **kwargs)
|
||||
self.setupUi(self)
|
||||
self.resize(877, 637)
|
||||
self.resize(700, 435)
|
||||
self._blockSignals = False
|
||||
|
||||
# 绑定滚动条和左侧item事件
|
||||
self.scrollArea.verticalScrollBar().valueChanged.connect(self.onValueChanged)
|
||||
self.listWidget.itemClicked.connect(self.onItemClicked)
|
||||
|
||||
def onValueChanged(self, value):
|
||||
"""滚动条"""
|
||||
if self._blockSignals:
|
||||
# 防止item点击时改变滚动条会触发这里
|
||||
return
|
||||
for i in range(8): # 因为这里右侧有8个widget
|
||||
widget = getattr(self, 'widget_%d' % i, None)
|
||||
if widget and not widget.visibleRegion().isEmpty(): # widget不为空且在可视范围内
|
||||
self.listWidget.setCurrentRow(i) # 设置item的选中
|
||||
return
|
||||
|
||||
def onItemClicked(self, item):
|
||||
"""左侧item"""
|
||||
row = self.listWidget.row(item) # 获取点击的item的索引
|
||||
# 由于右侧的widget是按照命名widget_0 widget_1这样比较规范的方法,可以通过getattr找到
|
||||
widget = getattr(self, 'widget_%d' % row, None)
|
||||
if not widget:
|
||||
return
|
||||
# 定位右侧位置并滚动
|
||||
self._blockSignals = True
|
||||
self.scrollArea.verticalScrollBar().setSliderPosition(widget.pos().y())
|
||||
self._blockSignals = False
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
app = QApplication(sys.argv)
|
||||
app.setStyleSheet(open("style.qss","rb").read().decode("utf-8"))
|
||||
app.setStyleSheet(open("style.qss", "rb").read().decode("utf-8"))
|
||||
w = Window()
|
||||
w.show()
|
||||
sys.exit(app.exec_())
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>565</width>
|
||||
<height>535</height>
|
||||
<width>498</width>
|
||||
<height>498</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
@ -34,6 +34,15 @@
|
|||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="verticalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="horizontalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="currentRow">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>登录</string>
|
||||
|
@ -116,9 +125,9 @@
|
|||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>-60</y>
|
||||
<width>613</width>
|
||||
<height>1521</height>
|
||||
<y>-810</y>
|
||||
<width>460</width>
|
||||
<height>1308</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
|
@ -138,7 +147,7 @@
|
|||
<number>20</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget" native="true">
|
||||
<widget class="QWidget" name="widget_0" native="true">
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -218,7 +227,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_7" native="true">
|
||||
<widget class="QWidget" name="widget_1" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_8">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -309,7 +318,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_8" native="true">
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_9">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -373,6 +382,19 @@
|
|||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<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 row="1" column="1">
|
||||
|
@ -412,13 +434,26 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<widget class="QWidget" name="widget_3" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_2">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -537,7 +572,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_3" native="true">
|
||||
<widget class="QWidget" name="widget_4" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_3">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -602,7 +637,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_4" native="true">
|
||||
<widget class="QWidget" name="widget_5" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_4">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -706,7 +741,7 @@
|
|||
<item row="11" column="1">
|
||||
<layout class="QFormLayout" name="formLayout_5">
|
||||
<item row="0" column="0">
|
||||
<widget class="QListWidget" name="listWidget_2">
|
||||
<widget class="QListWidget" name="listWidgetUser">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
|
@ -725,7 +760,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_5" native="true">
|
||||
<widget class="QWidget" name="widget_6" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_6">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -764,7 +799,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_6" native="true">
|
||||
<widget class="QWidget" name="widget_7" native="true">
|
||||
<layout class="QFormLayout" name="formLayout_7">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -808,6 +843,55 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>listWidget</tabstop>
|
||||
<tabstop>scrollArea</tabstop>
|
||||
<tabstop>CheckBox</tabstop>
|
||||
<tabstop>checkBox</tabstop>
|
||||
<tabstop>checkBox_2</tabstop>
|
||||
<tabstop>checkBox_3</tabstop>
|
||||
<tabstop>checkBox_4</tabstop>
|
||||
<tabstop>checkBox_5</tabstop>
|
||||
<tabstop>checkBox_6</tabstop>
|
||||
<tabstop>checkBox_26</tabstop>
|
||||
<tabstop>checkBox_27</tabstop>
|
||||
<tabstop>checkBox_28</tabstop>
|
||||
<tabstop>checkBox_29</tabstop>
|
||||
<tabstop>right1</tabstop>
|
||||
<tabstop>right2</tabstop>
|
||||
<tabstop>right3</tabstop>
|
||||
<tabstop>comboBox</tabstop>
|
||||
<tabstop>checkBox_30</tabstop>
|
||||
<tabstop>checkBox_31</tabstop>
|
||||
<tabstop>pushButton_5</tabstop>
|
||||
<tabstop>pushButton_4</tabstop>
|
||||
<tabstop>CheckBox_2</tabstop>
|
||||
<tabstop>checkBox_7</tabstop>
|
||||
<tabstop>checkBox_8</tabstop>
|
||||
<tabstop>checkBox_9</tabstop>
|
||||
<tabstop>checkBox_10</tabstop>
|
||||
<tabstop>checkBox_11</tabstop>
|
||||
<tabstop>checkBox_12</tabstop>
|
||||
<tabstop>checkBox_13</tabstop>
|
||||
<tabstop>checkBox_14</tabstop>
|
||||
<tabstop>checkBox_15</tabstop>
|
||||
<tabstop>checkBox_16</tabstop>
|
||||
<tabstop>checkBox_17</tabstop>
|
||||
<tabstop>checkBox_18</tabstop>
|
||||
<tabstop>checkBox_19</tabstop>
|
||||
<tabstop>checkBox_20</tabstop>
|
||||
<tabstop>checkBox_21</tabstop>
|
||||
<tabstop>checkBox_22</tabstop>
|
||||
<tabstop>checkBox_23</tabstop>
|
||||
<tabstop>checkBox_24</tabstop>
|
||||
<tabstop>radioButton</tabstop>
|
||||
<tabstop>radioButton_2</tabstop>
|
||||
<tabstop>radioButton_3</tabstop>
|
||||
<tabstop>listWidgetUser</tabstop>
|
||||
<tabstop>pushButton</tabstop>
|
||||
<tabstop>pushButton_2</tabstop>
|
||||
<tabstop>checkBox_25</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -22,5 +22,56 @@
|
|||
#titleLabel1,#titleLabel2,#titleLabel3,#titleLabel4,#titleLabel5,#titleLabel6,#titleLabel7,#titleLabel8 {
|
||||
min-width: 75px;
|
||||
max-width: 75px;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#right1,#right2,#right3,#right4,#right5,#right6 {
|
||||
margin-left: 25px;
|
||||
color: rgb(128, 128, 128);
|
||||
}
|
||||
|
||||
/*所有按钮*/
|
||||
QPushButton {
|
||||
max-width: 80px;
|
||||
max-height: 24px;
|
||||
min-height: 24px;
|
||||
border-radius: 3px;
|
||||
background-color: rgb(244, 244, 244);
|
||||
border: 1px solid rgb(167, 167, 167);
|
||||
}
|
||||
QPushButton:hover {
|
||||
background-color: rgb(190, 231, 253);
|
||||
}
|
||||
QPushButton:pressed {
|
||||
background-color: rgb(244, 244, 244);
|
||||
}
|
||||
|
||||
QComboBox {
|
||||
max-width: 80px;
|
||||
max-height: 20px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
QComboBox {
|
||||
border: 1px solid rgb(167, 167, 167);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#listWidgetUser {
|
||||
min-width: 290px;
|
||||
max-width: 290px;
|
||||
max-height: 120px;
|
||||
min-height: 120px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgb(227, 236, 242);
|
||||
background-color: rgb(244, 250, 253);
|
||||
}
|
||||
|
||||
QScrollBar::vertical {
|
||||
background: rgb(178, 178, 178);
|
||||
border: -5px solid grey;
|
||||
margin: 0px 0px 0px 0px;
|
||||
width: 10px;
|
||||
}
|
||||
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||||
background: white;
|
||||
}
|
Loading…
Reference in a new issue