void grabFullScreen(int x,int y,int w,int h)
{
QScreen *screen = QGuiApplication::primaryScreen();
QString filePathName = "full-";
filePathName += QDateTime::currentDateTime().toString("yyyy-MM-dd hh-mm-ss-zzz");
filePathName += ".png";
//grabWindow 不支持ios
if (!screen->grabWindow(0,x,y,w,h).save(filePathName, "PNG"))
{
qDebug() << "save full screen failed" << endl;
}
}