void finish_work::run(){ for(int i = 15; i > 0; i--) { qDebug() << "Number " << i; emit show_work(i); sleep(1); }}
C++ (Qt)void MainWindow::closeEvent(QCloseEvent *event){ qDebug() << trUtf8(""); //event->ignore(); end.start_END(); [b]end.wait();[/b] //event->accept(); }