int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    Screenshot screenshot;
    screenshot.show();
    return app.exec();
}
Exemple #2
0
 int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);
     Screenshot screenshot;
     screenshot.show();
	screenshot.shootScreen();
	screenshot.saveScreenshot("test.png");
     //return app.exec();
 }