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. Update a window by a parallel process
Forum Updated to NodeBB v4.3 + New Features

Update a window by a parallel process

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 400 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.
  • J Offline
    J Offline
    JanLaloux
    wrote on last edited by
    #1

    I have an application where the user can launch a task that runs in the background. After launching the task the user can use the application in a normal way.
    Now I want the background task that runs in a parallel process to show the progress on the user screen such as a text "Processed x/y". The message should be updated continuously not only when the control is handed over by Qt to the main process. Is this possible (on Windows)?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      it should be fine to send a signal from thread to mainwindow.
      You might need to use the QueuedConnection flag when making the connection.

      So you can define your own signal with the needed info and the the slot in mainwindow
      can then update the progress.

      This sample show such custom signal
      http://doc.qt.io/qt-5.5/qtcore-threads-mandelbrot-example.html

      1 Reply Last reply
      1

      • Login

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