qgraphicsscene
How can I layer images in PyQt using QGraphicsScene and QGraphicsView
Let\'s say I have two images, image A and image B. Using QGraphicsScene and QGraphicsView, how can I draw image A to th开发者_JS百科e background, and layer image B on top of image A?[详细]
2023-03-10 13:39 分类:问答QGraphicsView - slow scale performance under Linux
I\'m making a program that will display a few images from a directory beside each other. When I scale the images to fit within the height of the window (ie - QGraphicsPixmapItem->scale(...)), it runs[详细]
2023-03-08 21:48 分类:问答QGraphicsScene::clear() method crashes only in release mode
I inherited my scene from QGraphicsScene. I add many items(QGraphicslineItem, QGraphicsItem, QGraphicsTextItem) on this scene. Whenever i t开发者_StackOverflowry QGraphicsSceneClear method it crashes[详细]
2023-03-08 15:23 分类:问答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 分类:问答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 分类:问答Why am I unable to perform a calculation for the position in a sceneEvent for a QGraphicsObject?
I have implemented QGraphicsObject with QTouchEvents and reimplemented the sceneEvent function. bool LynxItem::sceneEvent(QEvent *event)[详细]
2023-03-05 21:09 分类:问答QImage in a QGraphics scene
I am quite new to Qt. I am having troubles in inserting a QImag开发者_开发知识库e to a scene. Could somebody please tell me how to add a QImage to a QGraphicsScene?For this you would use a QGraphicsPi[详细]
2023-03-04 20:22 分类:问答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 分类:问答Improve performance of "Accelerate your Widgets with OpenGL" Qt Sample?
I have been studying the Qt Quarterly article about QGraphicsScene and OpenGL for the purpose of using it in a project.I have already decided to use Qt, given its all-round excellence, but have gone d[详细]
2023-03-03 04:48 分类:问答How to enable dragging in QGraphicsScene?
I\'m trying to put two pictures in the QGraphicsScene. One is fixed and the other one is movable. But I succ开发者_如何学Pythoneed only in putting those pictures in the QGraphicsScene, I can\'t move t[详细]
2023-01-04 00:39 分类:问答