Hello!

I have question about architectures of applications you write.

When I create new Qt application using QtCreator it creates main.cpp, mainwindow.h/cpp and other files. MainWindow object is created in main.cpp. When I write another classes (eg. for db or hardware access) I would like to separate them from MainWindow class (objects of "other" classes are not created in MainWindow). So their instances (I think) should be outside of MainWindow class but I'm not sure main.cpp is good place for this. Simultaneously I would like to send signals between GUI and other objects.

I am curious how you organize your applications. I realize that it depends on purpose of application and its complexity but some diagrams would be very useful.

Thanks.