View Full Version : Qpainter warning

16th April 2008, 08:27
Hello friends,
In my gui, when I change the position of a slider, a shape which is drawn by QPainter is rotated. There is no problem with the application except that it gives a warning everytime I use the slider. It says:

QPainter::restore: Unbalanced save/restore

Any idea, what causes this? and how to remove this warning? Thanks...

16th April 2008, 08:43
Can u show the code ??
May be u are using save, restore functions in a a wrong way