Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I found that Dialog automatically displays on center of screen but for MainWindow we have to set it explicitly. Why ?
If you mean QMainWindow then it should center and it does for me. What OS/Qt version are you running?
OS: Ubuntu 14.04 Qt Creator 3.1.1 Based on Qt 5.2.1 (GCC 4.6.1, 64 bit)