@veskuh 
I couldn't find how to do this in Qt5. QQuickItem doesn't have a paint method. And the closest way I could find to do this is by taking a screenshot of full window with imageObj->window()->grabWindow() and crop thumbnail out of it. But I am not sure if it's the best way to do this. Your suggestions are welcome.