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 Use C driver code in QT5.7 with D-Bus IPC Protocol ?
Forum Updated to NodeBB v4.3 + New Features

How to Use C driver code in QT5.7 with D-Bus IPC Protocol ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 571 Views 2 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.
  • V Offline
    V Offline
    vivekyuvan
    wrote on 29 Oct 2018, 11:11 last edited by vivekyuvan
    #1

    Re: How to use C code in qt?

    Dear Friends

    I am confused to link C driver code and QT GUI application code.

    What I, need is I want to display some raw data in QT5 application GUI that raw data comes from C driver code in ubuntu 16.04 LTS

    For Example

    My C Driver Source code continuously sends the RAW data 500 samples in a sec. I want to display it to QT mainwindow is that possible? serial UART protocol is used in my C Driver code baud rate is 9000 bps

    I have read above the previous post that states that use D-bus and IPC protocol to link another service or application in QT.

    But I am intermediate QT software developer so some help me to link
    C Driver code to QT GUI Application, Give me a code snippet or suggestion to achieve my work

    Thanks
    vivek yuvan

    J 1 Reply Last reply 29 Oct 2018, 11:36
    0
    • V vivekyuvan
      29 Oct 2018, 11:11

      Re: How to use C code in qt?

      Dear Friends

      I am confused to link C driver code and QT GUI application code.

      What I, need is I want to display some raw data in QT5 application GUI that raw data comes from C driver code in ubuntu 16.04 LTS

      For Example

      My C Driver Source code continuously sends the RAW data 500 samples in a sec. I want to display it to QT mainwindow is that possible? serial UART protocol is used in my C Driver code baud rate is 9000 bps

      I have read above the previous post that states that use D-bus and IPC protocol to link another service or application in QT.

      But I am intermediate QT software developer so some help me to link
      C Driver code to QT GUI Application, Give me a code snippet or suggestion to achieve my work

      Thanks
      vivek yuvan

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Oct 2018, 11:36 last edited by
      #2

      @vivekyuvan Take a look at http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 29 Oct 2018, 16:23 last edited by mrjj
        #3

        Hi
        The " C driver code" you talk about.
        Is that a library or just .c and .h files ?
        You can easy add .c files to a Qt project but im not sure
        if the code you talk about is actually a device driver and would not be able to function
        linked into a Qt program.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vivekyuvan
          wrote on 30 Oct 2018, 04:33 last edited by vivekyuvan
          #4

          Hi@mrjj Is that a library or just .c and .h files? it's not just .c and .h files,

          I like to implement frontend alone in qt and backend is in C. The backend code was written in C its best to keep the code in C because its a driver code. so now my concern is can I communicate my driver code with frontend QT GUI?

          I just read out QDBUS Interprocess communication protocol it suits my application logic?

          Please give me any suggestion and show me the code snippet that will helpful

          Thanks
          vivek

          J 1 Reply Last reply 30 Oct 2018, 05:51
          0
          • V vivekyuvan
            30 Oct 2018, 04:33

            Hi@mrjj Is that a library or just .c and .h files? it's not just .c and .h files,

            I like to implement frontend alone in qt and backend is in C. The backend code was written in C its best to keep the code in C because its a driver code. so now my concern is can I communicate my driver code with frontend QT GUI?

            I just read out QDBUS Interprocess communication protocol it suits my application logic?

            Please give me any suggestion and show me the code snippet that will helpful

            Thanks
            vivek

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 30 Oct 2018, 05:51 last edited by
            #5

            @vivekyuvan Please do not post same question several times: https://forum.qt.io/topic/7872/how-to-use-c-code-in-qt
            " it's not just .c and .h files" - what else?

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

            1 Reply Last reply
            0

            1/5

            29 Oct 2018, 11:11

            • Login

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