Hello
I want to mark a point on image where i click with cursor.
On my widget i use QLabel to disply image.
in that using setPixmap i display image on that QLabel.
no problem is that when image is not available on QLabel and i click mouse i can able to draw point on that label.for draw i implement QPaintEvent()

like
void QWidget::QPaintEvent(QPainteEvent * event)
{
QPainter painter(this);
draw(*painter);
}

here my draw method
void Widget::draw(QPainter *painter)
{
painter.drawpoint();
}
this method draw when image in not in QLable but when i put image on QLabel and then i tray to click on that image it will not draw point on that image.....
should i get the QPainter object of QLabel class
so when image will be present on QLabel and i clicked on it it will mark point on it.