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 can I integrate an existing .exe file (a compiled project) into another Qt project?
Forum Updated to NodeBB v4.3 + New Features

How can I integrate an existing .exe file (a compiled project) into another Qt project?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 159 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.
  • T Offline
    T Offline
    TejasM
    wrote on last edited by
    #1

    I have a compiled .exe file from a previous Qt project, and now I want to integrate or run this .exe from within another Qt application. What is the best way to do this in Qt?

    Should I use QProcess to start the executable? Also, is there a way to send or receive data between the main application and the .exe if needed?

    I’m developing on Windows using Qt 6.x with CMake. Any help or examples would be appreciated.

    jsulmJ 1 Reply Last reply
    0
    • T TejasM

      I have a compiled .exe file from a previous Qt project, and now I want to integrate or run this .exe from within another Qt application. What is the best way to do this in Qt?

      Should I use QProcess to start the executable? Also, is there a way to send or receive data between the main application and the .exe if needed?

      I’m developing on Windows using Qt 6.x with CMake. Any help or examples would be appreciated.

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

      @TejasM said in How can I integrate an existing .exe file (a compiled project) into another Qt project?:

      Should I use QProcess to start the executable?

      Yes, see QProcess documentation for more details.

      "is there a way to send or receive data between the main application and the .exe if needed?" - does this compiled application provide any means of inter-process communication?

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

      1 Reply Last reply
      2
      • T TejasM has marked this topic as solved on

      • Login

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