Hi, I managed to do this. Just add a snippet if someone needs it.
QTextImageFormat m_ReferenceImageFormat; m_ReferenceImageFormat.setWidth(525); m_ReferenceImageFormat.setHeight(450); m_ReferenceImageFormat.setName(imageFileName); m_pReportCursor->insertImage(m_ReferenceImageFormat,QTextFrameFormat::FloatRight); QTextTableFormat m_TableFormat; m_TableFormat.setBorderStyle(QTextFrameFormat::BorderStyle_Solid); m_TableFormat.setAlignment(Qt::AlignTop); m_TableFormat.setWidth(400); m_pReportCursor->insertTable(5,2,m_TableFormat);
Just make sure the image and the table do not overlap. Adjust the width and height accordingly. It should work fine. That's all.
source share