Category "qgraphicsscene"

How to implement snap grid with cross cursor in pyqt?

I want to draw a snap grid like the picture as bellow,I can draw the background point, but I don't know how to snap the grid point while mouse moving,Could her

Why QGraphicsGridLayout doesn't handle row and column placement of items placed on a scene?

So far, I have the following code: p1 = QGraphicsWidget(self.scene.addItem(QGraphicsPixmapItem(self.pixmap))) p2 = QGraphicsWidget(self.scene.addItem(QGraphic