设置背景透明,一定要同时有这两句代码,单独一句不起作用
ui->customplot->setBackground(Qt::transparent); ui->customplot->setStyleSheet("background: transparent;");
QCustomplot
原文:https://www.cnblogs.com/leocc325/p/13194495.html