
Originally Posted by
ChrisW67
Since we do not have the original BMP file, your code, or any idea what you are doing in Gimp, it is difficult to say.
Well, actually I didn't post any of this since there is no special thing about what I did. I mean, regarding the image in Gimp, as I sad, it was enough to just open the bitmap and save it again without any real change in the image that the problem would already arise. Regarding the code, once again no special thing here; only load the pixmap with the file path and use QPainter::drawPixmap on it inside a paint event.

Originally Posted by
ChrisW67
If you convert to PNG then you might find the image works better.
Well you're correct about that (I was avoiding PNG conversion because this project is not mine since its birth and it seems a convention that only bitmap images should be used); if I use a PNG image, then the blue effect doesn't appear anymore, but the real effect I want to implement (rounded corners) don't appear
(I mean, I put the rounded corners but the image shown in the app is with squared corners as the original)
So I'll try another way of doing the round corners.
Thanks,
Momergil
EDIT: Btw, isn't there a way to do this rounded corners effect on Qt?
EDIT 2: Well actually there is a small "non-normality" that is actually causing the problem:
#define SET_PIXMAP(_s) QPixmap::fromImage(QPixmap(_s).toImage().convertToFormat(QImage::Format_RGB16))
#define SET_PIXMAP(_s) QPixmap::fromImage(QPixmap(_s).toImage().convertToFormat(QImage::Format_RGB16))
To copy to clipboard, switch view to plain text mode
I use such define where I load the QPixmap in order to force a RGB16 image since the hardware used in this project only supports such RGB configuration. If this is set, the rounded corners don't appear.
Bookmarks