CheckMenuItem.setActive

void setActive(bool isActive)

Sets the active state of the menu item’s check box.

Parameters

isActiveboolean value indicating whether the check box is active.