Is this intentional?
-
so I made a new qt desktop project and noticed that the qt editor generated this in the loadscreen.h file

Why are we definingUi::LoadScreenand::LoadScreen? Doesn't that defeat the purpose of the namespace? Is it autogenerating a class that I don't have the defination of? -
Hi and welcome to devnet,
That's because you asked for a new Designer based widget. This means that you also have a
loadscreen.uifile that will be processed by theuicapplication. It will generate C++ code with a class stored in the Ui namespace based on the content of the.uifile.For more information see:
-
so I made a new qt desktop project and noticed that the qt editor generated this in the loadscreen.h file

Why are we definingUi::LoadScreenand::LoadScreen? Doesn't that defeat the purpose of the namespace? Is it autogenerating a class that I don't have the defination of?@digital_light said in Is this intentional?:
Why are we defining
Ui::LoadScreenand::LoadScreen? Doesn't that defeat the purpose of the namespace?They are 2 separate classes.
::LoadScreenis your "actual" class where you write your codeUi::LoadScreenis a fully auto-generated class that's embedded inside::LoadScreen.