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. Attach several worker objects to the same secondary thread ?
Forum Updated to NodeBB v4.3 + New Features

Attach several worker objects to the same secondary thread ?

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

    Hi,
    Can I attach several worker objects to the same secondary thread thanks to moveToThread() ?

    kshegunovK 1 Reply Last reply
    0
    • S stephane78

      Hi,
      Can I attach several worker objects to the same secondary thread thanks to moveToThread() ?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      You can, and I'd argue you should for the sake of separation of responsibilities. Most examples feature a single worker object, but this is neither a requirement nor a guideline for more complex programs.

      Read and abide by the Qt Code of Conduct

      S 1 Reply Last reply
      3
      • kshegunovK kshegunov

        You can, and I'd argue you should for the sake of separation of responsibilities. Most examples feature a single worker object, but this is neither a requirement nor a guideline for more complex programs.

        S Offline
        S Offline
        stephane78
        wrote on last edited by
        #3

        @kshegunov thank you I will do it then!!!!!

        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