Then make sure the painter is in unscaled state when you draw the text. Either draw the text before scaling or do something like this:
painter.save(); // save the state of the painter before scaling
painter.scale(...);
painter.drawSomething(...); // draw something as scaled
painter.restore(); // restore the state back to before scaling
painter.drawText(...); // draw text unscaled
QPainter painter(this);
painter.save(); // save the state of the painter before scaling
painter.scale(...);
painter.drawSomething(...); // draw something as scaled
painter.restore(); // restore the state back to before scaling
painter.drawText(...); // draw text unscaled
To copy to clipboard, switch view to plain text mode
PS. Graphics view framework would have QGraphicsItem::ItemIgnoresTransformations...
Bookmarks