bool BlWidget::event ( QEvent * event ) { if (event->type() == QEvent::HideToParent) { emit hided(this); } else if (event->type() == QEvent::ShowToParent) { emit showed(this); } // end if return QWidget::event(event); }
void QLabel1::hide1(){ hide(); emit hided(this->name + " " + this->type1); }