qgraphicsview
Tracking mouse move in QGraphicsScene class
I subclassed QGraphicsScene and added method mouseMoveEvent to handle mouse move event. I created a ruler on top of GraphicsView and have the ruler 开发者_运维知识库tracking mouse movement. In the QGr[详细]
2023-04-13 07:13 分类:问答QGraphicsPolygonItem drawing a open(not closed) polygon
I am using a QGraphicsPolygonItem and I have noticed that it always connects the end-point with the开发者_StackOverflow start-point.[详细]
2023-04-12 01:07 分类:问答How can I optimize the performance of a QGraphicsView-based app?
I have an app which is based on the Qt Graphics View framework. It\'s a jigsaw puzzle game which basically cuts a pixmap into smaller pixmaps (puzzle pieces) and displays them as QGraphicsItems in a Q[详细]
2023-04-11 23:46 分类:问答Transformation matrix for viewing a 2D drawing
I am refactoring a graphic program that shows a drawing. The program uses its own transformation and the code is quite complicated. I\'d like to refact the code with a transformation matrix instead.[详细]
2023-04-11 12:12 分类:问答How to do lower() and raise() for QGraphicsItem in Qt?
I wanted to changed z-or开发者_JAVA百科der of graphicsitems in my graphicsscene. I have used QGraphicsWebView as graphicsitem.[详细]
2023-04-10 11:47 分类:问答Qt: Using QTransform object for rotate differs from setting setRotation() in QGraphicsItem
While setting a QGraphicsItem rotation, I get different results upon the transformation origin point while using setRotation() and using:[详细]
2023-04-09 10:03 分类:问答Qt QGraphicsView use topleft as scale origin
How would I take the topleft corner as seen through the QGraphicsView and keep it the topleft while scaling?[详细]
2023-04-08 16:40 分类:问答QGraphicsView make scene scale to full width
I subclassed QGraphicsView and show the widget in my layout. Within the view I naturally have QGraphicsScene.[详细]
2023-04-07 11:02 分类:问答Unable to fully remove border of PyQt QGraphicsView
I have tried calling self.setStyleSheet(\"background: transparent; border: transparent;\") on a QGraphicsView, but it still leaves a 1 pixel border on the top edge. I have also tried replacing border:[详细]
2023-04-03 15:26 分类:问答Set QGraphicsTextItem origin in PyQt
If I want to place one letter (a QGraphicsTextItem) in a QGraphicsView, is there any way I can set the text to display in the middle of the coordinates I specify? If I use QGraphicsTextItem.setPos(x,y[详细]
2023-04-03 15:09 分类:问答