Hi every body ,I am having some doubts regarding QT

Q. If i create two objects of QApplication what will happen? Why shouldn't i use two?

Q.In Gui application I created on mainwindow and excuted in main.cpp .Then which one is parent I mean QApplication or Mainwindow.

So please help me.

regards,
sudheer.