Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run process that does not block GUI
QtWS25 Last Chance

Run process that does not block GUI

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 757 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtcoder
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by JohanSolo
      #2

      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...

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved