Important: Please read the 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.


  • 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