PDA

View Full Version : GUI Drawing with Thread



Girish1483
12th September 2013, 12:41
Hi,
I divide the screen into four parts and want to draw a four continuous line in sync from application start to till application terminates (i.e infinite) in every 30 ms.
(if draw line reached at screen end wave will start from beginning). so I used Qt concurrent::run() to draw line in QImage and emit signal to main GUI other function for draw pix-map in label and i have one push Button in main GUI whenever i click on push button,wave halt for one sec.
what will be the best way to draw infinite wave without interrupting main GUI events.

Kindly help for the same

wysota
12th September 2013, 13:18
Why do you want to use threads for that?