Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to pick the pixel color of bmp file using a mouse cursor's position?
romeo.rbw last edited by
Is there any function in Qt to pick up the pixel color of our mouse cross cursor position? The image is from bmp file that was called by Qt.
Thank you for any suggestion.
tucnak last edited by
If I were you I would use qt event system. Basically, you need to use event filter in parent widget or reimplement pixmap. Then, when you have relative x and y of click it's not an issue to find QColor on it's pixel