tags:

views:

35

answers:

1

Hi,

I need to draw line continuously on the screen, output should be as it is in the video. Please check this link: http://www.youtube.com/watch?v=sYNIm210mJY.

Please suggest me which is the best method to implement it.

+2  A: 

Please check the scribble example (located in Qt examples/widgets/scribble/) provided by Qt.

You'll find everything you need to get what you want !

Jérôme
The line should be drawn Programmatically. there is no mouse down and other mouse events..
saravanan
That example code is still a good resource. Most of it applies to your objective. Just replace the mouse driven code with a timer event that generates new random coordinates.
Arnold Spence