qgraphicsview
Widget background not transparent when using QGraphicsView but transparent when using QGridLayout
When I was using QGridLayout to display my widgets, only the widget was shown and the part of the image that was transparent was not shown. Now I switched to using QGraphicsScene and QGraphicsView, an[详细]
2023-03-31 11:14 分类:问答How to draw in the scene of the QGraphicsView?
I have an application in which the user can draw some points with the mouse and I used QGraphicsView to do that.[详细]
2023-03-25 16:43 分类:问答QT4 QgraphicsView not repainting in a "for cycle" of displaying many pages
I wrote a program to experiment with poppler pdf library. I am able to display pdf pages into a graphicsView with a method:[详细]
2023-03-25 09:07 分类:问答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 分类:问答More efficient central widget in a QMainWindow: QGLWidget VS QGraphicsView
I am using a QMainWindow for my app and want to do some openGL rendering. 2 approaches: 1) set as central widget a QGLWidget and do all the rendering there,[详细]
2023-03-17 00:10 分类:问答Heap/Stack - Scope of variables going into QGraphicsItemGroup
If I have a QGraphicsItem that I want to put in a QGraphicsItemGroup, in a loop..like so: for(int i =0; i < 2; i++)[详细]
2023-03-13 04:30 分类:问答How to make non-smooth / stepwise scolling in a qgraphicsview
I have a scene which has a basically table-like layout. Thus I\'d like it to scroll like a table... one row or column at a time. Specifically, the upper left visible item should have it\'s upper left[详细]
2023-03-12 03:12 分类:问答Can't Get Touch Inputs in QPixMap(image) in QView
I have a QScene object in QWidget and inside QWidget I have QGraphicsView. I convert images to QPixMap give it to QScene as an element and I defined touch events in QGraphicsView class. In QGraphicsVi[详细]
2023-03-11 18:21 分类:问答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 分类:问答