Creating our Qt Widgets application

Once you have created the project, open up mainwindow.ui and drag the three different item widgets to your main window. After that, select the main window and click the Layout Vertically button located at the top:

Then, double-click on the List Widget and a new window will pop out. Here, you can add a few dummy items to the List Widget by clicking the + icon, or remove them by selecting an item from the list and clicking the - icon. Click the OK button to apply the final result to the widget:

You can do the ...

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.