qcustomplot在Linux开发板,QCustomplot的使用以及编译动态链接库的过程

本文介绍了如何在Linux开发板上使用QCustomPlot,包括创建QCustomPlot对象,设置数据,调整坐标轴范围,以及自定义刻度。同时,详细阐述了将QCustomPlot编译为arm-linux动态链接库.so的步骤,涉及交叉编译工具链和符号链接的处理。
摘要由CSDN通过智能技术生成

#ifndef _HLM_GRAPH_H_

#define _HLM_GRAPH_H_

#include 

class hlm_temp_Graph : public QWidget

{

public:

explicit hlm_temp_Graph(QWidget *parent = 0);

~hlm_temp_Graph();

bool set_XY_Vector_value(QVector &, QVector &);

private:

QCustomPlot *customplot;

};

#endif // HLM_GRAPH_H#include "hlm_graph.h"

#include 

hlm_temp_Graph::hlm_temp_Graph(QWidget *parent) : QWidget(parent)

{

customplot = new QCustomPlot(this);

this->resize(800, 480);

customplot->resize(350, 130);

customplot->move(440, 310);

}

bool hlm_temp_Graph::set_XY_Vector_value(QVector &X_Vectorcount, QVector &Y_Vectortemp)

{

QVector Y_tempTickVertor(7); //y轴温度大刻度数组

for ( int i = 0; i 

{

Y_tempT

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值