qgraphicsview
intercept mouse events when creating a custom QGraphicsItem
I am using a standard QGraphicsView and QGraphicsScene, but I have subclassed a QGraphicsPixmapItem to my own ImagePixmapItem for the purposes of being able to use the mouse events on the ImagePixmapI[详细]
2023-02-05 20:04 分类:问答How to improve QGraphicsView performance in a 2D static scene with many items? (no way to solve it?)
If understood correctly, QGraphicsView is supposed to handle million items efficiently. In my application, I only have some few thousand and the performance is already very bad. When the View is sho[详细]
2023-02-05 18:07 分类:问答Clipping child QGraphicsItems
I have a QGraphicsItem that contains several other QGraphicsItems. How can I ensure that those children items are drawn and clipped against parent item\'s rect when moving t开发者_如何学Pythonhem?Us[详细]
2023-02-05 11:38 分类:问答Best way to create a long line (or cross line) cursor in Qt GraphicsView
The easy way to create the long cross line cursor (as long as viewport) is create a cross line graphicsItem, when mouse moved, set the item\'s pos property.[详细]
2023-02-04 03:27 分类:问答QGraphicsView: Disable automatic scrolling
I want to have a QGraphicsView that never scrolls automatically. Similar: Basically, my question is identical to http://developer.qt.nokia.com/forums/viewthread/2220 , but that thread didn\'t receiv[详细]
2023-02-04 00:19 分类:问答Synchronize QGraphicView elements
I have two QGraphicView objects (based on the same derived class). Th开发者_如何学Pythoney contain different scenes, but a few (sometimes many) items are the same. Such items have common coordinates.[详细]
2023-01-31 10:17 分类:问答Using QGraphicsView to display a local map
I\'m trying to use QGraphicsView in order to display a map image and draw some items on top of it. The map boundaries are in a Cartesian coordinate system, for example NE(-500,200) to SW(600,-350). I[详细]
2023-01-28 22:37 分类:问答Removing Qpixmap from QGraphicsScene
I enconutered a problem, when dealing with QGraphicsScene and QPixmap. I am sequentially displaying frames, captured by the camera. QTimer object is calling updateSingleView() function every 100ms. T[详细]
2023-01-26 10:44 分类:问答Resize image to fit window in Qt
I am using Qt to construct an application. My MainWindow con开发者_Go百科sists of an image of a map which I would like to be resized to the fit the window. This means when the window gets smaller the[详细]
2023-01-25 20:58 分类:问答Qt QGraphicsView one background image on center
My QGraphicsView item is a lot bigger than its background image, but I would like that background image to be drawn only once. Now the whole thing is filled with that background image as many times as[详细]
2023-01-24 02:17 分类:问答