No need to do this but if these were in a QGroupBox you could just hide/show the group box -- would save some duplication.