Re: Simple QtPainter problem
You can draw on widgets only in their paint events.
So, override paintEvent for your widget and do all the drawing in there.
Don't forget to call the base class version if you want the widget to draw it's default contents.
Re: Simple QtPainter problem
Yea I JUST found this too.
They should list that in the QPainter documentation too.
http://doc.trolltech.com/4.3/porting...rawing-widgets
Re: Simple QtPainter problem
Quote:
Originally Posted by
rishid
They should list that in the QPainter documentation too.
It's there, right in the beginning of the detailed description. ;)