示例#1
0
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);
}
示例#2
0
文件: qlabel1.cpp 项目: aidint/PyG
void QLabel1::hide1(){
    hide();
    emit hided(this->name + " " + this->type1);
}