QT5 中用Push Button控件信号一直是false。

Qt用按键的时候需要两种信号,但是发现一直是flase的信号;解决办法:

  1. 在 button 的属性里面选择 checkable
  2. 在代码里面增加 yourButton->setCheckable(true)