Qt mutually exclusive checkboxes

I want to make a group of mutually exclusive checkboxes in Qt (no Qt Designer or any of that fancy stuff). With three checkboxes I can do something like this in the action function: void mainWindow::…