qtsmartgraphics
2.1.1
A simple library that improves the user experience when displaying images by Qt's QLabel and QGraphicsView.
|
The tutorial shows how to use the widget.
This is the sample of the QSmartGraphicsView. The left view receives the image loaded from the system, and the right view receives the selected sub-image of the left view.
The left top corner of any view is the menu bar. The eye is normal view mode, and the arrow is the region selection mode.
The menu bar can be hidden by pressing the key 'H' on your keyboard,
or right click on the view to hide it.
In region selection mode, you have to press Ctrl to drag the image around. Feel free to select any region then right click
and press "Copy Selected Region" to get the sub-image.
The following code reads the image from the system and puts into the qsmartgraphicsview
qsmartgraphicsview
must be initialize before use.
The "Copy Selected Region" function triggers a signal sendSelectedRegion(QImage)
when clicked. You can connect it to a slot to receive the image.