In the process of creating a user interface code from UI file Qt creates 2 classes with just the same definition.
class UI_CustomeUIClassFromUIFile
{
//code generated from UI file thru UIC
}
namespace ui
{
class CustomeUIClassFromUIFile public : UI_CustomeUIClassFromUIFile{};
}using namespace ui;
What is the reason for having 2 classes with just one inside UI namespace and other without namspace? Is it to support compiler that has no support for namespace, there is also a macro some thing like QTNAMESPACE.