2024-10-30 09:27:16 +08:00
|
|
|
|
#include "widget.h"
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
#include "regwidget.h"
|
|
|
|
|
#include "loginwidget.h"
|
|
|
|
|
#include "medicalrecordwidget.h"
|
|
|
|
|
#include "medicalrecordmanager.h"
|
|
|
|
|
#include "hospitalinfo.h"
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
|
#include <QGraphicsScene>
|
|
|
|
|
#include <QGraphicsPathItem>
|
|
|
|
|
#include <QGraphicsPolygonItem>
|
|
|
|
|
#include <QGraphicsTextItem>
|
|
|
|
|
#include <QPainterPath>
|
|
|
|
|
#include <QFont>
|
|
|
|
|
#include <QColor>
|
|
|
|
|
#include <QPen>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
|
#include <QGraphicsScene>
|
|
|
|
|
#include <QGraphicsEllipseItem>
|
|
|
|
|
#include <QGraphicsTextItem>
|
|
|
|
|
#include <QFont>
|
|
|
|
|
#include <qmath.h>
|
|
|
|
|
#include "curchatwidget.h"
|
|
|
|
|
#include "DevConWidget.h"
|
2024-10-30 11:08:49 +08:00
|
|
|
|
#include "framewindow.h"
|
|
|
|
|
#include <QStackedWidget>
|
2024-10-31 09:21:30 +08:00
|
|
|
|
|
|
|
|
|
#include "navlistwidget.h"
|
2024-10-31 14:35:10 +08:00
|
|
|
|
#include "framelesswindow.h"
|
2024-11-06 15:59:13 +08:00
|
|
|
|
|
|
|
|
|
#include "medicalrecordmanager.h"
|
2024-11-12 13:40:43 +08:00
|
|
|
|
#include "parametersettingswidget.h"
|
2024-11-06 15:59:13 +08:00
|
|
|
|
#include <QCalendarWidget>
|
2024-11-20 15:28:10 +08:00
|
|
|
|
#include "datamanager.h"
|
2024-11-25 14:28:17 +08:00
|
|
|
|
#include <QTextCodec>
|
2024-10-30 09:27:16 +08:00
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a(argc, argv);
|
2024-11-25 14:28:17 +08:00
|
|
|
|
QTextCodec *codec = QTextCodec::codecForName("GBK");
|
|
|
|
|
QTextCodec::setCodecForLocale(codec);
|
2024-10-31 14:35:10 +08:00
|
|
|
|
FrameWindow *mainw = new FrameWindow;
|
|
|
|
|
FramelessWindow *window = new FramelessWindow(mainw);
|
|
|
|
|
window->resize(300, 400);
|
2024-11-06 15:59:13 +08:00
|
|
|
|
window->showMaximized();
|
2024-10-31 14:35:10 +08:00
|
|
|
|
|
2024-10-31 09:21:30 +08:00
|
|
|
|
//a.setStyleSheet("QWidget{background-color:#ffffff;}");
|
2024-10-31 10:41:55 +08:00
|
|
|
|
// a.setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
|
2024-10-31 09:21:30 +08:00
|
|
|
|
QFont globalFont;
|
2024-10-31 13:14:24 +08:00
|
|
|
|
globalFont.setFamily("黑体");
|
|
|
|
|
QApplication::setFont(globalFont);
|
2024-11-20 15:28:10 +08:00
|
|
|
|
|
|
|
|
|
DataManager::instance();
|
|
|
|
|
|
2024-11-18 15:15:32 +08:00
|
|
|
|
#if 0
|
2024-11-06 15:59:13 +08:00
|
|
|
|
MedicalRecordManager me;
|
|
|
|
|
me.show();
|
2024-10-31 13:14:24 +08:00
|
|
|
|
|
2024-11-12 13:40:43 +08:00
|
|
|
|
ParameterSettingsWidget mekl;
|
|
|
|
|
mekl.show();
|
2024-11-06 15:59:13 +08:00
|
|
|
|
|
|
|
|
|
|
2024-11-14 16:33:39 +08:00
|
|
|
|
HospitalInfo ho;
|
|
|
|
|
ho.show();
|
2024-11-18 15:15:32 +08:00
|
|
|
|
|
2024-10-31 13:14:24 +08:00
|
|
|
|
|
|
|
|
|
CurChatWidget w;
|
|
|
|
|
w.show();
|
|
|
|
|
RegWidget re;
|
|
|
|
|
re.show();
|
|
|
|
|
|
2024-10-30 09:27:16 +08:00
|
|
|
|
DevConWidget de;
|
|
|
|
|
de.show();
|
|
|
|
|
|
2024-11-14 16:33:39 +08:00
|
|
|
|
|
2024-10-30 09:27:16 +08:00
|
|
|
|
|
|
|
|
|
LoginWidget log;
|
|
|
|
|
log.show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MedicalRecordWidget mew;
|
|
|
|
|
mew.show();
|
|
|
|
|
|
2024-10-31 09:21:30 +08:00
|
|
|
|
|
2024-10-30 09:27:16 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
2024-11-05 15:42:02 +08:00
|
|
|
|
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;
|
2024-11-05 16:22:19 +08:00
|
|
|
|
}
|
|
|
|
|
QPushButton{border:1px solid black;}
|
|
|
|
|
QGroupBox{
|
|
|
|
|
background-color: #4F4F4F;
|
|
|
|
|
border: 1px solid #969696;
|
|
|
|
|
color: rgb(13,157,219);
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
margin-top: 2ex;
|
|
|
|
|
}
|
2024-11-06 15:59:13 +08:00
|
|
|
|
QDateEdit
|
|
|
|
|
{
|
|
|
|
|
border: 1px solid rgb(22,63,23);
|
|
|
|
|
color: black;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 15:42:02 +08:00
|
|
|
|
)";
|
|
|
|
|
|
|
|
|
|
a.setStyleSheet(qss1);
|
2024-10-30 09:27:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|