Solved Invert colors of B/W image
I am using stylesheet for the image (black/white image):
Is it possible to invert color of image attached to QLable in stylesheet (or any other methods ) ?
johngod last edited by
I never tryed anything like that, but a quick look at the docs shows http://doc.qt.io/qt-5/qimage.html#invertPixels maybe this can help ?
To add to @johngod why use a style sheet to put an image in a QLabel ?
Do you mean that pixmap is better for image ?
The QLabel support setting the image directly.
Even its called setPixmap it does take any image supported by Qt.
You can even browse the resource and browse to it , directly in Designer.