Hello,
Can anyone give me a example on using QGraphicsScene::mouseMoveEvent?
My application is
* myscene->addPixmap(QPixmap::fromImage(myimage));
* ui->graphicsView->setScene(myscene);
* ui->graphicsView->show();
For me it seems no way to get mouse event on this displayed image. I want to draw lines on this displayed image.
I also have the lines in my application.h
protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
Can anyone give me an example or tips? Thank you in advance!
Bookmarks