All widgets derive from the same base class, QWidget, which can be displayed with a call to show()
Therefore, at its most basic level, Qt allows you to create any widget and display it with minimal code, without even having to explicitly declare a main window: -
#include <QApplication>
#include <QLabel>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QLabel *label = new QLabel(&mainWindow);
label->setText("Hello World");
label->show();
return app.exec(); // start the main event loop running
}
Following on from this, each Widget can be provided with a parent widget, allowing the QLabel to be added to MainWindow (or any other widget), as shown by the answer provided by @lpapp