You have to change the bounding rect. Otherwise you'll get artifacts in an area that you paint and that is not inside your bounding rect.
Qt Code:
return r.translated(-r.width()*0.5, -r.height()*.0.5); };To copy to clipboard, switch view to plain text mode
Bookmarks