Qt中QSpinBox valueChanged 信号触发两次
- 如果使用鼠标调整,这个信号则会被触发两次
- 如果使用键盘输入,则会触发一次
connect(ui->spinBox_rows, SIGNAL(valueChanged(int)), this, SLOT(test()));
https://blog.csdn.net/dododododoooo/article/details/122635656?fromshare=blogdetail&sharetype=blogdetail&sharerId=122635656&sharerefer=PC&sharesource=weixin_48473914&sharefrom=from_link