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. IPC: Events between processes?

IPC: Events between processes?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.5k 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.
  • S Offline
    S Offline
    stvokr
    wrote on last edited by
    #1

    Hi all,

    what is the best way to send events between processes with Qt?
    I am writing data to a shared memory randomly. But instead of frequently reading out the shared memory I want to get notified when new data is available.
    D-bus could be a solution, but I think it is not available on windows.
    And I don't want to use Windows events because it should also work on Linux.
    Are there any ipc functions like system wide event between processes in Qt?

    regards
    Oliver

    jsulmJ 1 Reply Last reply
    0
    • S stvokr

      Hi all,

      what is the best way to send events between processes with Qt?
      I am writing data to a shared memory randomly. But instead of frequently reading out the shared memory I want to get notified when new data is available.
      D-bus could be a solution, but I think it is not available on windows.
      And I don't want to use Windows events because it should also work on Linux.
      Are there any ipc functions like system wide event between processes in Qt?

      regards
      Oliver

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

      @stvokr You could start here: http://doc.qt.io/qt-5/ipc.html

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

      1 Reply Last reply
      1
      • S Offline
        S Offline
        stvokr
        wrote on last edited by
        #3

        I have started there but there nothing reliable for me.
        As I mentioned, D-bus is Linux only, Window events is Windows only. QSystemSemaphore manages resources but does not notify. Perhaps QUdpSocket as a broadcast could be a solution.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          D-Bus is available on all three major desktops except it's not installed by default in Linux nor Windows.

          What kind of process do you have in mind ?

          QLocalSocket/Server is the combo that comes to mind.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - 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