ToggleAction.setActive

void setActive(bool isActive)

Sets the checked state on the toggle action.

Parameters

isActivewhether the action should be checked or not