Qt QPalette与QPainter区别:
QPalette
调色板: palette 铺平整个背景 (小于窗体有多个图片)
png 如果有图层,背景为黑色,可图层覆盖
QPainter
绘制QPainter 窗体 显示一个
QPainter默认只能在paintEvent里面调用 否则:QPainter::begin: Paint device returned engine == 0, type: 1
W3Cschool:qt参考
https://www.w3cschool.cn/learnroadqt/
QCustomPlot:2D绘图和数据可视化
https://www.qcustomplot.com/index.php/download