Unsolved Executing external C programme in QT
qtwithanzo last edited by qtwithanzo
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.
jsulm Lifetime Qt Champion last edited by
@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
JonB last edited by JonB
Like @jsulm says if you mean you compile that
simple.cinto 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.cinto your Qt source project.