QPainterPath to QPixmapItem
I draw a painterpath of ellipse shape. How can I convert it to QPixmapItem?
what about just drawing it a pixmap directly?
int h = ui->label->height();
int w = ui->label->width();
QPixmap pix(w, h);
pix.fill( Qt::white );
// painter path
Then you have pixmap and can make item.
Thank you. That could do the job.