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
Post a Comment