Run process that does not block GUI
-
Hi guys, I'm new here.
I am creating network monitoring application and need to run PING in threads many times for watching each separate address. I have "this code":http://www.techques.com/question/1-4629185/Launch-and-write-to-terminal-in-Qt for running system PING in process, but this blocks my GUI. How do I make it run trully paralel? I will need tens of them running simultaneously.I run it from Mainwindow after connecting right signals and slots.
Thanks in advance. -
You'll need one thread per ping process you want to run. There are several good pages on how to use QThread: Threads, Events and QObjects and how to really truly use QThreads...