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. How to signal qt application
Qt 6.11 is out! See what's new in the release blog

How to signal qt application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.8k 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

    Hi ,

    I am launching a Qt GUI Application using QProcess from some other Qt core application.
    How can I signal my Qt GUI application?

    Currently I am using event in windows and signals in Linux to signal Qt GUI , but I wanted to write portable code.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Take a look at "Inter-Process Communication in Qt":http://developer.qt.nokia.com/doc/qt-4.8/ipc.html or "QtSingleApplication":http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsingleapplication, which has a "message passing mechanism":http://qt.gitorious.org/qt-solutions/qt-solutions/blobs/master/qtsingleapplication/src/qtlocalpeer.h too.

      Just follow the ":ipc":http://developer.qt.nokia.com/search/tag/ipc.

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

        Hi ,

        I am currently using QSharedMemory , but this is for data passing , it doesnot have signalling mechanism. , However I tried to use QLocalSocket, and QTcpSocket, it works well in windows but giving me problem in Linux machine.

        My architecture is like this.
        I have one third party linux application , that loads my qt dll. from this Qt dll , I will call my own written Qt GUI application.
        I am running QLocalServer/QTcpServer in my Qt GUI application, and from Qt dll , I wanted to communicate with Qt GUI.

        In Linux I am just able to connect to GUI app's QTcpServer/QLocalServer , but not able to send the data.

        In windows it works well.

        Regards
        Ashish

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

          I checked the return value of write function from dll, it is giving return value correctly.
          Only thing is in my Qt GUI app, I am not getting readyRead() signal.

          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