PDA

View Full Version : How can I create a process in C++ or Qt?



logancale2015
26th June 2017, 14:42
hello people a need your help, can be with qt or c++, i want to create a process BUT a process that use a function of my program not an external program, something like this .... sorry for the example and forgive my english thanks

void count(){
bbla
bla
bla
}

int main(){
QProcess p = new QProcess(count());
p.start();
}

d_stranz
26th June 2017, 17:06
Google is your friend: Qt multithreading (https://doc.qt.io/qt-5/threads-technologies.html)