Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QScreen grabwindow for Android
Qt 6.11 is out! See what's new in the release blog

QScreen grabwindow for Android

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fubuyuan
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alaa Elrifaie
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved