ui文件(ui_myQtChart.h)
采用QTdesigner拖拽一个widget绘图区,并对整个ui进行垂直布局
/********************************************************************************
** Form generated from reading UI file 'my_QtChart.ui'
**
** Created by: Qt User Interface Compiler version 5.15.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_MY_QTCHART_H
#define UI_MY_QTCHART_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_my_QtChart
{
public:
QVBoxLayout *verticalLayout;
QWidget *widget;
void setupUi(QWidget *my_QtChart)
{
if (my_QtChart->objectName().isEmpty())
m