wumu
2025-02-10 6a1c01b3b618d56011560d19f4da9c47793fff4a
clientmainwindow.cpp
@@ -1,6 +1,7 @@
#include "clientmainwindow.h"
#include "ui_clientmainwindow.h"
#pragma execution_character_set("utf-8")
ClientMainWindow::ClientMainWindow(QWidget *parent) :
    QMainWindow(parent),
@@ -35,10 +36,20 @@
    m_showInfoMess = new ShowInfoMessage(this);
    ui->tabWidget->addTab(m_showInfoMess,"信息提示");
    m_regular = new RegularInvestment(this);
    ui->tabWidget->addTab(m_regular,"定投设置");
    m_history = new HistoryData(this);
    ui->tabWidget->addTab(m_history,"历史分析");
    // 关联一下2个界面的信号和槽,用来传递图表所需的数据及展示
    connect(m_getStockList,SIGNAL(sendChartData(QLineSeries*)),m_stockPolicy,SLOT(showNewStockData(QLineSeries*)));
    connect(m_getStockList,SIGNAL(sendChartData(QSplineSeries*)),m_stockPolicy,SLOT(showNewStockData(QSplineSeries*)));
    connect(m_getStockList,SIGNAL(sendInfoMess(QString)),m_showInfoMess,SLOT(showInfo(QString)));
    connect(m_regular,SIGNAL(getClosePriceSignal(QString)),m_getStockList,SLOT(getLastClosePrice(QString)));
    connect(m_getStockList,SIGNAL(sendClosePrice(QString,QString)),m_regular,SLOT(showClosePrice(QString,QString)));
}