Qt mousemoveevent + Qt::LeftButton
mouseevent, qgraphicsscene, qt
Solution
Though Spyke's answer is correct, you can just use `buttons()` (docs). `button()` returns the mouse button that caused the event, which is why it returns `Qt::NoButton`; but `buttons()` returns the buttons held down when the event was fired, which is what you're after.
Problem
Quick question, why does: ``` void roiwindow::mouseMoveEvent(QGraphicsSceneMouseEvent *event) { QGraphicsScene::mouseMoveEvent(event); qDebug() << event->button(); } ``` return 0 instead of 1 when I'm holding down the left mouse button while moving the cursor around in a graphicscene. Is there anyway to get this to return 1 so I can tell when a user is dragging the mouse across the graphicscene. Thanks.