3 MapWindow::MapWindow(const QPixmap &aImage, const QString &aName, QWidget *aParent)
7 setMouseTracking(true); // to receive mouse events
9 map->setPixmap(aImage);
12 // it is enough to handle mouseReleaseEvent, instead of
13 // getting/creating mouseClikEvent, since the whole window
14 // is occupied by only-one widget/label (image/map)
15 void MapWindow::mouseReleaseEvent(QMouseEvent *event)