diff --git a/bin/xyylMCWEACSystem.exe b/bin/xyylMCWEACSystem.exe index 86d3be7..7335cb3 100644 Binary files a/bin/xyylMCWEACSystem.exe and b/bin/xyylMCWEACSystem.exe differ diff --git a/xyylMCWEACSystem/main.cpp b/xyylMCWEACSystem/main.cpp index 6e122ec..537a6dc 100644 --- a/xyylMCWEACSystem/main.cpp +++ b/xyylMCWEACSystem/main.cpp @@ -75,6 +75,50 @@ mew.show(); #endif +QString qss1=R"( +QLineEdit{ +border: 1px solid #ABCDA0; /* 边框宽度为1px,颜色为#A0A0A0 */ +border-radius: 3px; /* 边框圆角 */ +padding-left: 5px; /* 文本距离左边界有5px */ +background-color: #F2F2F2; /* 背景颜色 */ +color: #A0A0A0; /* 文本颜色 */ +selection-background-color: #A0A0A0; /* 选中文本的背景颜色 */ +selection-color: #F2F2F2; /* 选中文本的颜色 */ +font-family: "Microsoft YaHei"; /* 文本字体族 */ +font-size: 10pt; /* 文本字体大小 */ +} + +QLineEdit:hover { /* 鼠标悬浮在QLineEdit时的状态 */ +border: 1px solid #298DFF; +border-radius: 3px; +background-color: #F2F2F2; +color: #298DFF; +selection-background-color: #298DFF; +selection-color: #F2F2F2; +} + +QLineEdit[echoMode="2"] { /* QLineEdit有输入掩码时的状态 */ +lineedit-password-character: 9679; +lineedit-password-mask-delay: 2000; +} + +QLineEdit:disabled { /* QLineEdit在禁用时的状态 */ +border: 1px solid #CDCDCD; +background-color: #CDCDCD; +color: #B4B4B4; +} + +QLineEdit:read-only { /* QLineEdit在只读时的状态 */ +background-color: #CDCDCD; +color: #F2F2F2; +} +QTextEdit{ color: black; + background-color: white; border:1px solid black; + }; + QPushButton{border:1px solid black;}; +)"; + +a.setStyleSheet(qss1); diff --git a/xyylMCWEACSystem/medicalrecordwidget.cpp b/xyylMCWEACSystem/medicalrecordwidget.cpp index 5fdc004..8b955af 100644 --- a/xyylMCWEACSystem/medicalrecordwidget.cpp +++ b/xyylMCWEACSystem/medicalrecordwidget.cpp @@ -17,27 +17,13 @@ MedicalRecordWidget::~MedicalRecordWidget() } void MedicalRecordWidget::init() { - setStyleSheet("QPushButton{\ - background-color: rgb(255,255,230);\ - color: blue;\ - border-radius: 30px;\ - font-size: 16px;\ - font-weight: bold;\ - }\ - QPushButton:hover{\ - background: rgb(85, 85, 85);\ - border-radius: 30px;\ - }\ - QPushButton:pressed{\ - background: rgb(80, 80, 80);\ - border-radius: 30px;\ - }\ - QPushButton:checked{\ - background: #0d9ddb;\ - border-radius: 30px;\ - }"\ - "QWidget#NavList{background-color:rgb(47, 61, 82);}"\ - ); + setObjectName("MedicalRecordWidget"); + this->setStyleSheet("QWidget \ + {\ + background-color:white;\ + border-radius:10px;\ + }"\ + ); // setFixedSize(600,600); m_labStar.setText(tr("*")); @@ -93,7 +79,7 @@ void MedicalRecordWidget::init() m_chMan.setText(tr("男"));; m_chWan.setText(tr("女"));; //左右利 - m_labLaterality.setText(tr(" 左右利")); + m_labLaterality.setText(tr(" 左右利")); m_chLeft.setText(tr("左"));; m_chRfight.setText(tr("右"));; //检查日期 @@ -175,7 +161,7 @@ void MedicalRecordWidget::initLay() vlay->addLayout(hlay5); vlay->addLayout(hlay6); - vlay->addStretch(); + //vlay->addStretch(); @@ -183,6 +169,8 @@ void MedicalRecordWidget::initLay() QHBoxLayout * vlayall = new QHBoxLayout; vlayall->addWidget(&m_gbx); + int widthi =50; + vlay->setContentsMargins(widthi,widthi,widthi,widthi); setLayout(vlayall); int iwidth = 200; @@ -191,6 +179,9 @@ void MedicalRecordWidget::initLay() m_dateBirthDay.setFixedWidth(iwidth); m_chLeft.setFixedWidth(iwidth); m_editAge.setFixedWidth(iwidth); + m_chLeft.setFixedWidth(iwidth/2); + m_chRfight.setFixedWidth(iwidth/2); + #else QVBoxLayout * vlay1 = new QVBoxLayout; diff --git a/xyylMCWEACSystem/systemsettingwidget.cpp b/xyylMCWEACSystem/systemsettingwidget.cpp index e9c02fe..94dc8c7 100644 --- a/xyylMCWEACSystem/systemsettingwidget.cpp +++ b/xyylMCWEACSystem/systemsettingwidget.cpp @@ -49,6 +49,7 @@ void SystemSettingWidget::initLay() QWidget * w = new QWidget; //w->setStyleSheet("QWidget{background-color:#ffffff;border:1px solid blcak}"); w->setStyleSheet("QWidget{background-color:#ffffff;}"); + w->setStyleSheet("QWidget{background: rgb(47, 61, 82);}"); vlay->addWidget(w,9); vlay->setContentsMargins(0,0,0,0); vlay->setSpacing(10);