1 增加系统设置 数据处理 脑电采集相关样式设计
2 增加程序依赖
This commit is contained in:
@@ -23,19 +23,36 @@ void DataProcessWidget::init()
|
||||
m_labDes.setMinimumSize(QSize(200,30));
|
||||
m_btnRet.setMaximumSize(QSize(100,30));
|
||||
m_btnRet.setMinimumSize(QSize(100,30));
|
||||
|
||||
m_NavListWidget.setList(QStringList()<<"低频滤波"<<"高频滤波"<<"脑形地图"<<"功率谱图"<<"频段合成"<<"趋势分析"<<"打印报告",
|
||||
QStringList()<<"ssss"<<"sss"<<"sk"<<"set"<<"info"<<"ss"<<"ss");
|
||||
|
||||
}
|
||||
void DataProcessWidget::initLay()
|
||||
{
|
||||
QHBoxLayout * hlay = new QHBoxLayout;
|
||||
hlay->addWidget(&m_btnRet,1,Qt::AlignLeft);
|
||||
hlay->addWidget(&m_labDes,9, Qt::AlignHCenter);
|
||||
|
||||
|
||||
QWidget * w1 = new QWidget;
|
||||
w1->setFixedHeight(60);
|
||||
w1->setStyleSheet("QWidget{background-color:#ffffff;}");
|
||||
w1->setLayout(hlay);
|
||||
QVBoxLayout * vlay = new QVBoxLayout;
|
||||
vlay->addLayout(hlay,1);
|
||||
vlay->addWidget(new QWidget,9);
|
||||
vlay->addWidget(w1,1);
|
||||
QWidget * w = new QWidget;
|
||||
w->setStyleSheet("QWidget{background: rgb(47, 61, 82);border:0px}");
|
||||
vlay->addWidget(w,9);
|
||||
vlay->setContentsMargins(0,0,0,0);
|
||||
vlay->setSpacing(10);
|
||||
setLayout(vlay);
|
||||
|
||||
QHBoxLayout * hlayMain = new QHBoxLayout;
|
||||
|
||||
w ->setLayout(hlayMain);
|
||||
hlayMain->addWidget(&m_NavListWidget,1);
|
||||
hlayMain->addWidget(&m_stackedWidget,9);
|
||||
hlayMain->setContentsMargins(0,0,0,0);
|
||||
|
||||
}
|
||||
bool DataProcessWidget::initConnect()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "navlistwidget.h"
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
#include <QStackedWidget>
|
||||
class DataProcessWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -23,6 +26,8 @@ private:
|
||||
QPushButton m_btnRet;
|
||||
//描述
|
||||
QLabel m_labDes;
|
||||
NavListWidget m_NavListWidget;
|
||||
QStackedWidget m_stackedWidget;
|
||||
|
||||
};
|
||||
#endif // DataProcessWidget_H
|
||||
|
||||
@@ -27,19 +27,34 @@ void EggWidget::init()
|
||||
m_btnRet.setMaximumSize(QSize(100,30));
|
||||
m_btnRet.setMinimumSize(QSize(100,30));
|
||||
|
||||
m_NavListWidget.setList(QStringList()<<"连接设备"<<"阻抗检测"<<"脑电采集"<<"波形选段"<<"波形剪辑"<<"波形测量"<<"提取波段",
|
||||
QStringList()<<"ssss"<<"sss"<<"sk"<<"set"<<"info"<<"ss"<<"sss");
|
||||
}
|
||||
void EggWidget::initLay()
|
||||
{
|
||||
QHBoxLayout * hlay = new QHBoxLayout;
|
||||
hlay->addWidget(&m_btnRet,1,Qt::AlignLeft);
|
||||
hlay->addWidget(&m_labDes,9, Qt::AlignHCenter);
|
||||
|
||||
|
||||
QWidget * w1 = new QWidget;
|
||||
w1->setFixedHeight(60);
|
||||
w1->setStyleSheet("QWidget{background-color:#ffffff;}");
|
||||
w1->setLayout(hlay);
|
||||
QVBoxLayout * vlay = new QVBoxLayout;
|
||||
vlay->addLayout(hlay,1);
|
||||
vlay->addWidget(new QWidget,9);
|
||||
vlay->addWidget(w1,1);
|
||||
QWidget * w = new QWidget;
|
||||
w->setStyleSheet("QWidget{background: rgb(47, 61, 82);border:0px}");
|
||||
vlay->addWidget(w,9);
|
||||
vlay->setContentsMargins(0,0,0,0);
|
||||
vlay->setSpacing(10);
|
||||
setLayout(vlay);
|
||||
|
||||
QHBoxLayout * hlayMain = new QHBoxLayout;
|
||||
|
||||
w ->setLayout(hlayMain);
|
||||
hlayMain->addWidget(&m_NavListWidget,1);
|
||||
hlayMain->addWidget(&m_stackedWidget,9);
|
||||
hlayMain->setContentsMargins(0,0,0,0);
|
||||
|
||||
}
|
||||
bool EggWidget::initConnect()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "navlistwidget.h"
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
#include <QStackedWidget>
|
||||
class EggWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -23,6 +26,8 @@ private:
|
||||
QPushButton m_btnRet;
|
||||
//描述
|
||||
QLabel m_labDes;
|
||||
NavListWidget m_NavListWidget;
|
||||
QStackedWidget m_stackedWidget;
|
||||
|
||||
};
|
||||
#endif // EggWidget_H
|
||||
|
||||
@@ -19,7 +19,7 @@ void FrameWindow::init()
|
||||
{
|
||||
m_stackWidget.addWidget(&m_MainWindow);
|
||||
m_stackWidget.setCurrentWidget(&m_MainWindow);
|
||||
|
||||
setWindowTitle(" ");
|
||||
setObjectName("FrameWindow");
|
||||
this->setStyleSheet("QWidget{background-color:#ffffff;}");
|
||||
|
||||
|
||||
@@ -37,22 +37,23 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
CurChatWidget w;
|
||||
w.show();
|
||||
RegWidget re;
|
||||
re.show();
|
||||
|
||||
FrameWindow mainw;
|
||||
mainw.resize(1000,800);
|
||||
mainw.show();
|
||||
//a.setStyleSheet("QWidget{background-color:#ffffff;}");
|
||||
// a.setStyleSheet("QWidget{background: rgb(47, 61, 82);}");
|
||||
QFont globalFont;
|
||||
globalFont.setFamily("黑体");
|
||||
QApplication::setFont(globalFont);
|
||||
NavListWidget nav;
|
||||
nav.setList(QStringList()<<"填写病历"<<"病历管理"<<"导联方案",QStringList()<<"ssss"<<"sss"<<"sk");
|
||||
nav.show();
|
||||
#if 1
|
||||
globalFont.setFamily("黑体");
|
||||
QApplication::setFont(globalFont);
|
||||
|
||||
#if 0
|
||||
|
||||
CurChatWidget w;
|
||||
w.show();
|
||||
RegWidget re;
|
||||
re.show();
|
||||
|
||||
DevConWidget de;
|
||||
de.show();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ void SystemSettingWidget::init()
|
||||
m_btnRet.setMaximumSize(QSize(100,30));
|
||||
m_btnRet.setMinimumSize(QSize(100,30));
|
||||
|
||||
m_NavListWidget.setList(QStringList()<<"填写病历"<<"病例管理"<<"导联方案"<<"参数设置"<<"医院信息",
|
||||
m_NavListWidget.setList(QStringList()<<"填写病例"<<"病例管理"<<"导联方案"<<"参数设置"<<"医院信息",
|
||||
QStringList()<<"ssss"<<"sss"<<"sk"<<"set"<<"info");
|
||||
}
|
||||
void SystemSettingWidget::initLay()
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "navlistwidget.h"
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
#include <QStackedWidget>
|
||||
class SystemSettingWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -10,7 +10,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = xyylMCWEACSystem
|
||||
TEMPLATE = app
|
||||
|
||||
DESTDIR = D:/gitProject/bin
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.9.1, 2024-10-29T09:37:58. -->
|
||||
<!-- Written by QtCreator 4.9.1, 2024-10-31T13:05:27. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
@@ -8,7 +8,7 @@
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="int">0</value>
|
||||
<value type="int">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
@@ -67,7 +67,7 @@
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.13.0 MinGW 32-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.13.0 MinGW 32-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5130.win32_mingw73_kit</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
@@ -306,8 +306,8 @@
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">xyylMCWEACSystem</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/project/qt-project/xyylMCWEACSystem/xyylMCWEACSystem.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">xyylMCWEACSystem2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/gitProject/xyylMCWEACSystem/xyylMCWEACSystem.pro</value>
|
||||
<value type="QString" key="RunConfiguration.Arguments"></value>
|
||||
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
@@ -328,7 +328,7 @@
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.13.0 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.13.0 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5130.win64_mingw73_kit</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
@@ -566,19 +566,19 @@
|
||||
</valuelist>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">xyylMCWEACSystem</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/gitProject/xyylMCWEACSystem/xyylMCWEACSystem.pro</value>
|
||||
<value type="QString" key="RunConfiguration.Arguments"></value>
|
||||
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default"></value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/gitProject/bin</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
|
||||
Reference in New Issue
Block a user