Retrieving the current mouse button state
-
Hi,
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.
https://bugreports.qt-project.org/browse/QTBUG-16635Thanks
Joe