Hello I`m trying to separate programm logic from the GUI, I want to have multiwindowed application with logi placed in my class not MainWindow like it is in most example cases. And I want to start my windows, give them a pointers to Data, they would fill the data, close and next window would be run. What to do in such situation try to override the qapplication(If yes where should i put my logic in which QApplication method) or it can be done by "just like that"
Qt Code:
  1. QApplication a(argc,argv);
  2. MainWindow *w = new MainWindow();
  3. w->show();
  4. a->exec();
  5. //Here to place the loop of comunication beetwen this and windows
  6. //Main loop of gui communication with logic
  7. //Start windows, close windows, switch results, make actions
  8. //MAIN LOOP
  9. return 0;
To copy to clipboard, switch view to plain text mode 
if this loop is posiblle to create pls tell my how. Should i make some signals to comunicate with my window or in other way.I achiewed that signals are protected by default so is it possible or there is a better way to sepate the logic from window pls help, give me some clues, or examples.