Hm... still failed..

I declared it like this:

QImage buffer(200,200, 1); //right?