qt中clicked(bool checked)和toggled(bool checked)的區別

先來看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 ,
相關文章
相關標籤/搜索