Cancel-button is in a dialog and connects to QDialog::reject().
So if I click Cancel-button, the dialog will emit signal-rejected().
Then I connect another checkable-button with the QDialog::rejected(). Once checkable-button receives the rejected(), it becomes un-checkable.
The supposed behavior is the checkable-button becomes un-checkable and the Dialog disappears. However, the real situation is that Dialog doesn't disappear.
Could you tell me what's wrong and how to fix this problem? Thank you very much....