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. Screen capture when using Wayland

Screen capture when using Wayland

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
waylandscreen capture
2 Posts 2 Posters 681 Views
  • 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.
  • J Offline
    J Offline
    Johan Borkhuis
    wrote on 18 Sept 2023, 15:49 last edited by
    #1

    I am using Wayland on an iMX8 platform, using a compositor based on the minimal-qml compositor from qtwayland.
    Now I am trying to capture the screen (using functions like QScreen::grabWindow). But I am only getting a black screen or an error.
    Also when trying the screenshot demo application I am only getting a black image.
    I have been looking into the Qt Wayland compositor a bit more and there I found the class QWaylandSurfaceGrabber, which seems to be able to do this.
    But there are no examples available for this class. Does anyone have any example code using this class?

    Regards,
    Johan

    1 Reply Last reply
    1
    • D Offline
      D Offline
      drebelpai
      wrote on 12 Dec 2023, 15:59 last edited by
      #2

      Trying to do the same thing over here, @Johan-Borkhuis got any luck?
      Still couldn't find a good example and I don't want to make the Qt app to talk to weston-screenshooter for this

      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