Let's get started with creating our first multimedia program. In this section, we will create an image viewer, which, as its name implies, opens up an image file and displays it on the window:
- Let's open up Qt Creator and create a new Qt Widgets Application project.
- After that, open up mainwindow.ui and add a Label (name it as imageDisplay) to the central widget, which will serve as the canvas for rendering our image. Then, add a layout to the centralWidget by selecting it and pressing Layout Vertically, located on top of the canvas:
- You can remove the tool bar and status bar to give space ...