I\'m trying to understand why scene.addItem(rect) causes a segmentation fault, but reversing the order of QGraphicsLayoutItem and QGraphicsRe
scene.addItem(rect)
QGraphicsLayoutItem
QGraphicsRe