I'm starting to play with Qt Creator having spent much time with Visual Studio.

My questions is simply: if I create a widget on a QMainApplication window can I access it directly in the code file by its name or must I use centralWidget->findChild() ?

It's a simple question but it's rather annoying me since I can see my MainWindow class inherits from Ui_MainWindow which has the widgets i've added to my window as public, yet I can't get to them directly.

Thanks