but that was used with QPushButton, but in ur code u are using QAbstractButton. So the problem is coming when we use tr.
that is:
addButton(tr("OK"), QMessageBox::Ok);
error is:
'void QMessageBox::addButton(QAbstractButton *,QMessageBox::ButtonRole)' : cannot convert parameter 1 from 'QString' to 'QAbstractButton *'
Bookmarks