Qt中QPainter类的问题
我要实现的目的是在已有图片上绘制文字
QImage *image =new QImage(":/images/yesterday.JPG");
QPainter *painter(&image);
先定义一个QImage对象image,然后用图片初始化image
接下来定义一个QPainter对象
但是出现错误“cannot convert ‘QImage**’to‘QPainter’in initialization”
我应该怎么设置这个QPainter实现的是对image的操作