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. slots and signals without ability to modify worker thread?
Forum Updated to NodeBB v4.3 + New Features

slots and signals without ability to modify worker thread?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 290 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.
  • F Offline
    F Offline
    Firedan1176
    wrote on last edited by
    #1

    I'm working with a video codec library that processes a raw video file as a job. Each frame is processed within a thread (that I have no control over as the developer), and therefore I cannot simply display this frame when it is ready on the GUI since it is in another thread. Since I can't modify this thread, how can I update the GUI? Should I instantiate a (third) QThread, to work as an intermediary between the library's thread and main thread, and just pass the frame through? I don't feel like this is the neatest way to do this, but it's all I can think of. Thanks.

    jsulmJ 1 Reply Last reply
    0
    • F Firedan1176

      I'm working with a video codec library that processes a raw video file as a job. Each frame is processed within a thread (that I have no control over as the developer), and therefore I cannot simply display this frame when it is ready on the GUI since it is in another thread. Since I can't modify this thread, how can I update the GUI? Should I instantiate a (third) QThread, to work as an intermediary between the library's thread and main thread, and just pass the frame through? I don't feel like this is the neatest way to do this, but it's all I can think of. Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Firedan1176 said in slots and signals without ability to modify worker thread?:

      Each frame is processed within a thread

      How do these threads provide the result of their processing? How does the API look like?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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