I'm trying to move the line legend to a new location and then use the grab() routine to save an image to disk. My saved image has the legend in the previous location because of a delay in rendering. Calling processEvents() is not helping me in this case. Any advice?