QPainterPath 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.
-
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.