Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Retrieving the current mouse button state

Retrieving the current mouse button state

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    berzerker
    wrote on last edited by
    #1

    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-16635

    Thanks
    Joe

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved