处理页面跳转

This commit is contained in:
work-zym\zhangyiming 2024-11-07 15:11:15 +08:00
parent 5bf9f5ff43
commit c910593000
4 changed files with 9 additions and 4 deletions

Binary file not shown.

View File

@ -10,6 +10,9 @@ MedicalRecordManager::MedicalRecordManager(QWidget * parent):QWidget(parent)
initLay();
initConnect();
initTable();
m_labMedRecManager.setStyleSheet("QLabel { font-size: 14px;\
color: rgb(13,157,219); }\
");
m_btnOpen.setStyleSheet("QPushButton{\
background: white;\
border-radius:10px;padding:7px 10px;\
@ -153,7 +156,7 @@ MedicalRecordManager::~MedicalRecordManager()
}
void MedicalRecordManager::init()
{
m_labMedRecManager.setText("病例管理");
//QAction
m_actSearch = new QAction;
m_actSearch->setToolTip("搜索");//设置鼠标悬浮的提示
@ -189,6 +192,7 @@ void MedicalRecordManager::initLay()
QHBoxLayout * hlay = new QHBoxLayout;
m_editSearch.setStyleSheet(":/image/EGG_icon_amplify.png");
hlay->addWidget(&m_labMedRecManager);
hlay->addStretch();
hlay->addWidget(&m_editSearch);

View File

@ -34,6 +34,7 @@ private slots:
*/
void slotSearch();
private:
QLabel m_labMedRecManager;
QAction * m_actSearch;
QLineEdit m_editSearch;

View File

@ -21,8 +21,6 @@ SystemSettingWidget::~SystemSettingWidget()
void SystemSettingWidget::init()
{
m_stackedWidget.addWidget(&m_MedicalRecordWidget);
m_stackedWidget.addWidget(&m_MedicalRecordManagerWidget);
//this->setStyleSheet("QWidget{background: rgb(47, 61, 82);border:0px}");
this->setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
@ -98,15 +96,17 @@ void SystemSettingWidget::slotClickedChanged()
void SystemSettingWidget::slotClickedBtn(QString strName)
{
if(strName.compare("fill-in-the-Case")==0)
{
m_stackedWidget.addWidget(&m_MedicalRecordWidget);
m_stackedWidget.setCurrentWidget(&m_MedicalRecordWidget);
}
else if(strName.compare("case-management")==0)
{
m_stackedWidget.addWidget(&m_MedicalRecordManagerWidget);
m_stackedWidget.setCurrentWidget(&m_MedicalRecordManagerWidget);
}