This guide uses tspi-sysmonitor (a system information monitoring panel) as the example project throughout. The application uses Qt5 Widgets + Qt5 Network and refreshes CPU load, memory usage, and network status every second.
Source Code
Source Code Download
- Go to the Download Center to download
tspi-sysmonitor.zip. Extract it to get thetspi-sysmonitor/directory.
The storage path in the cloud drive is:
text
LCSC-TaishanPi-3 Dev Board Resources/
├── ...
├── 5. [LCSC-TaishanPi-3] Development Tools/
├── ├── Qt-5.15-Demo-Project-Source/
├── ├── └── tspi-sysmonitor.zip
│ └── ...
└── ...1
2
3
4
5
6
7
2
3
4
5
6
7
After obtaining the source code, choose either Qt-Creator Integration or Command-Line Cross-Compilation to compile. Both approaches use the same toolchain and produce identical build artifacts.
Project Structure
bash
tspi-sysmonitor/
├── CMakeLists.txt
├── main.cpp
├── mainwindow.cpp
├── mainwindow.h
├── networkpage.cpp
├── networkpage.h
├── swipewidget.cpp
├── swipewidget.h
├── sysmonitor.cpp
├── sysmonitor.h
├── touchpage.cpp
├── touchpage.h
└── tspi-sysmonitor.pro1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14