int _inc;
run()
{
connect(this, SIGNAL(sig1()), parentWidget, SLOT(onSig1()));
connect(parentWidget, SIGNAL(sig2()), this, SLOT(onSIg2()));
_inc = 0;
QTimer::singleShot(0, this, SLOT(func1()));
exec();
}
void func1()
{
if (_inc % 5 == 0)
{
emit sig1();
}
_inc++;
QTimer::singleShot(0, this, SLOT(func1()));
}
void onSig2()
{
// 输出 "111111";
}