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. Getting keyboard events while in a drag and drop state
Forum Updated to NodeBB v4.3 + New Features

Getting keyboard events while in a drag and drop state

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 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.
  • G Offline
    G Offline
    gerrysweeney
    wrote on 8 Jul 2012, 16:00 last edited by
    #1

    Hi, Does anyone have any idea how to receive keyboard events in the target widget of am in-progress drag and drop operation. As far as I can tell neither the source or target widgets are receiving keyboard events during the drag operation. However, pressing the escape key terminates the drag operation so the keyboard events are definitely being handles somewhere.

    I am new to Qt so if you do answer please don't assume I am an expert L)

    Thanks

    Gerry

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on 14 Aug 2012, 12:21 last edited by
      #2

      Are you on Windows ?
      Check out "QDrag::exec()":http://doc.qt.nokia.com/4.7-snapshot/qdrag.html#exec
      there is a word about drag operations blocking the event loop...

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gerrysweeney
        wrote on 14 Aug 2012, 13:04 last edited by
        #3

        No, I am using a Mac/OSX and I was ideally looking for a way to do this so it worked on all supported desktop platforms. It would seem a simple requirement but having spent some time looking through the library code I think its probably not easily doable.

        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