Qt Insert two different QGraphicsWidgets in the same QGraphicsScene, setZValue is invalid

  c++, qt

Calling collidingItems when two QGraphicsWidgets are visible overlapping, but returns null

icon= new Icon(central_icon);
scene.addItem(icon);
icon->setZValue(-1);

Source: Windows Questions C++

LEAVE A COMMENT