How class.ui is shown, when class::show() function is called?
-
wrote on 5 Jul 2017, 10:02 last edited by
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?
-
wrote on 5 Jul 2017, 10:05 last edited by
You can actually step into
setupUi(this)
in debug mode and see exaclty every operation that is executed -
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 Uiwrote on 5 Jul 2017, 12:13 last edited byuic will generate all the code for
Ui_BusMain
you can step into that class with your debugger no problem -
uic will generate all the code for
Ui_BusMain
you can step into that class with your debugger no problem -
@Dilip122 Why don't you just check the content of ui_busmain.h to see whether it did?
1/7