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 integrate python with qt c++?
Forum Update on Monday, May 27th 2025

How to integrate python with qt c++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 810 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.
  • R Offline
    R Offline
    Ramkumar Mohan
    wrote on 27 Jul 2022, 06:05 last edited by
    #1
    This post is deleted!
    J 1 Reply Last reply 27 Jul 2022, 07:46
    0
    • R Ramkumar Mohan
      27 Jul 2022, 06:05

      This post is deleted!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Jul 2022, 07:46 last edited by jsulm
      #2

      @Ramkumar-Mohan Please explain better what exactly you want to do:

      1. Execute Python script from a C++ applications? --> https://docs.python.org/3/extending/embedding.html
      2. Call some C++ libs from Python? --> https://docs.python.org/3/extending/extending.html

      To use Qt in Python: https://www.qt.io/qt-for-python

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

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Ramkumar Mohan
        wrote on 29 Jul 2022, 10:30 last edited by
        #3
        This post is deleted!
        J J 2 Replies Last reply 29 Jul 2022, 10:46
        0
        • R Ramkumar Mohan
          29 Jul 2022, 10:30

          This post is deleted!

          J Offline
          J Offline
          JonB
          wrote on 29 Jul 2022, 10:46 last edited by JonB
          #4

          @Ramkumar-Mohan
          You can't. Creator is a design-time tool, you can't have it executing some scripts. Not to mention, why would you want a Python script executed at design-time?

          @jsulm's references show how you can cross between Python & C++ in your code at runtime.

          1 Reply Last reply
          0
          • R Ramkumar Mohan
            29 Jul 2022, 10:30

            This post is deleted!

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 29 Jul 2022, 11:04 last edited by
            #5

            @Ramkumar-Mohan I already gave you a link explaining how to call Python scripts from C++ (there is no such thing as "QtCreator C++") - did you take time to read it?

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

            1 Reply Last reply
            2

            1/5

            27 Jul 2022, 06:05

            • 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