
And in the end we update the view menu entries. We also restore the image pixmap to its normal size by adjusting the label’s size to its content. You’ll see a menu expand to the side showing other apps that can open the file. ImageViewer Class Definition ¶Ĭlass ImageViewer : public QMainWindow property is set to false. To adjust settings for a photo, right-click on a picture that you want to open and hover over Open With.

In addition the Help menu provides the users with information about the Image Viewer example in particular, and about Qt in general. Normal Size - Show the image at its original sizeįit to Window - Stretch the image to occupy the entire window Once an image is loaded, the View menu allows the users to: The File menu gives the user the possibility to: With the Image Viewer application, the users can view an image of their choice. You can also use it to rotate images to any possible angle without compromising the image quality. For instance, it lets you easily resize and crop images into the required dimensions. The best part is that FastStone Image Viewer offers amazing photo editing options.
#Best imageviewer how to#
In addition the example shows how to use QPainter to print an image. Due to this, it becomes effortless to use FastStone Image Viewer.

The example demonstrates how QLabel ‘s ability to scale its contents ( scaledContents ), and QScrollArea ‘s ability to automatically resize its contents ( widgetResizable ), can be used to implement zooming and scaling features. If the child widget exceeds the size of the frame, QScrollArea automatically provides scroll bars.

QScrollArea provides a scrolling view around another widget. QLabel is typically used for displaying text, but it can also display an image. The example shows how to combine QLabel and QScrollArea to display an image.
