Translations:Development/Tutorials/Physical Simulation/76/en: Difference between revisions
(Importing a new version from external source) |
(No difference)
|
Latest revision as of 17:43, 19 July 2019
The radius defines the radius of the ball, and paintEvent and nextAnimationFrame allow for drawing of the next time frame. The paintEvent, which does the drawing, is called whenever the update() method is called. The nextAnimationFrame only calls all the update methods. (The update method is inherited from QWidget).