The buttons need to be explicitely set as checkable to show the checked state. (Might be a Qt6 thing)
checkable
checked