示例#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
Skore::Skore(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Skore)
{
    ui->setupUi(this);
    model = new QSqlQueryModel;
    ui->skoreView->horizontalHeader()->setStretchLastSection(true);
    connect(this,SIGNAL(showed()),this,SLOT(inicializujSe()));
    ui->skoreView->setModel(model);
    inicializujSe();
}
示例#3
0
void Skore::showEvent(QShowEvent *event){
    emit showed();
}