Questions tagged [qgraphicsellipseitem]

4 questions
2
votes
1 answer

How can I make QGraphicsEllipseitem's border transparent?

I'm trying to develop Reversi using C++ for core and Qt for GUI. But, I'm having some trouble drawing circle with QGraphics. I'm trying to make circle in picture below transparent but border is not getting transparent. Is there any option that to…
1
vote
1 answer

QGraphicsPixmapItem is not being positioned correctly

I need to move a QGraphicsPixmapItem through a circle that it is at the top left corner of the image. That is, when I grab with the mouse the circle, I need the top left corner of the image to follow the circle. I subclassed a QGraphicsEllipseItem…
1
vote
1 answer

How can I subclass QGraphicsRectItem and QGraphicsEllipseItem in one class?

I'm using Pyside2 and have a UI that uses QGraphicsView and a QGraphicsScene. Right now I have two separate classes that subclass QGraphicsEllipseItem and QGraphicsRectItem like this: class MyRectButton(QGraphicsRectItem): def…
-1
votes
1 answer

Problem with QGraphicsPolygonItem and drag their corners with mouse after move

i have been working on a QT application using the QGraphicsPolygonItem. First i created a class called DiagramScene who inherites the QGraphicsScene. First i create the item and put red corners in every point of the Polygon: item = new…