Unsolved QT Pixel data over hovermouse
-
Hello, Newbie question here,
I have a Qlabel which I set my Pixmap in a video form. Those who know my project, I have timers to get every frame.Now I want to get the RGB pixel data and show it on the status bar when I hover my mouse over an image.
I have looked through the documentation but I am not sure how to implement it? any youtube video or reference examples will be great.
https://doc.qt.io/qt-5/qimage.html#pixel
In addition I want to get the X and Y positions to show on the status bar too
-
Enable mouseTracking() on the QLabel and overwrite QWidget::mouseMoveEvent() to get the current mouse position.