Design hint needed for a Qt newbie (or an Qt-example reference)
-
I am a Qt newbie and I want to develop an application which simulates a 2-dimensional chaotic system.
The user should get an impression of the system dynamic. And so I want to calculate and display the points one after the other.
The user should see a growing trajectory of points on screen.I need a little hint how to display a just calculated point without the need to update the whole widget-window.
The previous painted points should not be deleted.I think this should be a trivial task, but nevertheless I need some initial help. Thanks.
-
Look into QPainter https://doc.qt.io/qt-5/qpainter.html or QImage. You can keep adding new points while keeping the old ones visible using a saved image cache.
-
Check out the colliding mice example which uses Qt's Graphics View Framework.