1 Star 0 Fork 4

CMeng/QCustomPlotChart

forked from MeetOne/QCustomPlotChart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mainwindow.cpp 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
MeetOne 提交于 2020-03-25 19:03 . no commit message
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
dataHandle = new DataHandle(ui->plot);
dataHandle->setLabelPos(ui->lbl_pos);
dataHandle->setSaveTextEdit(ui->txt_name);
dataHandle->setSaveButton(ui->btn_save);
dataHandle->setCBoxFiles(ui->cbox_files);
dataHandle->InitDataAndUI();
// cusWin = new CustomWindow();
// CustomWindow* pWm = new CustomWindow();
// pWm->setTitle(QStringLiteral(" Chart"));
// pWm->setTopHeight(40);
// pWm->setIconShow(false);
// pWm->show();
//// pWm->setGeometry(geometry());
// pWm->setMouseTracking(true);
// pWm->_main_vlayout->addWidget(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_actionSaveAnthor_triggered()
{
QString fileName = "test.ini";
dataHandle->saveAnOtherFile(fileName);
}
void MainWindow::on_actionChoose_triggered()
{
QString fileName = "test11.ini";
dataHandle->openANewFile(fileName);
}
void MainWindow::on_actionAllSave_triggered()
{
}
void MainWindow::on_chk_showLegend_clicked()
{
// 没选中不显示
ui->chk_showLegend->checkState() == Qt::Unchecked ?
dataHandle->isShowLegend(false) :
dataHandle->isShowLegend(true);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/CMengCoder/QCustomPlotChart.git
git@gitee.com:CMengCoder/QCustomPlotChart.git
CMengCoder
QCustomPlotChart
QCustomPlotChart
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385