Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* main.cpp */
- int main(int ac, char **av)
- {
- QApplication a(ac, av);
- test b;
- while (1)
- {
- a.processevents();
- b.manage();
- }
- return a.exec();
- }
- /* test.cpp */
- int test::manage()
- {
- if (somecondition)
- {
- if (!fork) //Son Process not working properly ?
- {
- QApplication a(ac, av);
- toto b;
- while (1)
- {
- a.processevents();
- b.manage();
- }
- return a.exec();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment