这样真的可以作
#include "serverapp.h"
//#include <unistd.h>
#include <qtimer.h>
ServerApplication::ServerApplication( int& argc, char **argv, Type t )
: QPEApplication( argc, argv, t )
{
timer = new QTimer( this );
connect( timer, SIGNAL(timeout()), this, SLOT(timeout()) );
timer->start( 500 ,true);
//timer->singleShot(500,this,SLOT(timeout()));
}
ServerApplication::~ServerApplication()
{
delete timer;
}
void ServerApplication::timeout()
{
system("/usr/bin/killall qpe qss quicklauncher");
system("/bin/qt4");
}