normally when creating an instance of the UI
QMainWindow *w = new QMainWindow();
Ui::MainWindow *ui = new Ui::MainWindow(w);

but is is possible to write it as such?

QMainWindow *w = new QMainWindow();
MainWindow *ui = new MainWindow(w);

is there some method we could use to remove the namespace qualifier?


Also is Ui::MainWindow and Ui_MainWindow equivalent?
I've read that its equivalent but can't seem to know why.
Could someone please let me know.

Thank you