Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.12.10, 6.3.1
-
None
-
QT 5.12.10, Mac platform
Description
I use the setPixmap of QLabel to set a QPixmap in QLabel, which shows a picture.
The pixmap is transformd from a QImage and the QImage is from a cv::Mat.
On Mac platform, we find that the color of image on QLabel is more red than original image.
I save the cv::Mat, QImage and QPixmap in the middle, but all of them is exactly the same with the origin.
I suspect this may be caused by pixmap scaled at first, but I try several scaled method but they did not help. I also remove the pixmap scale and resize the image in cv::Mat and it did not help.
The image in QLabel is more red, expecially on human face, like cover a red filter on face on Mac. However, this never happend on Windows. So I am confused.
Our software is for designers, and they are sensitive with color. So I hope to get a solution as soon as possible.
I have attached several diff image, our code, and test app project below.
The images named with "our_app_diff_x.png" are the difference in our app, the images named with "test_app_diff_x.png" are the difference in the test app.
The test app is in the file QLabel_Color_changed.zip, I put these three test image in it.
Moreover, this bug happened in Qt 6.3.1 and 5.12.10.