The code auto-generated by qt creates 2 classes which are similar. For Example :-
class Ui_MainWindow
{
//...
}
namespace ui
{
class MainWindow : public Ui_MainWindow
{};
}
The class in the Ui name space i.e Ui::MainWIndow and Ui_MainWindow are exactly the same.
Then what is the purpose of creating another class in the Ui namespace when we can directly use Ui_Mainwindow itself and what is the purpose of the Ui Namespace?
↧