QMatrix
leftmatrix
;
leftmatrix.rotate(rotate.toInt());
QPrinter p(QPrinter::PrinterResolution);
p.setPrinterName(listitem[i].printerName());
QPainter painter(&p);
QPixmap image= QPixmap(printName).transformed(leftmatrix,Qt::SmoothTransformation);