(C++) QGraphicsView
August 7, 2019 · View on GitHub
(C++)
QGraphicsView
QGraphicsView is a Qt class to visualize a QGraphicsScene on screen.
The graphical items ('sprites') are added to the QGraphicsScene and are of type QGraphicsItem (see QGraphicsItem for a list of derived classes).
The layouts of the graphical items are of type QGraphicsLayout (see QGraphicsLayout for a list of derived classes).
- Qt example 1: moving a sprite over a background in 2D
- Qt example 2: moving many sprites over a background in 2D
- Qt example 3: a changing background in 2D
- Qt example 4: moving many sprites over a changing background in 2D
- Qt example 5: moving many changing sprites over a changing background in 2D
- Qt example 6: moving customly-drawn and partially transparent sprites over a changing background in 2D
- Qt example 7: let customly-drawn and partially transparent sprites move and collide over a changing background in 2D
- Qt example 8: simple 2D SIR simulation
- Qt example 9: custom sprites over custom background
- Qt example 18: stretchDraw and rotate an image
- Qt example 19: GUI around image rotation
- Qt example 26: create a text positioning widget
- Qt example 27: create a simple gravity widget
- Qt example 28: bouncing rectangles widget
- Qt example 29: bouncing balls widget
- Qt example 31: moveable thin lines
- Qt example 32: moveable and selectable thin lines
- Qt example 33: moveable and selectable arrows
- Qt example 34: moveable, selectable and editable arrows
- Qt example 35: arrows with an angle
- Qt example 36: arrows with multiple midpoints
- Qt example 37: rounded rectangle item
- Moving line example
- Qwt example 2: QwtPlot as QGraphicsItem
- QGraphicsItemGroup example 1: basic
- QGraphicsObject example 1: basic
- QGraphicsObject example 2: flashing
- QGraphicsObject example 3: flashing only
- QGraphicsPathItem example 1: basic
- QGraphicsPathItem example 2: Bezier quadratic arrows
- QGraphicsPathItem example 3: Bezier quadratic lines again
- QGraphicsPathItem example 4: Bezier quadratic lines with arrow heads
- QGraphicsPathItem example 5: Bezier quadratic lines with arrow heads again
- QGraphicsPixmapItem example 1: basic
- QGraphicsPixmapItem example 2: clickable pixmap
- QGraphicsPixmapItem example 3: clickable and selectable pixmap
- QGraphicsPixmapItem example 4: pixmap that changes cursor
- QGraphicsPixmapItem example 5: respond to cursor moving over pixmap
- QGraphicsPixmapItem example 6: let the view respond to cursor moving over pixmap
- QGraphicsPixmapItem example 7: respond to cursor moving over pixmap while holding the cursor still
- QGraphicsProxyWidget example 1
- QGraphicsProxyWidget example 2
- QGraphicsProxyWidget example 3
- QGraphicsProxyWidget example 4
- QGraphicsProxyWidget example 5
- QGraphicsProxyWidget example 6
- QGraphicsRectItem example 1: basic
- QGraphicsRectItem example 2: coordinat display
- QGraphicsRectItem example 3: coordinat display on a linear gradient
- QGraphicsSimpleTextItem example 1: Hello World
- QGraphicsSimpleTextItem example 2: coordinat display
- QGraphicsSimpleTextItem example 3: use tab to change focus
- QGraphicsSimpleTextItem example 4: use arrows to change focus
- QGraphicsSimpleTextItem example 5: keyboard-friendly view
- QGraphicsSimpleTextItem example 6: remote texting