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. [SOLVED]how to wait on multiple wait conditions/event
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]how to wait on multiple wait conditions/event

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.0k 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    I wanted to have something similar to windows win32 api WaitForMultipleObjects call in qt. So that my calling thread can wait on mulitple events at a same time. We have QWaitCondition which can only wait for single event.

    Please guide how we can wait on multiple events

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aashish.lg
      wrote on last edited by
      #2

      As per my knowledge there is no direct API available by qt to deal with such kind of scenario. How I mitigate this problem is by taking help from localserver, localclient support of qt.

      What I did is that I created one local server in my app, and the place from where I wanted to raise multiple event , there I just created a localsocket. Now I can transfer one byte of data every time when I wanted to raise an event , and this 1 byte of dtaa value will differ based on my requirement(signal type/event type).

      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