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
- linux
- Qt Creator
- Qt 5.12.3
- UI: a button, image display, and log panel.
- C++ link to a button, which call a python script.
- Python Script.
How the display is connected from Qt is not restricted here.
Here is a demo:
demo.mp4
- 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