C++ (Qt) bool isEditModeOn = ui.acEditMode->isChecked(); ui.frmEditTools->setVisible(isEditModeOn); ui.frmWorkTools->setVisible(!isEditModeOn);