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

How to integrate python with qt c++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 834 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.
  • Ramkumar MohanR Offline
    Ramkumar MohanR Offline
    Ramkumar Mohan
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • Ramkumar MohanR Ramkumar Mohan

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • Ramkumar MohanR Offline
        Ramkumar MohanR Offline
        Ramkumar Mohan
        wrote on last edited by
        #3
        This post is deleted!
        JonBJ jsulmJ 2 Replies Last reply
        0
        • Ramkumar MohanR Ramkumar Mohan

          This post is deleted!

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on 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
          • Ramkumar MohanR Ramkumar Mohan

            This post is deleted!

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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

            • Login

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