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. Communicating with Non Qt Application
Forum Updated to NodeBB v4.3 + New Features

Communicating with Non Qt Application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 961 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.
  • E Offline
    E Offline
    epalmero
    wrote on last edited by
    #1

    Dear All:

    I have been trying to use Qt to develop some GUI for an existing project. This project is done in Labwindows but I would like to use Qt for the new things. I try to create a DLL and use it inside this project to show the GUI but I did not success. I was thinking then to create a separate Qt application and to use the Share Memory from windows. This seem to be not a big problem specially if I use Boots the problem I have now is that I need to inform the Qt application when to look for new data in the share memory. Normally I will think to use the SendMessage from the windows API. That someone has any experience with this. A piece of code will be of real value.

    All the best and thanks for any help
    Ernesto

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tilsitt
      wrote on last edited by
      #2

      Hi,

      I never used shared memory for inter-process communication, but regarding "QSharedMemory":http://qt-project.org/doc/qt-5/qsharedmemory.html documentation, I don't think you can inform one process there is new data to look for. Shared memory is more like an event queue : you're not informed by the event queue, it's up to you to inspect it when you want -- and when you can, i.e. when your process is not busy -- to see if there is something to process. If you're about to use messages, I would say just forget shared memory and use messages to pass your data instead.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        epalmero
        wrote on last edited by
        #3

        The question for me will be if I can use the windows message system from non Qt application to a Qt application? If that is the case then I have all my problems solve.

        Best and thanks
        Ernesto

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

          Hi,

          AFAIK, yes you can. And you have QCoreApplication::winEventFilter to handle them

          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
          0

          • Login

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