Ui Namespace
General and Desktop
3
Posts
2
Posters
1.5k
Views
1
Watching
-
Are these two namespaces the same? The Ui namespace in Mainwindow.h and Ui_Mainwindow.h.
If not how does the compiler know that MainWindow in the namespace Ui in MainWindow.h is actually a forward declaration of Ui::MainWindow in Ui_Mainwindow.h
In MainWindow.h
@
namespace Ui {
class MainWindow; //Forward declaration of MainWindow from ui_MainWindow.h
}@In ui_MainWindow.h
@
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
@