qgraphicsscene
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 分类:问答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 QGraphicsSvgItem renders too big (0.5 unit on each side)
If I draw an SVG item at (0, 0) with 64x64, the actual displayed SVG item is from (-0.5, -0.5) with 65x65. I measured this by drawing the boundingbox behind the SVG item. And the SVG item is sticking[详细]
2023-04-07 02:26 分类:问答Should QGraphicsItem::boundingRect() include child bounding rects?
Googling suggests that it should. But the dragdroprobot example implementation (on th开发者_高级运维e parent Robot object) suggests not:[详细]
2023-04-05 23:00 分类:问答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 分类:问答Update QGraphicsScene from another, non-main thread
I\'m pretty new to QT\'s graphic view frame, and I couldn\'t find anything about this in the docs or on Google.[详细]
2023-03-27 10:23 分类:问答How to create a GUI with multiple lines of glyphs/text in parallel where the glyphs have x and y coordinates
I\'m currently creating an application to edit parallel lists of events which happen on a timeframe. In the model/backend there is a list of lists where the sublist has all the items in order.[详细]
2023-03-26 07:01 分类:问答Error by creating a list of QGraphicsItems
I have a QGraphicsScene on which I would like to draw some special curves. For that I made a class in which I define these special curves as a new QGraphicsItem:[详细]
2023-03-24 06:38 分类:问答Qt tracing QGraphicsScene::itemAt() back to data model
I have a list of objects that I use to add objects into a QGraphicsScene: for(int i = 0; i < levelObjects.length(); i++)[详细]
2023-03-20 18:26 分类:问答QGraphics paints custom widget differently in paintEvent than resizeEvent and vice-versa
I have written code for my graph and it works fine, but when I need to resize it, problems start. Resize event doesn\'t fit my QGraphicScene to QGraphic开发者_运维技巧sView, but same code in paint ev[详细]
2023-03-19 04:48 分类:问答