022-Third generation software development-QCustomPlot core migration

Third generation software development-QCustomPlot core migration Article directory Third generation software development-QCustomPlot core migration Project Introduction Let’s talk about GitHub Copilot first. QCustomPlot core migration QQuickPaintedItem XXX_QCustomChart Keywords: Qt、 Qml、 QCustomPlot、 GitHub Copilo、 Keyword 5 Project introduction Welcome to our QML & C++ project! This project combines the power of QML (Qt Meta-Object Language) and […]

Continued qcustomplot advanced axis application adds graphics section

1. How to manage axisRect 2. How to manage graph 3. Get graphics setting data The code is as follows: #ifndef MPLOT_H #define MPLOT_H #include “qcustomplot.h” #include “datdefine.h” class QCPMarginGroup; class QCPGraph; class QCPGraphData; class MPlot : public QCustomPlot { Q_OBJECT public: explicit MPlot(QWidget *parent = nullptr); ~MPlot(); /** * @brief setMInteractionType sets the user-graph […]

QCustomPlot single and multiple coordinate system display

Table of Contents 1 renderings 2 Function description 3 key codes 1 Realize the addition, deletion and dynamic update of multiple coordinate systems 2 Coordinate system X-axis synchronization 3 Display cursor in multiple coordinate systems 4 Add curve function 5 Create a single X-axis and multiple Y-axis coordinate system 1 Rendering 2 Function Description 0 […]

qt uses QCustomplot to draw cpu and memory usage graphs

1. Introduction to QCustomPlot QCustomPlot is an open source Qt C++ charting library for visualizing data. The library provides many types of customizable charts, including scatter plots, line plots, histograms, and contour plots. It also supports custom drawing, allowing you to create elements of any shape and size and make them interact with other elements. […]

Qt developed using QCustomPlot

1. Getting Started 1. Download the source file http://www.qcustomplot.com/; 2. Place .cpp and .h in the project directory, and add cpp and h to the project; 3. In .pro: QT + = printsupport; 4. Add a Widget in the ui, right-click and raise to, enter: QCustomPlot, change the object name to customPlot; 5. Add code: […]

Qt-QCustomplot development history (5)

Exception capture and logging Article directory Exception capture and logging foreword 1. The Qt program crashes and exits abnormally 2. Exception capture in Qt try-catch 3. Logging Summarize Foreword Any software and programs are inseparable from the handling of the exception mechanism. If the program does not handle the exception, it will cause the program […]

Qt-QCustomplot development history (4)

Article directory 1. Add QCustomPlot curve 1. Curve addition 2. Curve style 3. Data point shape 4. Delete Curve 2. Selection of Curves 1. Method trigger 2. Curve style decorator QCPSelectionDecorator Summarize 1. Add QCustomPlot curve We all know that QCustomPlot is a chart drawing tool, so how does he draw a curve? Before drawing […]

Qt-QCustomplot development history (3)

Series article directory Article directory Series Article Directory foreword 1. What is a cursor? Second, the implementation of the cursor in QCustomPlot. 1. QCPItemStraightLine 3. The mouse event of the cursor. 1. Mouse click event 2. Mouse move event 3. Mouse release event 4. Application Scenarios of Cursors 1. Curve average calculation 2. Calculate the […]

Qt-QCustomplot development history (1)

Xiaobai enters QT QCustomplot project development This year I am developing a small project to image some file data. Because I want to make an .exe program, I decided to use Qt software to complete it with the suggestion of the senior. Because I just graduated and have no development experience, so the development of […]

[QCustomPlot] Modify source code for performance improvement (version V2.x.x)

Description QCustomPlot is an open source project, and the source code is very standardized. It is not particularly difficult to understand its visualization ideas. In this essay, I summarize the commonly used source code modification techniques. Each technique below is independent and will not cause any conflicts. The version number of QCustomPlot used in the […]