慎用 sleep, 改用timer来实现
#include <qtimer.h>
{
xxxx1 -> setText("111");
QTimer::singleShot(this, 2000, SLOT(func2()));
}
void ClassName::func2()
{
xxxx2-> setText("222");
QTimer::singleShot(this, 2000, SLOT(func3()));
}
void ClassName::func3()
{
xxxx3 -> setText("222");
}