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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -