Important: Please read the Qt Code of Conduct -

Add python script to QT program

  • I compiled QT 5.11.2 for raspberry pi and run the QT program on it
    Now I want to use Python code in my program, Python code gets input from QT program and after doing something, I need to get Python code output and use QT program
    How can add python script to my QT program?

  • @isan I'd say you have two options:

    1. Embed a Python interpreter into the Qt application, see this post (it's Windows related but you'll get the idea)
    2. Call the Python script as a QProcess

Log in to reply