Hi forum,

I have created a small application the below code is generated automatically.

Code:
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { }
Code:
MainWindow::MainWindow(QWidget *parent) { QMainWindow = parent; ui = new Ui::MainWindow; }
Is both the code lines are same…