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