rangde1pratu
20th March 2012, 09:32
I have been exporting huge graphicscene containing more than 10k shapes and texts on different shapes in it... I could export using following code..yet quality is so poor that text on images in not clear.. could you please help me on this?:
QImage image(7680, 4320, QImage::Format_ARGB32);
QPainter p(&image);
p.setBackground(Qt::white);
p.setRenderHints(QPainter::HighQualityAntialiasing , true);
p.setRenderHints(QPainter::TextAntialiasing, true);
this->render(&p);
p.end();
image.save(sFilePath, 0 ,100);
QImage image(7680, 4320, QImage::Format_ARGB32);
QPainter p(&image);
p.setBackground(Qt::white);
p.setRenderHints(QPainter::HighQualityAntialiasing , true);
p.setRenderHints(QPainter::TextAntialiasing, true);
this->render(&p);
p.end();
image.save(sFilePath, 0 ,100);