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
Forum Updated to NodeBB v4.3 + New Features

Run process that does not block GUI

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 762 Views 1 Watching
  • 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 11 Mar 2014, 08:06 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
    • J Offline
      J Offline
      JohanSolo
      wrote on 11 Mar 2014, 08:37 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

      1/2

      11 Mar 2014, 08:06

      • Login

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