My app requires me to use multiple mouse and when user moves a parti开发者_运维问答cular mouse then OS should give back the mouse drag/scroll event. I want to implement this using Qt 4.6.
What you could do is
QWidget::setMouseTracking ( true );
that should invoke QWidget::mouseMoveEvent ( QMouseEvent * event ) whenever your mouse moves
then you can handle the event as you want.
If you are looking for general drag event then Qt already handles mouse events QWidget::dragEnterEvent ( QDragEnterEvent * event ) http://doc.qt.nokia.com/latest/qwidget.html#dragEnterEvent
精彩评论