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. Correct Architecture for Qt Application
Forum Updated to NodeBB v4.3 + New Features

Correct Architecture for Qt Application

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 759 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.
  • K Offline
    K Offline
    Kira
    wrote on 23 Mar 2018, 06:26 last edited by
    #1

    Guys I am developing an application in which interfaces with the camera using opencv.
    Also working on algorithms related to camera which i have developed in python.
    I have to use the algorithms in qt application and I am restricted so cannot use pyQt.
    I just want to know the correct approach which should be followed which do not my hamper my QT application. Some of the approach which comes to me is:

    Approach 1:
    Writing the python alog in c++.
    Challenges faced:
    Python have lot of support library which i may not get for c++

    Approach 2:
    Set a mode of communication between two application and operate in parallel mode.
    Challenges faced:
    Both the application will interface camera managing them will be difficult
    And what approach should be followed to manage the application.

    Guys just want to know proper methodology which should be apply which do not hamper my application and its performance.

    J 1 Reply Last reply 23 Mar 2018, 07:01
    0
    • K Kira
      23 Mar 2018, 06:26

      Guys I am developing an application in which interfaces with the camera using opencv.
      Also working on algorithms related to camera which i have developed in python.
      I have to use the algorithms in qt application and I am restricted so cannot use pyQt.
      I just want to know the correct approach which should be followed which do not my hamper my QT application. Some of the approach which comes to me is:

      Approach 1:
      Writing the python alog in c++.
      Challenges faced:
      Python have lot of support library which i may not get for c++

      Approach 2:
      Set a mode of communication between two application and operate in parallel mode.
      Challenges faced:
      Both the application will interface camera managing them will be difficult
      And what approach should be followed to manage the application.

      Guys just want to know proper methodology which should be apply which do not hamper my application and its performance.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 23 Mar 2018, 07:01 last edited by
      #2

      @Kira I would try to port the algorithms to C++.
      Using second approach would have performance impacts as you would need to communicate between two processes which isn't fast.

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

      K 1 Reply Last reply 23 Mar 2018, 07:56
      1
      • J jsulm
        23 Mar 2018, 07:01

        @Kira I would try to port the algorithms to C++.
        Using second approach would have performance impacts as you would need to communicate between two processes which isn't fast.

        K Offline
        K Offline
        Kira
        wrote on 23 Mar 2018, 07:56 last edited by
        #3

        @jsulm : Thanks for the reply.
        Ok the first approach seem good. One more thing if i have to go through the approach two.
        How can the communication take place . For ex: If i want to receive a frame generated by python program into qt.
        Is there any standard defined or what approch should be followed.

        J 1 Reply Last reply 23 Mar 2018, 09:10
        0
        • K Kira
          23 Mar 2018, 07:56

          @jsulm : Thanks for the reply.
          Ok the first approach seem good. One more thing if i have to go through the approach two.
          How can the communication take place . For ex: If i want to receive a frame generated by python program into qt.
          Is there any standard defined or what approch should be followed.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 23 Mar 2018, 09:10 last edited by
          #4

          @Kira There are many different IPC approaches:

          • Shared memory
          • Sockets
          • D-Bus
          • Networking

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

          1 Reply Last reply
          1

          1/4

          23 Mar 2018, 06:26

          • Login

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