Skip to content

Kexin-Wei/QTCpp_call_PythonScript_DisplayImage_Demo

Repository files navigation

QTCppCallPython_Demo

This c++ project calls a simple python script by pressing a button in the ui window, then displays the image (using threading) while printing the running time in second in the log panel.

Note: to make it run without change the path in mainwindow.cpp, build folder need to be set under the root, parallel to QtCppCallPython

Platform

  • linux
  • Qt Creator
  • Qt 5.12.3

Feature Requirements

  1. UI: a button, image display, and log panel.
  2. C++ link to a button, which call a python script.
  3. Python Script.

How the display is connected from Qt is not restricted here.

Here is a demo:

demo.mp4

Todos

  • UI
    • basic window
    • a button, log panel, image display
    • layout
  • connect button to c++, which call a python script.
    • panel display
    • Python Script
  • record demonstration video
  • change absolute patht to relative path

About

Demo - call Python script in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors