QPixmap pix(filename); qDebug()<<pix.size(); pix.scaled(200, 200, Qt::KeepAspectRatioByExpanding); qDebug()<<pix.size(); imageLabel->setPixmap(pix); imageLabel->show();
imageLabel->setScaledContents(true);