PDA

View Full Version : Can't print QImage



taner
18th June 2010, 15:08
Hi,

I have qtextedit with some text and QImages in it when I pass it to printer with Qprinter only text print out, but i cant print images, what is wrong with this.

QTextCursor cursor = ui.textEdit->textCursor();
QImage image = pdfPage->renderToImage(resX, resY);
cursor.insertImage( image, "image" );

thanks.

taner
21st June 2010, 13:25
any ideas...