I would like to draw an Image inside a QText Document.
I used the code:
where m_cursor is a QTextCursor on QTextDocument.Code:
painter.drawLine(line1); painter.drawLine(line2); m_cursor.insertImage(geometry); m_document->print(&printer);
Hower, when I print the document on a pdf printer, I get an obscure image (no lines at all!).
Any idea?
