Hello everyone,

I'm having some trouble with QPainter and scaling. My goal is to implement a simple graphing tool, so I subclassed QWidget and paintEvent(). I want to draw a 20x20 traditional coordinate plane, with (0,0) in the center. So far, I've been able to do so with translate(width()/2, height()/2) and scale(-width()/20, -height()/20), but when I try to use drawFont(), the text is huge and upside down. I would like to have drawFont(QPoint(...), ...) to draw text on logical coordinates. Should I use a separate QPainter...??
Browsing the forums, I have also tried inverting the matrix before drawing text, but it didn't work. I'm pretty lost here. Does anyone have any ideas? Thanks!