调整病例填写模块的样式

This commit is contained in:
work-zym\zhangyiming 2024-11-05 15:42:02 +08:00
parent bb36082664
commit 606e58ec9a
4 changed files with 59 additions and 23 deletions

Binary file not shown.

View File

@ -75,6 +75,50 @@ mew.show();
#endif #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);

View File

@ -17,27 +17,13 @@ MedicalRecordWidget::~MedicalRecordWidget()
} }
void MedicalRecordWidget::init() void MedicalRecordWidget::init()
{ {
setStyleSheet("QPushButton{\ setObjectName("MedicalRecordWidget");
background-color: rgb(255,255,230);\ this->setStyleSheet("QWidget \
color: blue;\ {\
border-radius: 30px;\ background-color:white;\
font-size: 16px;\ border-radius:10px;\
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);}"\
);
// setFixedSize(600,600); // setFixedSize(600,600);
m_labStar.setText(tr("*")); m_labStar.setText(tr("*"));
@ -93,7 +79,7 @@ void MedicalRecordWidget::init()
m_chMan.setText(tr(""));; m_chMan.setText(tr(""));;
m_chWan.setText(tr(""));; m_chWan.setText(tr(""));;
//左右利 //左右利
m_labLaterality.setText(tr(" 左右利")); m_labLaterality.setText(tr(" 左右利"));
m_chLeft.setText(tr(""));; m_chLeft.setText(tr(""));;
m_chRfight.setText(tr(""));; m_chRfight.setText(tr(""));;
//检查日期 //检查日期
@ -175,7 +161,7 @@ void MedicalRecordWidget::initLay()
vlay->addLayout(hlay5); vlay->addLayout(hlay5);
vlay->addLayout(hlay6); vlay->addLayout(hlay6);
vlay->addStretch(); //vlay->addStretch();
@ -183,6 +169,8 @@ void MedicalRecordWidget::initLay()
QHBoxLayout * vlayall = new QHBoxLayout; QHBoxLayout * vlayall = new QHBoxLayout;
vlayall->addWidget(&m_gbx); vlayall->addWidget(&m_gbx);
int widthi =50;
vlay->setContentsMargins(widthi,widthi,widthi,widthi);
setLayout(vlayall); setLayout(vlayall);
int iwidth = 200; int iwidth = 200;
@ -191,6 +179,9 @@ void MedicalRecordWidget::initLay()
m_dateBirthDay.setFixedWidth(iwidth); m_dateBirthDay.setFixedWidth(iwidth);
m_chLeft.setFixedWidth(iwidth); m_chLeft.setFixedWidth(iwidth);
m_editAge.setFixedWidth(iwidth); m_editAge.setFixedWidth(iwidth);
m_chLeft.setFixedWidth(iwidth/2);
m_chRfight.setFixedWidth(iwidth/2);
#else #else
QVBoxLayout * vlay1 = new QVBoxLayout; QVBoxLayout * vlay1 = new QVBoxLayout;

View File

@ -49,6 +49,7 @@ void SystemSettingWidget::initLay()
QWidget * w = new QWidget; QWidget * w = new QWidget;
//w->setStyleSheet("QWidget{background-color:#ffffff;border:1px solid blcak}"); //w->setStyleSheet("QWidget{background-color:#ffffff;border:1px solid blcak}");
w->setStyleSheet("QWidget{background-color:#ffffff;}"); w->setStyleSheet("QWidget{background-color:#ffffff;}");
w->setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
vlay->addWidget(w,9); vlay->addWidget(w,9);
vlay->setContentsMargins(0,0,0,0); vlay->setContentsMargins(0,0,0,0);
vlay->setSpacing(10); vlay->setSpacing(10);