QT - Bug with window painting (Bug #540)
Description
I'm not sure if this is a specific bug to QT window.
When zooming in on an image, the grid is aligned correctly but the image drawn seems offset and incorrectly positioned.
In the attached image I have drawn a green rectangle on an image.
Partial Code:
[[CvScalar]] green = CV_RGB(0,255,0); Rect roi(5, 150, 470, 110) rectangle(inframe, roi, green, 1, 8, 0);
While the grid is reporting the correct rgb values, the pixel positions of the image seem wrong.
Associated revisions
Merge pull request #540 from hgaspar:244
History
Updated by anonymous - over 14 years ago
Hello,
indeed I also noticed an offset with the grid for some specific zoom/panning value. In my opinion, this is due to floating errors.
I do not know how to fix it for now. (but that is a small bug)
Thanks for the report,
Yannick
Updated by Ilya Lysenkov over 13 years ago
Thank you for the ticket.
I've tried to reproduce this situation with the trunk version of OpenCV. Under Ubuntu 9.10 with Qt 4.5.3 I was able to get only very small mismatch (about 1 pixel wide) between an image and the grid. Under Windows XP with Qt 4.7.3 all works perfectly. So I think this difference is insignificant and we can close this ticket now. Reopen it if you still can get big mismatches as you have attached.
- Status changed from Open to Done
- (deleted custom field) set to wontfix
Updated by Andrey Kamaev over 12 years ago
- Assignee deleted (
Yannick Verdie) - Category changed from highgui-images to highgui-gui