I have QLabel on the form. I use it to show an image like this:

Qt Code:
  1. QString fileName = "image.jpg";
  2. QImage image(fileName);
  3. ui->label->setPixmap(QPixmap::fromImage(image.scaled(349,228, Qt::KeepAspectRatio, Qt::FastTransformation)));
  4. ui->label->adjustSize();
To copy to clipboard, switch view to plain text mode 

How can I paint with brush on my QLabel with mouse? For example, i press left mouse key, then dragging, it lefts brush'es line, then the results - on the QLabel.