I realise drag&drop actions on QTableView. My reimplemented mouseMoveEvent() looks so:

Qt Code:
  1. void
  2. MyClass::mouseMoveEvent(QMouseMove* event)
  3. {
  4. qDebug() << event->button();
  5. if (event->button() == Qt::LeftButton) {
  6. int distance = (event->pos() - fPressPos).manhattanLength();
  7. if (distance > QApplication::startDragDistance()) {
  8. startDrag();
  9. }
  10. }
  11. QTableView::mouseMoveEvent(event);
  12. }
To copy to clipboard, switch view to plain text mode 

I execute my application and tried to move mouse with pressed left button above my widget. In debug messages I see 0. And function did not enter first condition. So move event called, but QMouseEvent not contains information about buttons pressed. I have not idea why it happening.