So far, we have only added a menu bar and a toolbar to our window. To add other widgets that might make our application useful, we have to add more members to our header file. In this section, we shall create a simple application that appends personal details to a displayable list.
There will be a form where the details of a number of contacts will be received. This detail will then be added to a list on the window. As more contacts are added, the list will grow. We shall base these on the previous section's code and continue to build on it.
As usual, you create a new folder with the three files, namely, main.cpp, mainwindow.cpp, and mainwindow.h. The main.cpp file will remain as before from the previous sections.