Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QScreen grabwindow for Android



  • This code works fine in Windows, but returns a 0x0 pixmap on Android;

    QScreen *p = QGuiApplication::primaryScreen();
    QPixmap pix = p->grabWindow(winId());

    Has anyone made this work on Android.

    Thanks.



  • Same problem here, I want to get the current rotation of screen on android, how to do it using the QScreen class?


Log in to reply