Hi this is the code i currently have:


Qt Code:
  1. ui->imagebox->setPixmap(QPixmap("C:\\Picture2.png"))
To copy to clipboard, switch view to plain text mode 

where imagebox is a label.

How do i scale this to fit the label it is contained within?

Thanks for your time and trouble.