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. Python and C++
Forum Updated to NodeBB v4.3 + New Features

Python and C++

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 167 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.
  • A Offline
    A Offline
    Alfie Anil
    wrote on last edited by
    #1

    Hello,
    Would it be possible to use python and c++ together in the same project? Python and C++ would have to communicate, as it c++ would have to be able to 'store' returns from the python.
    Thanks in advance

    JonBJ 1 Reply Last reply
    0
    • A Alfie Anil

      Hello,
      Would it be possible to use python and c++ together in the same project? Python and C++ would have to communicate, as it c++ would have to be able to 'store' returns from the python.
      Thanks in advance

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Alfie-Anil
      Yes, if you wish, you can have either way (C++ calling Python or Python calling C++). IIRC, it's probably easier to have the main program written in C++ which embeds Python than the other way round.

      Python-level reading material:
      https://docs.python.org/3/extending/windows.html
      https://docs.python.org/3/extending/embedding.html

      If plain non-Qt Python is not a good fit, you may want a Qt-aware Python library like PyQt5. I'm not sure, but there may be specific references for that under PyQt5 (or even PySide2; don't forget that choosing PyQt5 changes your licensing requirements).

      1 Reply Last reply
      2

      • Login

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