diff --git a/bin/defaultstyle.qss b/bin/defaultstyle.qss index d194306..a78334d 100644 --- a/bin/defaultstyle.qss +++ b/bin/defaultstyle.qss @@ -14,7 +14,11 @@ QLabel#MainTxt{font-size: 60px;font-weight: 500;color:white;background-color: tr QLabel#MainTxtEn{font-size: 60px;font-weight:normal;color:white;background-color: transparent;} QWidget#parasetting{background-color:white;border-radius: 10px;} - + /*导联方案*/ +QPushButton#btnShem{ background: rgb(255, 255, 255); color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px; border:0px ; } + QPushButton#btnShem:hover{color: black;background: rgb(255, 255, 255);color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px; } + QPushButton#btnShem:pressed{color: black; background: rgb(255, 255, 255);color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px;} + QPushButton#btnShem:checked{ color: white;background: #0D9DDB;border-radius: 8px; } QLineEdit { diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 9a6338c..636030f 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/leadscheme.cpp b/xyylMCWEACSystem/leadscheme.cpp index c590ffb..6c82df4 100644 --- a/xyylMCWEACSystem/leadscheme.cpp +++ b/xyylMCWEACSystem/leadscheme.cpp @@ -216,12 +216,13 @@ void LeadScheme::initLay() m_vlayHH->addWidget(btn); btn->setCheckable(true); m_listBtnsSchemes.append(btn); - + btn->setObjectName("btnShem"); +#if 0 btn->setStyleSheet("QPushButton{ background: rgb(255, 255, 255); color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px; border:0px ; } \ QPushButton:hover{color: black;background: rgb(255, 255, 255);color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px; }\ QPushButton:pressed{color: black; background: rgb(255, 255, 255);color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal; border-radius: 4px;}\ QPushButton:checked{ color: white;background: #0D9DDB;border-radius: 8px; }"); - +#endif } m_vlayHH->addStretch(); @@ -252,6 +253,7 @@ void LeadScheme::initLay() gridlayOut->addWidget( btn,i+1,1); btn->setCheckable(true); + } gridlayOut->addWidget( labPoints,0,colmn++,Qt::AlignHCenter); for (int i = 0 ;isetMinimumHeight(minHeight); btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); pButtonGroup2->addButton(btn); + gridlayOut->addWidget( btn,i+1,2); btn->setCheckable(true); @@ -271,6 +274,7 @@ void LeadScheme::initLay() //btn->setMinimumHeight(minHeight); btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); pButtonGroup3->addButton(btn); + gridlayOut->addWidget( btn,i+1,3); btn->setCheckable(true); @@ -510,7 +514,8 @@ void LeadScheme::slotSave() { QPushButton * btn = new QPushButton(listNames.at(i)); connect(btn,SIGNAL(clicked(bool)),this,SLOT(slotUpdateCurScheme())); - btn->setMaximumHeight(40); + btn->setMaximumHeight(60); + btn->setObjectName("btnShem"); btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); pButtonGroup0->addButton(btn); //gridShech->addWidget( btn,i+1,0);