qgraphicsview
QGraphicsView not repainting on scroll event
QT 4.7 I have a QGraphicsView / QGraphicsScene. The scene has a custom QGrap开发者_StackOverflow社区hicsItem the whole scene is not displayed at one time, so it has a viewport.[详细]
2023-03-08 05:17 分类:问答How to add a QPixmap to QGraphicsView that is static?
hope someone of you can help me. I have a QGraphicsView, that is displaying a jpeg. The jpeg is much bigger than the QGraphicsView, so you can drag the jpeg (with the mouse). Over that jpeg I want to[详细]
2023-03-06 20:35 分类:问答QGraphicsItem drawing problem
I am working on a small Tower Defense game in order to learn Qt. I am using a QGraphicsScene to hold all the object of the game. To make them move, I am not using the Animation framework but I\'m call[详细]
2023-03-06 15:53 分类:问答Where should I be catching touch events for painting on a QGraphicsScene?
I want to reimplement the Qt fingerpaint example using my QGraphicsScene rather than a QWidget.However I cannot find an example of this so am unsure if I should capture the e开发者_如何学JAVAvents at[详细]
2023-03-06 03:27 分类:问答Qt add item in the center of the scene/ view
Greetings, I\'m trying to add a QGraphicsItem exactly in the center of the current screen. My QGraphicsScene is very large (10k X 10K), so the QGraphicsView cannot show it entirely, there are scroll[详细]
2023-03-04 18:55 分类:问答Events in QGraphicsView
I\'m having trouble getting events in QGraphicsView working. I\'ve subclassed QGraphicsView and tried to overload the mousePressEvent and wheelEvent. B开发者_StackOverflowut neither mousePressEvent no[详细]
2023-03-04 18:36 分类:问答Tiling with QGraphicsScene and QGraphicsView
I\'m creating a image visualizer that open large images(2gb+) in Qt. I\'m doing this by breaking the large image into several tiles of 512X512. I then load a QGraphicsScene of the original image size[详细]
2023-03-03 22:48 分类:问答Forcing QGraphicsItem To Stay Put [duplicate]
This question already has an answer here: Draw an item in a static location relative to the QGraphicsView[详细]
2023-03-02 00:40 分类:问答QGraphicsScene, QGraphicsView and QVBoxLayout() problem
Greetings everyone, Every time I run it seems Qt Creator just stop working, when I commented out the line //mainWindow = new MainWindow(); But if the line is not commented out, MainWindow will keep a[详细]
2023-02-23 03:52 分类:问答Qt : Efficiently handle QGraphicsItems that have "lots of pixmaps"? (RTS)
I\'m currently building up a small Real Time Strategy 2D engine. And I wonder how to handle the many everchanging sprites that will eventually cluter my screen.[详细]
2023-02-22 13:39 分类:问答