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