The button with focus looks wrong on macOS Big Sur for QMessageBox dialogs. For example:
QMessageBox::warning( this, "App", "text", QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Ok );
Gives the attached image. Note that the 'OK' button looks wrong.
The focus button seems to be fine in user created dialogs.