Hi, it should be a simple error but I'm not able to find it.
Basically, I have a QGraphicsScene with a QGraphicsView with some QGraphicsPixmap items and QGraphicsTextitems, but I want to display some QGraphicsRectItems and they are not shown. They exist where they are supposed to be and they work fine, they react and they do what they should, but they are invisible.
I'm lost... I don't know what can be happening.
class CFinishRec : public QGraphicsRectItem
CFinishRec(bool bIsGood, QPointF ptPosition, qreal rW, qreal rH);
CFinishRec::CFinishRec(bool bIsGood, QPointF ptPosition, qreal rW, qreal rH)
m_bIsGood = bIsGood;
QRectF recAux = rect();
setVisible(false); //later on is set as visible, as shown in the next piece of code.
brushAux.setColor(QColor::fromRgb(0, 255, 0));
brushAux.setColor(QColor::fromRgb(255, 0, 0));
//In another class.
CFinishRec* pRecBottomGood = new CFinishRec(true, QPointF(50, 190), 50, 10);