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. How to handle keyboard and mouse at the same time?
Qt 6.11 is out! See what's new in the release blog

How to handle keyboard and mouse at the same time?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.3k 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.
  • N Offline
    N Offline
    NorskQt
    wrote on last edited by
    #1

    Hi,

    I have a question about handling the keyboard input synchronously with mouse input such as CTRL key + mouse left button pressed.

    I appreciate if you have any reference to Qt-tutorial or Qt-pages or any other link.

    Thanks!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      a mouse event contains this information. See "QWidget::mousePressEvent":http://doc.qt.nokia.com/4.7/qwidget.html#mousePressEvent and "QMouseEvent --> QInputEvent::modifiers":http://doc.qt.nokia.com/4.7/qinputevent.html#modifiers

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NorskQt
        wrote on last edited by
        #3

        Thank you!

        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