Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Retrieving the current mouse button state
berzerker last edited by
I am trying to grab the mouse button state upon receiving QWidget::leaveEvent() . So I am using QApplication::mouseButtons() & Qt::LeftButton which doesn't work because it grabs the last state of the button registered by event (QEvent::MouseButtonPress and QEvent::MouseButtonRelease). So it doesn't really give me the current state of the mouse button, is there another function to retrieve the current state of the mouse button?
I also searched a bit for this and I found somebody else reporting this issue as bug; It is somewhat related.