- This project based on Qt.
- This project is a submodule, check
.gitignore
before use it.
It's my first time to write a class and this class inherit from QWidget. It can zoom in and out, drag, crop loaded image in the widget, can also return the point position in widget or image your mouse clicked. But it still has some problems with zoom in and out function, huge memory will be occupied when zoom out image.
这是我第一次写的类,该类继承QWidget,在此基础上改写成了显示图像的ImageWidget,有缩放、拖拽、截取、获取左键点击处的Widget坐标和图像内坐标。缩放功能不是很完善,图像的放大会带来更多的内存占用。
- Add those four files in project, add a Widget and promote to ImageWidget.
- 将四个文件加入工程,并对将Widget提升为ImageWidget即可。
- 2018.06.14
Added setImageWithFilePath().
添加用图像文件路径设置图像的方式。
- Full Change Log