qt - How to capture a specific portion of a screen in QML? -


how capture specific portion of screen in qml ? having grid view grid item contains 2 images , text. have capture grid item when click on it. have tried

qpixmap p = qpixmap::grabwidget(widget); qwidget p = qwidget::grab(widget); 

but not working. there method ?

it doesn't work because not widget, not unless use qquickwidget.

you should use grabtoimage() instead.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -