Quote Originally Posted by Nishant View Post
1.Why is the indentation so made(like QApplication.....etc)
I don't understand the question. If you are asking why we indent code then we do it because it is easier to read it when it is indented than when it is not. Indentation is not obligatory.

2.the following code does not show any output:
Your button object goes out of scope as soon as the constructor returns.
3.any way to host qt applications online?
If you mean something like an applet - you can write Qt apps in Java (with the help of Jambi). If you're asking about means of placing an app somewhere it can be downloaded and executed locally, just provide a link to the application on your webpage.