p{direction:rtl;text-align:right}. برای پرینت widget :
@
QPainter painter;
painter.begin(&printer);
double xscale = printer.pageRect().width()/double(myWidget->width());
double yscale = printer.pageRect().height()/double(myWidget->height());
double scale = qMin(xscale, yscale);
painter.translate(printer.paperRect().x() + printer.pageRect().width()/2,
printer.paperRect().y() + printer.pageRect().height()/2);
painter.scale(scale, scale);
painter.translate(-width()/2, -height()/2);
myWidget->render(&painter);
@
p{direction:rtl;text-align:right}. "اطلاعات بیشتر":http://doc.qt.nokia.com/4.7-snapshot/printing.html