更新代码

master
feiyangqingyun 2022-05-16 12:41:17 +08:00
parent 91dc4457a0
commit 1b1c80db4b
15 changed files with 136 additions and 5 deletions

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_bigscreen">
<title></title>
</head>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_iotsystem">
<title></title>
</head>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_video_system">
<title></title>
</head>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_bigscreen">
<title></title>
</head>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_iotsystem">
<title></title>
</head>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://github.com/feiyangqingyun/QWidgetExe2/tree/master/snap_video_system">
<title></title>
</head>
</html>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/blob/master/snap_bigscreen/readme.md">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_bigscreen">
<title></title>
</head>
</html>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/blob/master/snap_iotsystem/readme.md">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_iotsystem">
<title></title>
</head>
</html>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/blob/master/snap_video_system/readme.md">
<meta http-equiv="refresh" content="0.1;url=https://gitee.com/feiyangqingyun/QWidgetExe2/tree/master/snap_video_system">
<title></title>
</head>
</html>

View File

@ -1,13 +1,16 @@
FORMS += \
$$PWD/frmmain.ui \
$$PWD/frmmultiaxes.ui
$$PWD/frmmultiaxes.ui \
$$PWD/frmmultiplot.ui
HEADERS += \
$$PWD/frmmain.h \
$$PWD/frmmultiaxes.h \
$$PWD/frmmultiplot.h \
$$PWD/iconhelper.h
SOURCES += \
$$PWD/frmmain.cpp \
$$PWD/frmmultiaxes.cpp \
$$PWD/frmmultiplot.cpp \
$$PWD/iconhelper.cpp

View File

@ -31,6 +31,7 @@
#include "frminteraction.h"
#include "frmscrollbar.h"
#include "frmmultiaxes.h"
#include "frmmultiplot.h"
frmMain::frmMain(QWidget *parent) : QWidget(parent), ui(new Ui::frmMain)
{
@ -87,6 +88,7 @@ void frmMain::initWidget()
ui->stackedWidget->addWidget(new frmInterAction);
ui->stackedWidget->addWidget(new frmScrollBar);
ui->stackedWidget->addWidget(new frmMultiAxes);
ui->stackedWidget->addWidget(new frmMultiPlot);
}
void frmMain::initNav()
@ -97,7 +99,8 @@ void frmMain::initNav()
<< "曲线条样式" << "日期数据图" << "纹理画刷图" << "双坐标曲线" << "对数曲线图"
<< "动态正弦图" << "环形曲线图" << "垂直柱状图" << "箱形盒须图" << "静态指示线"
<< "动态指示线" << "曲线样式图" << "高级坐标轴" << "颜色热力图" << "金融曲线图"
<< "南丁格尔图" << "坐标轴指示" << "相互作用图" << "滚动条曲线" << "多坐标轴图";
<< "南丁格尔图" << "坐标轴指示" << "相互作用图" << "滚动条曲线" << "多坐标轴图"
<< "多轴多曲线";
//自动生成按钮
for (int i = 0; i < names.count(); i++) {

View File

@ -80,6 +80,7 @@ void frmMultiAxes::initPlot(QCustomPlot *customPlot, const QCPAxis::AxisType &ty
connect(customPlot, SIGNAL(selectionChangedByUser()), this, SLOT(selectionChangedByUser()));
//connect(customPlot->yAxis2, SIGNAL(rangeChanged(QCPRange)), customPlot->yAxis, SLOT(setRange(QCPRange)));
//左侧右侧坐标轴设置可见状态
if (type == QCPAxis::atLeft) {
customPlot->yAxis->setVisible(true);
customPlot->yAxis2->setVisible(false);

View File

@ -0,0 +1,18 @@
#include "frmmultiplot.h"
#include "ui_frmmultiplot.h"
frmMultiPlot::frmMultiPlot(QWidget *parent) : QWidget(parent), ui(new Ui::frmMultiPlot)
{
ui->setupUi(this);
this->initForm();
}
frmMultiPlot::~frmMultiPlot()
{
delete ui;
}
void frmMultiPlot::initForm()
{
}

View File

@ -0,0 +1,26 @@
#ifndef FRMMULTIPLOT_H
#define FRMMULTIPLOT_H
#include <QWidget>
namespace Ui {
class frmMultiPlot;
}
class frmMultiPlot : public QWidget
{
Q_OBJECT
public:
explicit frmMultiPlot(QWidget *parent = 0);
~frmMultiPlot();
private:
Ui::frmMultiPlot *ui;
private slots:
//初始化界面数据
void initForm();
};
#endif // FRMMULTIPLOT_H

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>frmMultiPlot</class>
<widget class="QWidget" name="frmMultiPlot">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCustomPlot" name="customPlot" native="true"/>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QCustomPlot</class>
<extends>QWidget</extends>
<header location="global">qcustomplot.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>