thk u for your answer.
In my main function,I use

QAppliction a(argc,argv)

not

QCoreApplication a(argc,argv)

but problem still exists.