Add fucntionality to immediately resize the qopenglpainter upon creation