Perform the following steps to understand how different operations can be applied on the List Widget item; how items can be added, edited, and deleted from the List Widget item; and how the entire List Widget item can be cleared:
- Open Qt Designer, create a new application based on the Dialog without Buttons template, and drag and drop a Label, Line Edit, four Push Button, and List Widget widgets onto the form.
- Set the text property of the Label widget to Enter an item.
- Set the text property of the four Push Button widgets to Add, Edit, Delete, and Delete All.
- Set the objectName property of the four Push Button widgets to psuhButtonAdd, pushButtonEdit, pushButtonDelete, and pushButtonDeleteAll.
- Save the application with ...