This example loads an image from a file called "icon.png" and adds it to a new QIcon object. The resulting icon can then be used in a Qt application. Example 2:c++ QPixmap img1("./icon1.png"); // Load first image QPixmap img2("./icon2.png"); // Load second image QIcon icon; icon.addPixmap(img1); // Add first image to the QIcon icon.addPixmap(img2); // Add second image to the QIcon ``` This example loads two images from files called "icon1.png" and "icon2.png" and adds them both to a new QIcon object. This can be useful for creating alternate or hover states for toolbars or other UI elements. These examples use the Qt core library, which is included with the Qt framework. No additional libraries or packages are required.