I am trying to add a label to the main window using Qt. Here is a piece of the code:
int main(int argc, char *argv[]) { QApplication app(argc, argv); QWi
Add the label to a layout widget and set the window layout to that layout.
Design note: its better to create your own MainWindow class, inheriting from QMainWindow for instance, and design it from the inside.
QMainWindow
or even better, use QtCreator.
QtCreator