Unsolved How class.ui is shown, when class::show() function is called?
-
When a ui_class.h is included in class.cpp and we do setupUi(this), and we call class::show() function , how class.ui becomes visible? Please elaborate. How the instance of class defined in ui_class.h is passed to class?
-
You can actually step into
setupUi(this)
in debug mode and see exaclty every operation that is executed -
@VRonin
I think main class inherits the UI class. This is the code snippet from ui_busmain.h file:
namespace Ui {
class BusMain: public Ui_BusMain {};
} // namespace Ui -
uic will generate all the code for
Ui_BusMain
you can step into that class with your debugger no problem -
@VRonin Has ui_busmain.h class done forward declaration of BusMain class?
-
@Dilip122 Why don't you just check the content of ui_busmain.h to see whether it did?
-
@jsulm I have seen it, as I have posted the code snippet. Fact is, it is taking time for me to understand and connect the whole picture.