//图片以时间方式命名,图片不会重名 QDateTime now; QString filename = now.currentDateTime().toString("yyMMddhhmmss.jpg");