Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 1.32 KB

CppQGraphicsScene.md

File metadata and controls

73 lines (45 loc) · 1.32 KB

 

 

 

 

 

 

QGraphicsScene is a non-visual Qt class for a two-dimensional game sprites environment.

 

The graphic items ('sprites') have QGraphicsItem as their shared base class and Qt supplies multiple derived classes. See QGraphicsItem for an incomplete list of derived classes of QGraphicsItem.

 

Events are added using QGraphicsSceneEvent. See QGraphicsSceneEvent for an incomplete list of derived classes of QGraphicsSceneEvent.

 

 

 

 

 

Examples

 

  • QGraphicsScene example 1: create a QGraphicsScene with a text
  • QGraphicsScene example 2: save a QGraphicsScene to file without a timer, which fails
  • QGraphicsScene example 3: shows that a QGraphicsScene can be freely copied
  • Qt example 9: custom sprites over custom background: let custom sprites move over custom background (screenshot)