qgraphicsview

PyQt5 QGraphicsView drawing resolution

PyQt5 QGraphicsView drawing resolution Question: I’m new to Qt, I am trying to make a paint application using QGraphicsScene and QGraphicsView. The only way to draw i found out is to add circles and lines to QGraphicsScene on mouseMoveEvent. It works fine, but is there a way to draw like in FabricJS(when added items has …

Total answers: 1

Create a QGraphicsItem at the mouse double-click position

Create a QGraphicsItem at the mouse double-click position Question: I’m writing a program that should create a QGraphicsItem when a double-click happens (inside the scene area), and also that item must be created at double-click position. I’ve already written some code, but it doesn’t work properly. When I double-click on the scene, an item gets …

Total answers: 1

How to enable Pan and Zoom in a QGraphicsView

How to enable Pan and Zoom in a QGraphicsView Question: I am using python and Qt Designer to implement loading tiff images and to enable Pan and Zoom on some mouse event (wheel – zoom, press wheel – pan). I was looking into some options and classes that can work with images etc, and so …

Total answers: 3