You shouldn't change the angle like that. The paint() routine should always paint the item the same way, regardless of its actual position or rotation on the scene. If you want to rotate the line, use rotate() on the item, but still draw the item as if it was in its original direction (i.e. horizontal).
Bookmarks