i did it using qt creator

and it is showing the image when i'm using qtextdocument.sethtml()