1. My QT gui program works fine but I do have ui_myprog.h anywhere. Qt 5.1.1 and Visaul studio 2017 C++…?
Am I missing something?

2. I have come across on the net. Non Modal dizajn:

MyownProg:: MyOwnProg(QWidget* parent):
QMainWindow(parent), ui(new Ui::MyownProg), _dialog(nulptr)
{

where:

…
_dialog = new Dialog(this)
-dialog->show();

….

The question is what is _dialog?
Why they did in this way? Maybe in myownprog.h to include Dialog* _dialog? Or that is same?