使用lamda表达式的话就不能用SIGNAL函数,不然会报错 connect(timerChart, &QTimer::timeout, this,[&]{timer_count+=0.2;});
SIGNAL函数和SLOT函数要一起用