先来看qt文档的解释
上面看出
共同点是:当点击按钮时,状态信号都会被发送。
不同点:
clicked: this signal is not emitted if you call setDown,setChecked() or toggle().
toggled:this may be the result of a user action, click() slot activation ,or because setChecked() was called.
显而易见,toggled要比clicked更容易触发。clicked()有的toggled有,而toggled有的,clicked()却不一定有!
另外
toggled和trigger区别
toggle在实物上有开关的意思,这跟我们物理实验用的开关是一回事,两头表示两个状态:合上和断开