Results 1 to 2 of 2

Thread: Mouse position while using drag'n'drop.

  1. #1
    Join Date
    Nov 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Mouse position while using drag'n'drop.

    Hello,

    Is there a way to activate the mouse move event (mouseMoveEvent(QMouseEvent *event)).
    While dragging, I need to know the mouse position.

    Merci !

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Mouse position while using drag'n'drop.

    While the drag&drop cursor is over your widget, you'll be receiving drag move events: QWidget::dragMoveEvent().

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2012, 13:04
  2. Replies: 4
    Last Post: 18th April 2012, 18:11
  3. Drag and Drop indicator Position
    By whitefurrows in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2011, 11:35
  4. Drag/Drop on middle mouse button?
    By joeld42 in forum Qt Programming
    Replies: 0
    Last Post: 21st August 2010, 00:20
  5. Replies: 7
    Last Post: 8th September 2006, 16:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.