plot.h

#ifndef PLOT_H
#define PLOT_H
#include<QTimer>
#include <QWidget>

class pathplot : public QWidget
{
  Q_OBJECT
public:
  explicit pathplot(QWidget *parent = nullptr);
  void paintEvent(QPaintEvent *event);

};

#endif // PLOT_H

plot.cpp

# include"circlewidget.h"
#include<QPainter>
#include<QDebug>
#include<math.h> plot::CircleWidget(QWidget *parent):QFrame(parent)
{
m_period = ; //周期
m_grain = ; //粒度
m_radius = ; // 振幅
}
plot::~CircleWidget()
{ }

void pathplot::paintEvent(QPaintEvent *event) {


QPainter painter(this);

QPointF pointf[10];
    pen.setWidth(6);
    painter.setPen(pen); // 设置画笔
    for (int i=0; i<10; ++i)
    {
        pointf[i].setX(2.0+i*10.0);
        pointf[i].setY(130.0);
    }

painter.drawPoints(pointf, 10);

}

最新文章

  1. java之设计模式
  2. 【初探HTML本相】道之真谛不过自然,html标签脱俗还真
  3. [LintCode] Parking Lot 停车场问题
  4. gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org
  5. 【bzoj1066】[SCOI2007]蜥蜴 网络最大流
  6. const和readonly差别
  7. docker-compose.yml 语法说明
  8. Quick Sort In-place Implementation
  9. asp.net用Zxing库实现条形码输出
  10. LSM树存储模型
  11. 使用InternalsVisibleTo给assembly添加“友元assembly”
  12. hibernate 报query result offset is not supported
  13. python基础-----字符编码
  14. APP开发的基本流程
  15. SpringBoot thymeleaf模板页面没提示,SpringBoot thymeleaf模板插件安装
  16. Codeforces 931 C. Laboratory Work
  17. Java POI 3.17写入、导入EXCEL性能测试
  18. Jackson(使用注解)
  19. 【WP8】让TextBox文本支持滑动(Scroll)
  20. 使用 PyQuery

热门文章

  1. 关于 matplotlib
  2. 微信小程序 this.setData() 详解
  3. 华为RH2288 V3服务器进入BIOS并设置iBMC地址
  4. Linux 基础命令4进程
  5. day37 08-Hibernate的反向工程
  6. torch.backends.cudnn.benchmark = true 使用情形
  7. 支付宝 python alipay 集成(转)
  8. 2017年Android SDK下载安装及配置教程(附带原文地址)
  9. SQL优化系列(二)- 优化Top SQL
  10. Swift 之数组与字典