Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to use QThread for spawning threads?
Forum Updated to NodeBB v4.3 + New Features

How to use QThread for spawning threads?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 604 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.
  • R Offline
    R Offline
    Ronak5
    wrote on last edited by Ronak5
    #1

    Hi,
    I've read the Qt Qthread doc, but it still isn't clear how to use Qthread for my qt app.
    What I need is to create a GUI thread which would be always running and one more thread for usb events update which would run in background and on any interrupt would send some data to my GUI thread. Please help.
    Thank you.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What do you don't understand here: https://doc.qt.io/qt-5/qthread.html#details and for sending data from the thread to the main thread here: https://doc.qt.io/qt-5/qtcore-threads-mandelbrot-example.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3

      • Login

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