You can add an icon to your app by saving an image file in your project folder.
You can obtain this image from this location on the Qt website:
You can also use any other appropriately sized image file as an icon. We suggest the Qt logo image only for simplicity.