Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
unter linux mit ANSI c++.
leider es muss systemunabhängig sein
#include <Qt/qapplication.h>
#include <Qt/qdesktopwidget.h>
#include <Qt/qpixmap.h>
int main(int argc, char** argv){
QApplication a(argc,argv);
QDesktopWidget* desktop = QApplication::desktop();
QWidget* w = desktop->screen(0);
QPixmap snapshot = QPixmap::grabWindow(w->winId(), 0, 0, -1, -1);
snapshot.save("screenshot.png", "PNG", 20);
}
netrobot hat gesagt.:qdesktopwidget ist unter QT 2.3 nicht verfügbar