O'Reilly logo

PySide GUI Application Development by Venkateshwaran Loganathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphics and effects

We could create any custom graphics we like by creating a custom widget and by reimplementing its paint event. This approach is very helpful when we are trying to create some small graphics like drawing graphs or for drawing basic shapes. In order to create animations and more complex graphics we will take help from the PySide's graphics view classes:

  • QGraphicsScene: This provides a surface for managing a large number of 2D graphical items
  • QGraphicsItem: This serves as the base class for all graphical items like ellipse, line, and so on in a graphics scene
  • QGraphicsView: This provides a widget for displaying the contents of a graphics scene

The graphic view classes can be used by first creating a scene represented by a QGraphicsScene ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required