QT making serial debugging assistant ---- (white papers)

First, the figure shows the finished product

  Introduction: zigbee experiment result, making a relatively simple version of the host computer, receives from a wireless sensor zigbee acquired temperature and humidity, illumination and other data.

And the real-time data is depicted as part of a dynamic fold line chart.

  

  

Second, the main function introduction

  QT comes primarily serialport charts and drawing module, the module is not installed, when the QT QT charts check window when mounted

  

Remember when using the insert Charts QT_CHARTS_USE_NAMESPACE otherwise unusable Qcharts modules

1) mainly on two points: a coexistence, such as charts and buttons textEdie

  

 

Code:

    

2) dynamic update polyline

  I set up three designated by replace (); replace the old points, for updates,, x constantly adding new POint (x, y), y is the received data. Character to digital, QByteArray there is a function, BTE. ToInt () ; method to achieve, but I did not use

    

 

 

: Detailed engineering can go to the following Web site to download

 Cloud code: https://gitee.com/goodlucky2019/QT

Github:https://github.com/2019LuckyLiu/QT

 

 
 

 

Guess you like

Origin www.cnblogs.com/spring-jie/p/10943516.html