The QT_BEGIN_NAMESPACE macro, which is used if you compiled Qt inside a user namespace .
As for the 2 classes, I think you answered yourself. You can use Ui_XXX or Ui::XXX . I always prefer the Ui:: method, but to each my own.
So, I believe that I have no real answer regarding the rationale, other than letting the programmer choose.
source share