Got rid of those bugging QPainter errors