error: '(QDialog::DialogCode)1u' cannot be used as a function怎么解决?

想用QT写一个登陆界面,如图:

图片说明

请问怎么解决?

去掉Accepted的括号,写成QDialog::Accepted。