Drawing QPixmap Rects Over QWidget with QPainter?

It sounds like you might want use QGraphicsPixmapItem instances drawn on a QGraphicsScene with a QGraphicsView.

It sounds like you might want use QGraphicsPixmapItem instances drawn on a QGraphicsScene with a QGraphicsView. See Qt Graphics View Framework: Graphics View provides a surface for managing and interacting with a large number of custom-made 2D graphical items, and a view widget for visualizing the items, with support for zooming and rotation. The framework includes an event propagation architecture that allows precise double-precision interaction capabilities for the items on the scene.

Items can handle key events, mouse press, move, release and double click events, and they can also track mouse movement. Graphics View uses a BSP (Binary Space Partitioning) tree to provide very fast item discovery, and as a result of this, it can visualize large scenes in real-time, even with millions of items.

But I don't need support for zooming and rotation for individual Item. Nither these Items are unique. They are all similer Rectangles.

Same in size and same in color Information too. – Neel Basu Apr 19 at 20:33 Any painting surface you use is going to come with a lot of stuff you might not use. The graphics framework does let you turn off some of these things so you don't pay for what you don't need.

If it's not fast enough, you may want to use OpenGL (doc.trolltech. Com/latest/qtopengl. Html).

But the graphics framework will be a lot simpler. – Dave Mateer Apr 19 at 20:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions