A new version using QDialogButtonBox