I have the next errors. On the analog clock I have create a new function 'dibuja' that uses the 'thepainter' qpainter object ( in this case I use a previous image)
error: request for member 'translate' in 'painter', which is of non-class type 'QPainter*'
error: request for member 'scale' in 'painter', which is of non-class type 'QPainter*'
error: request for member 'setBrush' in 'painter', which is of non-class type 'QPainter*'
and etc..
Here is a piece of code :
QPainter thepainter(&image);
dibuja( &thepainter, thetime);
void AnalogClock::dibuja(QPainter *painter, QTime time)
My last code worked, I had all the code that now is in 'dibuja' at the paintevent. I have only placed the Qpainter code at a new function.
Why I have theese errors ?
Bookmarks