Running a python file from a qml button
Unsolved
General and Desktop
-
wrote on 12 Sept 2018, 09:18 last edited by
I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
Thanks in advance -
I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
Thanks in advancewrote on 12 Sept 2018, 09:29 last edited by@Momoo
In some shape or form, you will need to make your button's click action execute code which calls http://doc.qt.io/qt-5/qprocess.html functions, e.g.QProcess::execute()
. -
I am new in dealing with Qt and i would like to run a python file by clicking a qml button so anybody know how can i do it?
Thanks in advancewrote on 12 Sept 2018, 23:30 last edited by@Momoo
Do you want to run a python script with an embedded interpreter in your process? Or just run a python script as an external process?
1/3