Executing external C programme in QT
-
Hello,
I am creating a simple widget application with a button. my intent is to execute a c code which is in separate file (simple.c) on the button click . Kindly help. -
Hello,
I am creating a simple widget application with a button. my intent is to execute a c code which is in separate file (simple.c) on the button click . Kindly help.@qtwithanzo said in Executing external C programme in QT:
Not sure if this is doable or not
It is. See https://doc.qt.io/qt-5/qprocess.html
-
Hello,
I am creating a simple widget application with a button. my intent is to execute a c code which is in separate file (simple.c) on the button click . Kindly help.@qtwithanzo
Like @jsulm says if you mean you compile thatsimple.c
into some runnable external program.But if by "separate file (simple.c)" you simply mean the code you want executed happens to be in a separate C file, but nothing to do with a separate program/executable, then you need to integrate
simple.c
into your Qt source project.