Hi,
I need advice - I have 2 problems I cannot solve
I'm using QT4.5.1
Firstly the mouseMoveEvent is not fired when drag mode is RubberBandDrag. Is this expected behavior?
Secondly when setSelectionArea is called, the setSelected function of my QGraphicsItem is not called.
Anyone have any ideas what i am doing wrong??
(have I forgotten to set any flags in my scene/graphicsitems?)
Code is below...
Thanks for any advice
Qt Code:
// MyScene is derived from QGraphicsScene { m_rubberbandP1 = event->scenePos().toPoint(); } { qDebug() << "mouseMoveEvent"; // never displays } { QPainterPath pp; pp.addRect(rect); setSelectionArea(pp); }To copy to clipboard, switch view to plain text mode
Bookmarks