PDA

View Full Version : why I do NOT have ui_myprog.h?



Pereubu2018
10th July 2018, 15:11
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?

Lesiok
11th July 2018, 06:48
ui_myprog.h is a file auto generated from myprog.ui

Pereubu2018
11th July 2018, 11:41
There is no files with ui_myprogorsuch.h. I am working on Msvc 2017 C++…. That was my question with latest qt...That was my questions..

Lesiok
11th July 2018, 11:56
It looks like there is no plugin integrating MSVC and Qt.
You have in project the file myprog.ui (Qt Designer file). At the stage of build the project, the ui_myprog.h file should be automatically generated.

Pereubu2018
11th July 2018, 14:08
Thanks that was it....