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();
}